/*
Theme Name: Dracka
Theme URI: https://drackacomics.com
Author: Facundo Ferrara
Description: Tema custom para Dracka Comics
Version: 0.1
*/

/* =========================
   RESET
========================= */

@font-face {
  font-family: 'Avenir';
  src: url('./assets/fonts/Avenir%20Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('./assets/fonts/Avenir%20Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('./assets/fonts/Avenir%20Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 900;
}

button,
input[type='submit'],
input[type='button'],
.content-badge,
.library-type,
.archive-tab,
.pagination .page-numbers,
.library-search button,
.gallery-search button,
.dracka-collapsible__toggle,
.dracka-collapsible__title,
.dracka-artwork-show-more,
.dracka-artwork-go-library,
.dracka-newsletter-show-more,
.dracka-newsletter-go-library,
.dracka-issues-show-more,
.dracka-issues-go-library,
.main-nav a,
.overlay-nav a {
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 800;
}

a {
  color: var(--color-text);
}

/* =========================
   BASE (Mobile)
========================= */

:root {
  color-scheme: only light;
  --color-bg: #0b0c0d;
  --color-surface: #141618;
  --color-panel: #1f2326;
  --color-text: #e9eaec;
  --color-muted: #9aa1a8;
  --color-accent: #6e7c88;
}

main {
  width: 100%;
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-panel);
  background: var(--color-surface);
}

.site-footer__inner {
  width: 100%;
  max-width: clamp(1024px, 53.33vw, 1600px);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-cell {
  display: grid;
  gap: 0.5rem;
  text-align: center;
  justify-items: center;
}

.footer-cell--span {
  grid-column: 1 / -1;
}

.footer-cell__title {
  font-size: 1rem;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-cell--span {
    grid-column: span 2;
  }
}

/* ── 404 page ───────────────────────────────────────────────── */
.error-404 {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.error-404__image-link {
  display: block;
  width: 100%;
  max-width: 800px;
  max-height: 800px;
  overflow: hidden;
}

.error-404__image-link img {
  object-fit: contain;
}

.error-404__image {
  display: block;
  width: 100%;
  height: auto;
}

.error-404__fallback {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404__title {
  margin-bottom: 1rem;
}

.error-404__home-link {
  text-decoration: underline;
}
/* ─────────────────────────────────────────────────────────── */

main > h1 {
  text-align: center;
}

.library-grid,
.issue-grid,
.album-grid,
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.issue-card,
.album-card,
.artwork-card {
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  border-radius: 3px;
  padding: 0;
}

.artwork-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.album-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.issue-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
}

.album-card {
  isolation: isolate;
}

/* =========================
   SERIES CARD TILE
========================= */

.series-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  isolation: isolate;
}

.series-card__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.series-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.series-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}

.series-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 3rem 0.75rem 0.75rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.series-card__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.card-badges--ribbon {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  pointer-events: none;
}

.card-badges--corner {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  margin: 0;
  pointer-events: none;
  z-index: 3;
}

.badge--standalone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  background: color-mix(in srgb, var(--color-bg) 75%, transparent 25%);
  border: 1px solid color-mix(in srgb, var(--color-muted) 40%, transparent 60%);
  color: var(--color-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.content-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 0.2rem;
  border: 1px solid var(--color-panel);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-badge__label {
  pointer-events: none;
}

.content-badge--muted {
  background: transparent;
  color: var(--color-muted);
}

.content-badge--premiere {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  min-width: 5rem;
  width: 5rem;
  padding: 0;
  height: 5rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-accent) 88%, #ffffff 12%) 0%,
    var(--color-accent) 100%
  );
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 70%, 70% 0, 100% 0, 0 100%);
  color: #ffffff;
  font-weight: 900;
  overflow: visible;
  z-index: 3;
}

.card-badges--ribbon .content-badge--premiere {
  transform: translate(-0.5rem, -0.5rem);
  transform-origin: left top;
}

