/*
Theme Name: Islanders Comic
Theme URI: https://islanderscomic.com
Author: Coquí y Lagartijo
Description: Custom WordPress theme for Islanders Comic — Coquí y Lagartijo science comic strip.
Version: 1.6.7
License: GNU General Public License v2 or later
Text Domain: islanders-comic
*/

/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  --cyan:      #0dcaf2;
  --yellow:    #FFE600;
  --green-bg:  #90EE90;
  --orange-bg: #F47B20;
  --green-ch:  #3BB54A;
  --orange-ch: #F47B20;
  --red:       #E8312A;
  --black:     #111111;
  --white:     #FFFFFF;
  --border-thick: 2px solid var(--black);
  --border-nav:   8px solid var(--yellow);
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bangers', cursive;
  background: var(--green-bg);
  color: var(--black);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   HEADER & NAV  — matches original exactly
═══════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--cyan);
  border-bottom: var(--border-nav);
  height: 200px;
  display: flex;
  align-items: flex-start;
  padding: 30px 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  position: relative;
}

/* Logo — overflows header, floats left */
.site-logo {
  flex-shrink: 0;
  margin-top: -50px;
  height: 240px;
  width: auto;
  z-index: 10;
  display: block;
  padding-left: 10px;
}
.site-logo img {
  height: 240px;
  width: auto;
  display: block;
}

/* Nav menu */
#primary-nav {
  margin-top: 60px;
  margin-left: 10px;
  flex: 1;
}
#primary-nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}
#primary-nav ul li {
  border: var(--border-thick);
  border-radius: 2px;
  padding: 14px 20px;
  background: var(--yellow);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.5);
}
#primary-nav ul li:hover {
  background: var(--red);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.6);
  transform: translate(-1px,-1px);
}
#primary-nav ul li:hover a { color: var(--white); }
/* Press state — fires on mouse-down AND touch-tap, consistent across desktop + mobile.
   :focus is included so keyboard users get the same visual treatment. */
#primary-nav ul li:active,
#primary-nav ul li:focus-within {
  background: var(--green-ch);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.6);
  transform: translate(1px,1px);
}
#primary-nav ul li:active a,
#primary-nav ul li:focus-within a { color: var(--white); }
#primary-nav ul li.current-menu-item,
#primary-nav ul li.current_page_item,
#primary-nav ul li.current-menu-ancestor,
#primary-nav ul li.current_page_ancestor { background: var(--orange-bg); }
#primary-nav ul li.current-menu-item a,
#primary-nav ul li.current_page_item a,
#primary-nav ul li.current-menu-ancestor a,
#primary-nav ul li.current_page_ancestor a { color: var(--white); }
/* Press wins over current-page so users still get tactile feedback on the active item */
#primary-nav ul li.current-menu-item:active,
#primary-nav ul li.current_page_item:active,
#primary-nav ul li.current-menu-ancestor:active,
#primary-nav ul li.current_page_ancestor:active { background: var(--green-ch); }
#primary-nav ul li a {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--black);
  text-decoration: none;
}

/* Social icons — top right */
.header-social {
  position: absolute;
  top: -18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.header-sicon {
  width: 70px;
  height: 70px;
  transition: transform 0.15s;
}
.header-sicon:hover { transform: scale(1.1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: var(--yellow);
  border: var(--border-thick);
  padding: 10px;
  margin-top: 80px;
  margin-right: 16px;
}
.nav-toggle span {
  display: block;
  width: 32px; height: 5px;
  background: var(--black);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  #primary-nav ul {
    display: none;
    position: fixed;
    top: 200px;
    left: 0; right: 0;
    background: var(--yellow);
    border-bottom: var(--border-thick);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    z-index: 200;
  }
  #primary-nav ul.is-open { display: flex; }
  .header-sicon { width: 48px; height: 48px; }
}

/* ═══════════════════════════════════════
   MEANWHILE LABEL — fixed, left side
═══════════════════════════════════════ */
#meanwhile-label {
  display: block;
  background: var(--yellow);
  border: var(--border-thick);
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  margin-bottom: 20px;
  align-self: flex-start;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════
   PAGE BODY OFFSET (fixed header)
═══════════════════════════════════════ */
.site-main {
  margin-top: 200px;
}

/* ═══════════════════════════════════════
   COMIC STRIP SECTION — orange background
═══════════════════════════════════════ */
.strip-section {
  background: var(--orange-bg);
  border: var(--border-thick);
  padding: 32px 2rem 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 500px;
}

.comic-holder {
  width: 92%;
  max-width: 1100px;
}

.strip-card {
  display: contents;
}

/* Pre/post strip captions — optional, only render when filled */
.strip-precaption,
.strip-postcaption {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  padding: 10px 4px;
}

.strip-titlebar {
  background: var(--cyan);
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 7px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--black);
  margin-bottom: 8px;
}
.strip-titlebar .strip-date {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* Gutter frame wraps all panels — white background is the gutter */
.strip-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--white);
  border: 2px solid var(--black);
}
.strip-panels.panels-2 { grid-template-columns: repeat(2, 1fr); }
.strip-panels.panels-1 { grid-template-columns: 1fr; }
.strip-panels.panels-4 { grid-template-columns: repeat(4, 1fr); }

.strip-panel {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--black);
}

.panel-image { width: 100%; height: 100%; overflow: hidden; }
.panel-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.panel-placeholder {
  width: 100%;
  height: 100%;
  background: #e8f8fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 160px;
}

/* panel-caption hidden — captions moved to pre/post strip level */
.panel-caption { display: none; }

.ad-sidebar {
  font-size: 1.2rem;
  color: var(--black);
  padding-top: 80px;
  min-width: 120px;
}

@media (max-width: 700px) {
  .strip-section { flex-direction: column; padding-top: 60px; }
  .comic-holder { width: 100%; }
  .strip-panels,
  .strip-panels.panels-2,
  .strip-panels.panels-3,
  .strip-panels.panels-4 { grid-template-columns: 1fr; }
  .strip-panel { aspect-ratio: 1; }
  .panel-image { width: 100%; height: 100%; }
  .panel-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* ═══════════════════════════════════════
   SCROLL STRIP — alternative comic format
   Scoped under .scroll-strip-frame so styles can't leak.
═══════════════════════════════════════ */
.scroll-strip-frame {
  background: var(--orange-bg);
  padding: 18px 18px 22px;
  border-radius: 6px;
  width: 100%;
  font-family: 'Nunito', sans-serif;
}
.scroll-strip-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  width: 100%;
}
.scroll-strip-side {
  width: 60px;
  min-width: 50px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-right: 14px;
  justify-content: flex-end;
}
.scroll-strip-dots {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.scroll-strip-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2.5px solid var(--black);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.scroll-strip-dots .dot.active {
  background: var(--black);
}
.scroll-strip-main {
  flex: 1;
  min-width: 0;
}
.scroll-strip-stage {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border: 3.5px solid var(--black);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #87CEEB;
}
.scroll-strip-stage.is-finished {
  cursor: default;
}
.scroll-strip-stage:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.scroll-strip-bg,
.scroll-strip-bubble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scroll-strip-bg img,
.scroll-strip-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scroll-strip-bubble { pointer-events: none; }

.scroll-strip-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  color: var(--black);
  opacity: 0.6;
  text-align: center;
  margin-top: 7px;
}

/* Replay button — fades in only when stage adds .is-finished */
.scroll-strip-replay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(17,17,17,0.65);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.15s ease, background 0.15s ease;
  z-index: 5;
}
.scroll-strip-replay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-strip-replay:hover {
  background: rgba(17,17,17,0.85);
  transform: scale(1.08);
}
.scroll-strip-replay:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.scroll-strip-replay svg {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 500px) {
  .scroll-strip-row { flex-direction: column; }
  .scroll-strip-side {
    width: 100%;
    padding-right: 0;
    padding-bottom: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .scroll-strip-dots { flex-direction: row; }
}

/* ═══════════════════════════════════════
   ARTICLES SECTION — green background
═══════════════════════════════════════ */
.articles-section {
  background: var(--green-bg);
  border: var(--border-thick);
  border-top: none;
  padding: 40px 2rem 60px;
  min-height: 400px;
}

.articles-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(33% - 1rem);
  min-width: 220px;
}

.article-frame-img {
  width: 100%;
  border: var(--border-thick);
}

.article-blurb {
  background: var(--yellow);
  border: var(--border-thick);
  padding: 10px 14px;
  text-align: center;
}
.article-blurb h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.article-blurb p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}
.article-blurb a {
  color: var(--black);
  text-decoration: underline;
}

/* broken link stamp */
.article-card.is-broken .article-blurb a {
  opacity: 0.4;
  pointer-events: none;
  text-decoration: line-through;
}
.broken-stamp {
  display: none;
  background: var(--red);
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border: 2px solid var(--black);
  transform: rotate(-6deg);
  width: fit-content;
  margin-top: 4px;
}
.article-card.is-broken .broken-stamp { display: block; }