.content-badge--premiere .content-badge__label {
  position: absolute;
  top: 43%;
  left: 43%;
  z-index: 3;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

.library-type {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.library-search,
.gallery-search {
  margin: 1rem 0 2rem;
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.archive-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-panel);
  border-radius: 0.2rem;
  text-decoration: none;
  background: var(--color-surface);
}

.archive-tab.is-active {
  border-color: var(--color-accent);
  background: var(--color-panel);
}

.pagination {
  margin-top: 2rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  border: 1px solid var(--color-panel);
  text-decoration: none;
  background: var(--color-surface);
}

.pagination .page-numbers.current {
  border-color: var(--color-accent);
  background: var(--color-panel);
}

.library-search.is-hidden,
.gallery-search.is-hidden {
  display: none;
}

.library-search form,
.gallery-search form {
  display: flex;
  gap: 0.75rem;
}

.library-search input[type="search"],
.gallery-search input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  border: 1px solid var(--color-panel);
  background: var(--color-surface);
  color: var(--color-text);
}

.library-search button,
.gallery-search button {
  padding: 0.6rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
  cursor: pointer;
}

.issue-single article,
.publication-single article,
.album-single article,
.image-single article {
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  border-radius: 3px;
  padding: 0;
  margin-bottom: 2rem;
}

.issue-single h1,
.publication-single h1,
.album-single h1,
.image-single h1 {
  margin-bottom: 0.75rem;
}

.issue-series,
.artwork-album {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.issue-episodes-nav {
  margin-top: 1rem;
}

.issue-episodes-nav__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-panel);
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
}

.issue-episodes-nav__segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 2.85rem;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
}

.issue-episodes-nav__segment + .issue-episodes-nav__segment {
  border-left: 1px solid var(--color-panel);
}

.issue-episodes-nav__segment:hover,
.issue-episodes-nav__segment:focus-visible {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.issue-episodes-nav__content {
  margin-top: 0.75rem;
}

.issue-episodes-nav__segment--episodes {
  font-weight: 600;
}

.issue-episodes-nav__bar .dracka-collapsible__arrow {
  order: 0;
  margin-left: 0.5rem;
}

.issue-episodes-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  flex-shrink: 0;
}

.issue-episodes-nav__arrow--right {
  border-left: 7px solid var(--color-text);
  margin-left: 0.3rem;
}

.issue-episodes-nav__arrow--left {
  border-right: 7px solid var(--color-text);
  margin-right: 0.3rem;
}

.issue-episodes-nav .series-issue-row.is-current {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.issue-episodes-nav__current-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.2rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.issue-thumb img,
.album-thumb img,
.artwork-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1rem 0;
}

.issue-card__link,
.album-card__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.issue-card__thumb,
.album-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.issue-card__thumb img,
.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0.6rem;
}

.issue-card__overlay,
.album-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 3rem 0.75rem 0.75rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.issue-card__title,
.album-card__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
}

.artwork-card .album-thumb,
.artwork-card .artwork-thumb {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.artwork-card .album-thumb img,
.artwork-card .artwork-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.artwork-card .album-excerpt,
.artwork-card .artwork-excerpt {
  display: none;
}

.artwork-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2rem 0.55rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 100%);
  pointer-events: none;
}

.series-issues h2,
.album-artwork h2 {
  margin-bottom: 1rem;
}

/* =========================
   SERIES HERO
========================= */

.series-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.series-hero-splash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

.series-hero-splash__img {
  display: block;
  width: 100%;
  height: auto;
}

.series-hero-splash__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 13, 0.45) 0%,
    rgba(11, 12, 13, 0.93) 100%
  );
}

.series-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.series-hero-aside {
  flex-shrink: 0;
  display: grid;
  gap: 0.8rem;
  width: 50%;
}

.series-hero-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
}

.series-hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.series-hero-info {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.series-hero-title {
  font-size: 1.6rem;
  line-height: 1.1;
}

.series-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}

.series-status--ongoing,
.series-status--publish {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.series-status--upcoming {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
}

.series-status--hiatus {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
  border-color: rgba(156, 163, 175, 0.3);
}

.series-status--cancelled {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}

.series-status--standalone {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
}

.series-status--finished {
  color: #e879f9;
  background: rgba(232, 121, 249, 0.1);
  border-color: rgba(232, 121, 249, 0.3);
}

/* Admin list badge mirrors the frontend pill */
.series-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}

.series-status-badge--ongoing  { color: #4ade80; background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.3); }
.series-status-badge--upcoming { color: #fb923c; background: rgba(251,146,60,0.12); border-color: rgba(251,146,60,0.3); }
.series-status-badge--hiatus   { color: #9ca3af; background: rgba(156,163,175,0.12); border-color: rgba(156,163,175,0.3); }
.series-status-badge--cancelled{ color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }
.series-status-badge--standalone{ color: #60a5fa; background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.3); }
.series-status-badge--finished { color: #e879f9; background: rgba(232,121,249,0.12); border-color: rgba(232,121,249,0.3); }

.series-description {
  color: var(--color-text);
}

.series-meta-list {
  display: grid;
  gap: 0.45rem;
}

.series-meta-list strong {
  display: inline-block;
  margin-right: 0.2rem;
}

.series-meta-list p {
  color: var(--color-text);
}

.series-standalone-cta {
  margin-top: 2rem;
  padding: 0 1rem;
  text-align: center;
}

/* ── Theme button utility ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6em 1.5em;
  border: 2px solid var(--color-accent);
  border-radius: 0.25rem;
  color: var(--color-accent);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover,
.btn:focus {
  background: var(--color-accent);
  color: var(--color-bg);
}
/* ─────────────────────────────────────────────────────────── */

.series-standalone-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #60a5fa;
  border: 2px solid #60a5fa;
  transition: background 0.15s, border-color 0.15s;
}

.series-standalone-btn:hover,
.series-standalone-btn:focus {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.series-standalone-cta__notice {
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.9rem;
}

.series-issues {
  margin-top: 2rem;
  padding: 0 1rem;
}

.series-issues-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.series-issues-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-panel);
  border-radius: 0.2rem;
  text-decoration: none;
  background: var(--color-surface);
}

.series-issues-list {
  display: grid;
  gap: 1rem;
}

.series-issue-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  border-radius: 3px;
  padding: 0.75rem;
}

.series-issue-row__media {
  position: relative;
  width: 100%;
}

.series-issue-row__media {
  isolation: isolate;
}

.series-issue-row__thumb-link,
.series-issue-row__thumb-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-panel);
}

.series-issue-row__thumb-link {
  position: relative;
  z-index: 2;
}

.series-issue-row__thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-issue-row__thumb-placeholder {
  background: linear-gradient(120deg, var(--color-panel), var(--color-surface));
}

.series-issue-row__content {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.series-issue-row__title-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: space-between;
}

.series-issue-row__title-wrap h3 {
  margin: 0;
}

.series-issue-row__views {
  color: var(--color-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dracka-eye-icon {
  margin-bottom: 5px;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--color-muted);
}

.series-issue-row__date {
  color: var(--color-muted);
  margin: 0;
}



/* =========================
   HOMEPAGE COLLAPSIBLE BLOCKS
========================= */

.dracka-collapsible {
  margin: 1rem 0 2rem;
}

.dracka-collapsible__toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--color-panel);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}

.dracka-collapsible__arrow {
  order: 2;
  margin-left: auto;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid var(--color-text);
  transition: transform 0.2s ease;
}

.dracka-collapsible__toggle[aria-expanded='true'] .dracka-collapsible__arrow {
  transform: rotate(-90deg);
}

.dracka-collapsible__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dracka-collapsible__content {
  margin-top: 0.8rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.dracka-collapsible__content.is-open {
  opacity: 1;
  overflow: visible;
}

.dracka-issues-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dracka-issues-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  aspect-ratio: 3 / 4;
}

.dracka-issues-card__link {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.dracka-issues-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dracka-issues-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(120deg, var(--color-panel), var(--color-surface));
}

.dracka-issues-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 100%);
}

.dracka-artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dracka-artwork-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  aspect-ratio: 1 / 1;
}

.dracka-artwork-card__link {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.dracka-artwork-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dracka-artwork-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(120deg, var(--color-panel), var(--color-surface));
}