/* Mobile overrides for articles — placed AFTER article rules so they win */
@media (max-width: 700px) {
  .articles-section { padding: 40px 0.5rem 60px; }
  .articles-grid { flex-direction: column; align-items: center; }
  .article-card { width: 100%; min-width: unset; max-width: none; }
}

/* section label */
.section-label {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  background: var(--black);
  color: var(--yellow);
  display: inline-block;
  padding: 4px 16px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   CHARACTER BLOG — white on green
═══════════════════════════════════════ */
.blog-section {
  background: var(--green-bg);
  border: var(--border-thick);
  border-top: none;
  padding: 20px 2rem 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  border: var(--border-thick);
  overflow: hidden;
}
.blog-card-header {
  padding: 10px 14px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.blog-card-header.coqui    { background: var(--green-ch); }
.blog-card-header.lagartijo{ background: var(--orange-ch); }
.blog-card-body {
  padding: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  background: var(--white);
}
.blog-card-date { margin-top: 8px; font-size: 0.75rem; color: #888; }

/* ═══════════════════════════════════════
   ARCHIVE PAGE
═══════════════════════════════════════ */
.archive-section {
  background: var(--green-bg);
  min-height: 100vh;
  padding: 40px 2rem 60px;
}

.archive-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-btn {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border: var(--border-thick);
  background: var(--white);
  cursor: pointer;
  transition: background 0.1s;
}
.filter-btn:hover, .filter-btn.active { background: var(--yellow); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.archive-card {
  border: var(--border-thick);
  background: var(--white);
  display: block;
  color: var(--black);
  transition: transform 0.12s;
}
.archive-card:hover { transform: translate(-3px, -3px); }

.archive-thumb {
  aspect-ratio: 3/1;
  overflow: hidden;
  border-bottom: var(--border-thick);
  background: #d4f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-card:nth-child(3n+2) .archive-thumb { background: #fff3b0; }
.archive-card:nth-child(3n+3) .archive-thumb { background: #ffd6c0; }

.archive-card-info { padding: 10px 14px; }
.archive-card-info h4 {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.archive-card-info p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: #666;
}

/* search */
.search-form { display: flex; gap: 8px; margin-bottom: 20px; max-width: 400px; }
.search-form input {
  flex: 1;
  padding: 8px 12px;
  border: var(--border-thick);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
}
.search-form button {
  background: var(--yellow);
  border: var(--border-thick);
  padding: 8px 14px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  cursor: pointer;
}

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  padding: 6px 16px;
  border: var(--border-thick);
  background: var(--white);
  transition: background 0.1s;
}
.pagination a:hover { background: var(--yellow); }
.pagination .current { background: var(--black); color: var(--yellow); }

/* ═══════════════════════════════════════
   PAGE HEADER (About, Contact, Archive)
═══════════════════════════════════════ */
.page-header {
  background: var(--cyan);
  border-bottom: var(--border-thick);
  padding: 32px 2rem 24px;
}
.page-header h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}
.page-header h1 span { color: var(--yellow); }
.page-header p { font-family: 'Nunito', sans-serif; font-size: 0.92rem; opacity: 0.8; margin-top: 6px; }

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.about-content {
  background: var(--green-bg);
  padding: 40px 2rem 60px;
  min-height: 100vh;
}
.about-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 680px;
}
.about-text strong { color: var(--orange-ch); }
.about-text em { font-style: normal; color: var(--green-ch); font-weight: 700; }

.character-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
  max-width: 680px;
}
@media (max-width: 500px) { .character-cards { grid-template-columns: 1fr; } }

.char-card { border: var(--border-thick); overflow: hidden; }
.char-card-header {
  padding: 12px 16px;
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.char-card-header.coqui    { background: var(--green-ch); }
.char-card-header.lagartijo{ background: var(--orange-ch); }
.char-card-body {
  padding: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  background: var(--white);
}

/* ═══════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════ */
.contact-content {
  background: var(--green-bg);
  padding: 40px 2rem 60px;
  min-height: 100vh;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
  max-width: 480px;
}
@media (max-width: 420px) { .social-grid { grid-template-columns: 1fr; } }

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: var(--border-thick);
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--black);
  transition: transform 0.1s;
  background: var(--white);
}
.social-btn:hover { transform: translate(-2px,-2px); }
.social-btn.instagram { background: #ffd6e8; }
.social-btn.facebook  { background: #d0e4ff; }

.newsletter-box {
  background: var(--cyan);
  border: var(--border-thick);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 560px;
}
.newsletter-box h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.newsletter-box p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 10px 14px;
  border: var(--border-thick);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  outline: none;
  background: var(--white);
}
.newsletter-form button {
  background: var(--yellow);
  border: var(--border-thick);
  padding: 10px 20px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   SINGLE STRIP — strip nav
═══════════════════════════════════════ */
.strip-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2rem;
  background: var(--orange-bg);
  border-bottom: var(--border-thick);
  flex-wrap: wrap;
  gap: 10px;
}
.strip-nav a {
  background: var(--yellow);
  border: var(--border-thick);
  padding: 8px 18px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: background 0.1s;
}
.strip-nav a:hover { background: var(--white); }
.strip-nav .all-strips {
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  color: #666;
  background: none;
  border: none;
  padding: 0;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
#site-footer {
  background: var(--green-bg);
  border-top: var(--border-thick);
  padding: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  background: var(--green-bg);
}
.footer-social img {
  width: 90px;
  height: 90px;
  transition: transform 0.15s;
}
.footer-social img:hover { transform: scale(1.1); }

.footer-bottom {
  background: var(--yellow);
  text-align: center;
  padding: 8px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-top: var(--border-thick);
}

/* ═══════════════════════════════════════
   ADMIN BAR OFFSET
═══════════════════════════════════════ */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

/* ═══════════════════════════════════════
   STRIP BANNER — Islanders logo centered
   below header on About / Archive / Main
═══════════════════════════════════════ */
.strip-banner {
  background: #0014EC;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 2rem;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-thick);
}
.strip-banner-presents {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 24%;
  height: auto;
  display: block;
  opacity: 0.92;
  z-index: 1;
}
.strip-banner-logo {
  height: 216px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-left: 28%;
  position: relative;
  z-index: 2;
}
@media (max-width: 560px) {
  .strip-banner { height: 160px; padding: 8px 1rem; }
  .strip-banner-logo { height: 144px; margin-left: 26%; }
  .strip-banner-presents { width: 22%; }
}

/* ═══════════════════════════════════════
   ARCHIVE PAGE
═══════════════════════════════════════ */
.archive-page {
  background: var(--green-bg);
  padding-top: 32px;
  min-height: 60vh;
}
.archive-page .container {
  padding: 0 2rem;
}

/* section label */
.section-label {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 0.08em;
  background: var(--yellow);
  color: var(--black);
  border: var(--border-thick);
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.about-content {
  background: var(--green-bg);
  padding: 32px 2rem 60px;
  min-height: 40vh;
}

.char-story-block {
  margin-top: 28px;
  padding-left: 2rem;
}
.char-story-label {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: #0099cc;
  border: var(--border-thick);
  padding: 6px 24px;
  margin-bottom: 12px;
}
.char-story-label.char-label-coqui    { background: #0099cc; }
.char-story-label.char-label-lagartijo{ background: #0077aa; }

.char-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: var(--border-thick);
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
}
.char-story-panel {
  background: #e8f8fc;
  aspect-ratio: 4 / 3;
  min-height: 140px;
  border: var(--border-thick);
}
@media (max-width: 680px) {
  .char-story-grid { grid-template-columns: 1fr; }
  .char-story-panel { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .char-story-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════ */
.contact-content {
  background: var(--green-bg);
  padding: 32px 2rem 60px;
  min-height: 60vh;
}
.contact-form {
  margin-top: 24px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field label {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}
.contact-field input,
.contact-field textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px;
  border: var(--border-thick);
  background: var(--white);
  outline: none;
  width: 100%;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus { background: #fffde6; }
.contact-submit {
  align-self: flex-start;
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  background: var(--yellow);
  border: var(--border-thick);
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.contact-submit:hover { background: var(--white); transform: translate(-2px,-2px); }
.contact-msg {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border: var(--border-thick);
}
.contact-msg--ok  { background: #d4f7d4; }
.contact-msg--err { background: #fdd; }
.contact-newsletter-row { margin-top: 4px; }
.contact-newsletter-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}
.contact-newsletter-label input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0; margin-top: 2px;
  accent-color: var(--cyan); cursor: pointer;
}

/* Strip content row — comic + sidebar side by side, centered */
.strip-content-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}
@media (max-width: 700px) {
  .strip-content-row { flex-direction: column; align-items: center; }
}

/* Article thumbnail link wrapper */
.article-thumb-link {
  display: block;
  overflow: hidden;
  border: var(--border-thick);
}
.article-thumb-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.15s;
}
.article-thumb-link:hover img { opacity: 0.85; }
/* Remove double border when thumb-link wraps the img */
.article-thumb-link + .article-blurb,
.article-thumb-link ~ .article-blurb { }
.article-card .article-thumb-link { border: none; }
.article-card .article-thumb-link img { border: var(--border-thick); }