.dracka-newsletter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.dracka-newsletter-grid-wrap {
  position: relative;
}

.dracka-newsletter-see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  border-radius: 0;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.dracka-newsletter-see-all:hover,
.dracka-newsletter-see-all:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.dracka-newsletter-card {
  position: relative;
  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  aspect-ratio: 1 / 1;
}

.dracka-newsletter-card__action {
  position: absolute;
  top: 25%;
  right: -25px;
  z-index: 10;
}

.dracka-newsletter-card__link {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  color: inherit;
}

.dracka-newsletter-card__media {
  display: block;
  position: absolute;
  inset: 0;
}

.dracka-newsletter-card__image,
.dracka-newsletter-card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dracka-newsletter-card__placeholder {
  background: linear-gradient(120deg, var(--color-panel), var(--color-surface));
}

.dracka-newsletter-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 0.75rem 0.75rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--color-panel) 50%, transparent) 60%,
    var(--color-panel) 100%
  );
  z-index: 1;
}

.dracka-card-badges {
  top: 0;
  left: 0;
  z-index: 3;
  margin: 0;
}

.dracka-newsletter-card__title {
  padding: 0 0 0.2rem;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
}

.dracka-newsletter-card__excerpt {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #f4f4f4;
}

@media (max-width: 600px) and (orientation: portrait) {
  .dracka-newsletter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dracka-newsletter-card {
    aspect-ratio: auto;
    height: 25vh;
  }
}

.dracka-artwork-show-more,
.dracka-artwork-go-library,
.dracka-newsletter-show-more,
.dracka-newsletter-go-library,
.dracka-issues-show-more,
.dracka-issues-go-library {
  margin-top: 0.9rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--color-accent);
  background: var(--color-panel);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dracka-artwork-show-more:disabled,
.dracka-newsletter-show-more:disabled,
.dracka-issues-show-more:disabled {
  opacity: 0.7;
  cursor: wait;
}

.dracka-news-ticker {
  width: 100%;
  margin: 20px 0;
  height: 40px;
  border-top: 1px solid var(--color-panel);
  border-bottom: 1px solid var(--color-panel);
  background: var(--color-surface);
  overflow: hidden;
}

.dracka-news-ticker__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.dracka-news-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.dracka-news-ticker.is-ready .dracka-news-ticker__track {
  animation: dracka-ticker-scroll var(--dracka-news-ticker-duration, 28s) linear infinite;
}

.dracka-news-ticker__line {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
  padding-right: 1.5rem;
  flex: 0 0 auto;
}

.dracka-news-ticker__item {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
}

.dracka-news-ticker__separator {
  color: var(--color-muted);
}

.dracka-news-ticker__item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: inherit;
}

.dracka-news-ticker__item a:hover,
.dracka-news-ticker__item a:focus-visible {
  color: var(--color-accent);
}

@keyframes dracka-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dracka-news-ticker.is-ready .dracka-news-ticker__track {
    animation: none !important;
  }

  .site-header,
  .header-inner,
  .logo,
  .logo .dracka-animated-logo,
  .logo .dracka-logo-frame {
    transition: none;
  }

  .dracka-news-ticker__viewport {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .dracka-news-ticker__line[data-ticker-clone='true'] {
    display: none;
  }
}

/* =========================
   HEADER - MOBILE FIRST
========================= */

.site-header {
  --header-height: 64px;
  padding: 0;
  border-bottom: 1px solid var(--color-panel);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (max-width: 767px) {
  .site-header {
    transition: transform 0.24s ease;
    will-change: transform;
  }

  .site-header.is-collapsed-mobile {
    transform: translateY(calc(-1 * (var(--header-height) + 1px)));
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: var(--header-height);
}

.logo {
  flex: 1;
  text-align: center;
  height: var(--header-height);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
}

.logo .dracka-animated-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: var(--header-height);
  line-height: 0;
}

.logo .dracka-logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(100%, calc(100vw - 8rem));
  height: calc(var(--header-height) - 8px);
}

.logo .dracka-logo-static,
.logo .dracka-logo-animation {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo .dracka-logo-static[hidden],
.logo .dracka-logo-animation[hidden] {
  display: none !important;
}

.header-action,
.hamburger,
.overlay-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: #ffffff;
}

.header-action--info {
  grid-column: 1;
}

.header-action--menu {
  margin-left: auto;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

/* Kill TranslatePress floating bar — plugin setting unreliable */
#trp-floatingbar,
.trp-floatingbar {
  display: none !important;
}

.header-left-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.25rem;
}

.header-lang-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Strip TranslatePress list chrome; force-show even if plugin hides it on desktop */
.header-lang-switcher .trp-language-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 0;
}

/* Non-current languages: hidden by default, dropdown below on hover/focus */
.header-lang-switcher .trp-language-switcher li:not(.trp-current-language):not(.current-language) {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

/* Stack multiple non-current items using sibling offsets if needed */
.header-lang-switcher:hover .trp-language-switcher li:not(.trp-current-language):not(.current-language),
.header-lang-switcher:focus-within .trp-language-switcher li:not(.trp-current-language):not(.current-language) {
  display: flex;
}

/* Flags only — hide text labels */
.header-lang-switcher .trp-language-switcher span {
  display: none;
}

.header-lang-switcher .trp-language-switcher img {
  display: block;
  width: 22px;
  height: auto;
  border-radius: 2px;
}

.header-lang-switcher .trp-language-switcher a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.35;
  padding: 0.3rem 0.2rem;
  transition: opacity 0.2s ease;
}

.header-lang-switcher .trp-language-switcher a:hover,
.header-lang-switcher .trp-language-switcher a:focus-visible {
  opacity: 1;
}

/* Active language full opacity */
.header-lang-switcher .trp-language-switcher .current-language a,
.header-lang-switcher .trp-language-switcher .trp-current-language a {
  opacity: 1;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.mobile-overlay-panel {
  width: 100%;
  height: 90vh;
  min-height: 90svh;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1.25rem 0.75rem calc(clamp(1rem, 4vh, 2.5rem) + env(safe-area-inset-bottom));
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  position: relative;
  z-index: 10;
}

@supports (height: 100dvh) {
  .mobile-overlay {
    height: 100dvh;
  }

  .mobile-overlay-panel {
    height: 90dvh;
    min-height: 90dvh;
  }
}

.overlay-dismiss-zone {
  position: fixed;
  inset: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  z-index: 5;
}

.overlay-header {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.overlay-close {
  font-size: 2.15rem;
  font-weight: 800;
  width: 36px;
  height: 36px;
}

.overlay-nav,
.overlay-info {
  width: 80vw;
  margin-top: 0;
}

.mobile-overlay--menu .overlay-nav {
  margin-top: clamp(3rem, 14.5vh, 7.2rem);
}

.overlay-nav .overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.overlay-nav .overlay-menu > li > a,
.overlay-nav .overlay-menu > li > span > a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.overlay-nav .overlay-menu > li > a:hover,
.overlay-nav .overlay-menu > li > span > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.mobile-overlay--menu .overlay-social {
  margin-top: auto;
  width: 80vw;
}

.mobile-overlay--info .overlay-info {
  margin-top: clamp(3rem, 14.5vh, 7.2rem);
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.info-panel-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.info-panel-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-panel-col__title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin: 0;
}

.info-panel-col__content {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.info-panel-col__content a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-panel-col__content a:hover {
  color: var(--color-accent);
}

@media (min-width: 480px) {
  .info-panel-columns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .info-panel-col {
    flex: 1 1 120px;
  }
}

.overlay-social ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-social li {
  flex: 0 0 auto;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-menu li {
  flex: 0 0 auto;
}

.social-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.social-menu svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer social icons — responsive, full-width spread */
.footer-cell .social-menu {
    justify-content: space-around;
    width: 100%;
    gap: 0;
}

.footer-cell .social-menu li {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
}

.footer-cell .social-menu a {
    width: clamp(44px, 7vw, 54px);
    height: clamp(44px, 7vw, 54px);
}

.footer-cell .social-menu svg {
    width: clamp(24px, 4.5vw, 36px);
    height: clamp(24px, 4.5vw, 36px);
}

.mobile-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.mobile-overlay.is-open .mobile-overlay-panel {
  transform: translateY(0);
}

.overlay-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.overlay-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
}

.no-scroll {
  overflow: hidden;
}

/* Nav oculto en mobile */
.main-nav,
.desktop-nav {
  display: none;
  margin-top: 1rem;
}

.main-nav ul {
  list-style: none;
}

.main-nav li {
  margin-bottom: 0.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
}

/* =========================
   HERO — 2-COLUMN (>=640px)
========================= */

@media (min-width: 640px) {
  .series-hero-aside {
    width: 200px;
  }

  .series-hero-cover {
    width: 100%;
  }

  .series-issues {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    --header-height: 120px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    min-height: var(--header-height);
    height: var(--header-height);
    padding: 0 0.75rem;
  }

  .header-left-actions {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .logo {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo a {
    height: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-action--menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .issue-single {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .issue-single article {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .issue-single .card-badges,
  .issue-single h1,
  .issue-single .issue-series {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .issue-single .issue-content,
  .issue-single .issue-content > *,
  .issue-single .issue-content canvas {
    width: 100% !important;
    max-width: 100% !important;
  }

  .issue-single .issue-content canvas {
    display: block;
    height: auto !important;
  }

  .issue-episodes-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .issue-episodes-nav__bar {
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .issue-episodes-nav__segment {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.4rem 0.15rem;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .issue-episodes-nav__segment + .issue-episodes-nav__segment {
    border-left-width: 1px;
  }
}

/* =========================
   NEWSLETTER PAGE
========================= */

.newsletter-page {
  max-width: 72ch;
  margin: 2rem auto;
  padding: 0 1rem;
}

.newsletter-form {
  margin-top: 1.5rem;
}

/* =========================
   BLOG POST SINGLE
========================= */

.post-single {
  max-width: 72ch;
  margin: 1rem auto;
  padding: 0 1rem;
}

.post-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.post-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--color-panel) 50%, transparent) 80%,
    var(--color-panel) 100%
  );
  pointer-events: none;
}

.post-hero h1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  margin: 0;
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  text-transform: uppercase;
  text-align: justify;
  text-align-last: left;
  color: var(--color-text);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.post-meta .post-author {
  font-weight: 600;
  color: var(--color-text);
}

.post-content {
  color: var(--color-text);
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content img,
.post-content figure,
.post-content video,
.post-content iframe,
.post-content .wp-block-embed,
.post-content .wp-block-image {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.post-content figure img,
.post-content .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-panel);
  font-size: 0.875rem;
}

.post-navigation a {
  color: var(--color-text);
  text-decoration: none;
  max-width: 48%;
}

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

/* =========================
   BLOG ARCHIVE
========================= */

.blog-archive > h1 {
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.post-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  isolation: isolate;
}

.post-card__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}

.post-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 3rem 0.75rem 0.75rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.post-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
}

.post-card__author {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* =========================
   TABLET (>=768px)
========================= */

@media (min-width: 768px) {

  main {
    padding: 0 1rem;
  }

  .library-grid,
  .issue-grid,
  .blog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .album-grid,
  .artwork-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dracka-issues-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dracka-artwork-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .header-action--info {
    display: none;
  }

  .header-action--menu {
    display: none;
  }

  .main-nav {
    display: block;
    margin-top: 0;
  }

  .main-nav ul {
    display: flex;
    gap: 1.5rem;
  }

  .main-nav li {
    margin-bottom: 0;
  }

}

/* =========================
   COMMENTS BOX
========================= */

.dracka-comments-box {
  margin-top: 2rem;
}

.dracka-comments-box .dracka-collapsible__content {
  padding: 0 1rem;
}

/* Comment list */

.dracka-comments-box .comment-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
}

.dracka-comments-box .comment-list,
.dracka-comments-box .comment-list .children {
  list-style: none;
}

.dracka-comments-box .comment-list .comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-panel);
}

.dracka-comments-box .comment-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.45rem;
  column-gap: 0.5rem;
}

.dracka-comments-box .comment-list .comment:last-child {
  border-bottom: none;
}

.dracka-comments-box .comment-meta {
  display: contents;
}

.dracka-comments-box .comment-author {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.dracka-comments-box .comment-author .avatar {
  border-radius: 50%;
}

.dracka-comments-box .comment-metadata {
  flex: 0 0 auto;
  order: 2;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.dracka-comments-box .comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.dracka-comments-box .comment-metadata a:hover {
  color: var(--color-text);
}

.dracka-comments-box .comment-content {
  flex: 0 0 100%;
  order: 1;
}

.dracka-comments-box .comment-content p {
  margin: 0;
}

/* ===========================================================================
   Artwork single – prev/next navigation
   =========================================================================== */

.artwork-content {
  margin-top: 10px;
  margin-bottom: 10px;
  transition: opacity 220ms ease;
}

.artwork-album {
  transition: opacity 220ms ease;
}

.dracka-comments-box {
  transition: opacity 220ms ease;
}

.artwork-content.is-fading,
.artwork-album.is-fading,
.dracka-comments-box.is-fading {
  opacity: 0;
}

.artwork-nav {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
}

/* The image viewport – clips slide animations */
.artwork-nav__frame {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  line-height: 0; /* collapse whitespace under img */
}

.artwork-nav__frame img.artwork-nav__img {
  display: block;
  width: 100%;
  height: auto;
  /* slide + fade transition */
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity  300ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Outgoing states (applied before transition fires) */
.artwork-nav__frame.is-exiting-left  img.artwork-nav__img { transform: translateX(-40%); opacity: 0; }
.artwork-nav__frame.is-exiting-right img.artwork-nav__img { transform: translateX(40%);  opacity: 0; }

/* Incoming start states (no transition – snaps instantly to off-screen) */
.artwork-nav__frame.is-entering-from-right img.artwork-nav__img {
  transition: none;
  transform: translateX(40%);
  opacity: 0;
}
.artwork-nav__frame.is-entering-from-left img.artwork-nav__img {
  transition: none;
  transform: translateX(-40%);
  opacity: 0;
}

/* Arrow buttons */
.artwork-nav__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text, #fff);
  opacity: 0.7;
  transition: opacity 150ms ease, transform 150ms ease;
  padding: 0;
  border-radius: 50%;
  z-index: 2;
}

.artwork-nav__arrow:hover:not(:disabled) {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.08);
}

.artwork-nav__arrow:disabled,
.artwork-nav__arrow[aria-disabled="true"] {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.artwork-nav__arrow svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  display: block;
}

/* On small screens, float arrows over the image edges */
@media (max-width: 600px) {
  .artwork-nav {
    position: relative;
  }

  .artwork-nav__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    width: 44px;
    height: 44px;
    opacity: 0.85;
    z-index: 3;
  }

  .artwork-nav__arrow:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1);
  }

  .artwork-nav__arrow--prev { left: 4px; }
  .artwork-nav__arrow--next { right: 4px; }

  .artwork-nav__frame {
    width: 100%;
  }
}

.dracka-comments-box .comment-list .children {
  margin: 0.9rem 0 0 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--color-panel);
}

.dracka-comments-box .comment-list .children .comment {
  padding: 0.9rem 0 0;
  border-bottom: none;
}

.dracka-comments-box .comment-list .depth-2,
.dracka-comments-box .comment-list .depth-3,
.dracka-comments-box .comment-list .depth-4,
.dracka-comments-box .comment-list .depth-5 {
  position: relative;
}

.dracka-comments-box .reply {
  flex: 0 0 auto;
  order: 2;
}

.dracka-comments-box .reply::before {
  content: '|';
  margin-right: 0.5rem;
  color: var(--color-panel);
  font-weight: 400;
}

.dracka-comments-box .comment-reply-link,
.dracka-comments-box .comment-edit-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
}

.dracka-comments-box .comment-reply-link:hover,
.dracka-comments-box .comment-edit-link:hover {
  color: var(--color-text);
}

/* Comment form */

.dracka-comments-box #reply-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.dracka-comments-box .comment-form p {
  margin: 0.75rem 0;
}

.dracka-comments-box .comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.dracka-comments-box .comment-form .required {
  color: var(--color-accent);
}

.dracka-comments-box .comment-form input[type='text'],
.dracka-comments-box .comment-form input[type='email'],
.dracka-comments-box .comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-panel);
  border-radius: 3px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.dracka-comments-box .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.dracka-comments-box .comment-form input[type='submit'] {
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
}

.dracka-comments-box .comment-form input[type='submit']:hover {
  opacity: 0.8;
}

/* =========================
   DESKTOP (>=1024px)
========================= */

@media (min-width: 1024px) {
  main {
    max-width: clamp(1024px, 53.33vw, 1600px);
    padding: 0 2rem;
  }

  .library-grid,
  .issue-grid,
  .blog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .album-grid,
  .artwork-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dracka-issues-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dracka-artwork-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .series-hero-cover {
    width: 100%;
  }

  .series-hero-aside {
    width: 260px;
  }

  .series-hero-title {
    font-size: 2rem;
  }
}

/* =========================
   DESKTOP HEADER (>=768px)
========================= */

@media (min-width: 768px) {

  /* Hide mobile-only controls */
  .header-action--info,
  .header-action--menu {
    display: none;
  }

  /* Switch header-inner to a 3-column grid: nav | logo | nav */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2.5rem;
    min-height: 160px;
  }

  /* Explicit grid placement — required because .header-left-actions is now
     the first DOM child and would otherwise displace auto-placed items */
  .header-left-actions {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    gap: 0.75rem;
  }

  .desktop-nav--left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .logo {
    grid-column: 2;
    grid-row: 1;
  }

  .desktop-nav--right {
    grid-column: 3;
    grid-row: 1;
  }

  /* Logo column */
  .logo {
    height: 160px;
  }

  .logo .dracka-animated-logo {
    height: 160px;
  }

  .logo .dracka-logo-frame {
    height: calc(160px - 8px);
  }

  /* Desktop nav */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 0;
  }

  .desktop-nav--left {
    justify-content: flex-end;
  }

  .desktop-nav--right {
    justify-content: flex-start;
  }

  .desktop-nav a {
    font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    display: inline-block;
    position: relative;
    transition: color 0.2s ease;
  }

  .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
  }

  .desktop-nav a:hover,
  .desktop-nav a:focus-visible {
    color: var(--color-accent);
  }

  .desktop-nav a:hover::after,
  .desktop-nav a:focus-visible::after {
    transform: scaleX(1);
  }
}

/* =========================
   DESKTOP HEADER SHRINK (>=1024px only)
========================= */

@media (min-width: 1024px) {
  .header-inner {
    transition: min-height 0.35s ease;
  }

  .logo {
    transition: height 0.35s ease;
  }

  .logo .dracka-animated-logo {
    transition: height 0.35s ease;
  }

  .logo .dracka-logo-frame {
    transition: height 0.35s ease;
  }

  /* Shrunk state (added by JS on scroll) */
  .site-header.is-shrunk .header-inner {
    min-height: 90px;
  }

  .site-header.is-shrunk .logo {
    height: 90px;
  }

  .site-header.is-shrunk .logo .dracka-animated-logo {
    height: 90px;
  }

  .site-header.is-shrunk .logo .dracka-logo-frame {
    height: calc(90px - 8px);
  }
}

/* =========================
   AGE GATE MODAL
========================= */

.age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-gate.is-visible {
  display: flex;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.age-gate__panel {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-panel);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.age-gate__rating-badge {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.age-gate__title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text);
  margin: 0;
}

.age-gate__body {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.age-gate__btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
}

.age-gate__btn:hover {
  opacity: 0.85;
}

.age-gate__btn--confirm {
  background: var(--color-accent);
  color: var(--color-text);
}

.age-gate__btn--decline {
  background: transparent;
  border: 1px solid var(--color-panel);
  color: var(--color-muted);
}

@media (min-width: 480px) {
  .age-gate__actions {
    flex-direction: row;
  }

  .age-gate__btn {
    flex: 1;
  }
}