/* Chrome tools, full-site themes, and store pages inside the magazine shell. */

.mg-draftbar {
  background: #d0021b;
  color: #fff;
  text-align: center;
  font-family: var(--f-sub);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 16px;
}
@media (min-width: 861px) {
  .mg-nav__list { overflow: visible; }
}
.mg-nav__issues { position: relative; }
.mg-issuepick summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding: 16px 11px 14px;
  font-family: var(--f-sub);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.mg-issuepick summary::-webkit-details-marker { display: none; }
.mg-issuepick summary.is-active,
.mg-issuepick[open] summary { background: var(--c-primary); color: var(--c-on-primary); }
.mg-issuepick summary small { font-family: var(--f-mono); font-size: 9px; color: var(--gray); letter-spacing: 0; }
.mg-issuepick summary.is-active small,
.mg-issuepick[open] summary small { color: inherit; opacity: 0.75; }
.mg-issuepick__panel {
  position: absolute;
  z-index: 70;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-height: 70vh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.mg-issuepick__all {
  display: block;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sub);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.mg-issuepick__list { list-style: none; margin: 0; padding: 0; }
.mg-issuepick__list a,
.mg-issuepick__locked {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--gray-2);
}
.mg-issuepick__list a:hover,
.mg-issuepick__list .is-current a { background: var(--c-primary); color: var(--c-on-primary); }
.mg-issuepick__list b { font-family: var(--f-mono); font-size: 12px; }
.mg-issuepick__list span { font-family: var(--f-sub); font-weight: 700; font-size: 13px; }
.mg-issuepick__list small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.mg-issuepick__list a:hover small,
.mg-issuepick__list .is-current a small { color: inherit; }
.mg-issuepick__locked { cursor: default; opacity: 0.72; }
.mg-issuepick--reader { position: relative; }
.mg-issuepick--reader summary {
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 8px 12px;
}
.mg-issuepick--reader .mg-issuepick__panel { left: auto; right: 0; top: calc(100% + 4px); }

.mg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mg-nav__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: 8px;
}
.mg-search input {
  width: 8.5rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  font-family: var(--f-sub);
  font-size: 13px;
  padding: 7px 10px;
}
.mg-tool,
.mg-logout button {
  font-family: var(--f-sub);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: none;
  border: 0;
  padding: 8px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.mg-tool b {
  background: var(--c-primary);
  color: var(--c-on-primary);
  padding: 1px 6px;
  margin-left: 4px;
}
.mg-logout { display: inline; }
.mg-nav__lang { gap: 8px; align-items: center; }
.mg-flash { padding-top: 16px; }
.mg-flash .flash { margin-bottom: 8px; }

.mg-home-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mg-home-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  min-height: 0;
}
.mg-home-product__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 0;
  overflow: hidden;
}
.mg-home-product__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.mg-home-product__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--f-head);
  font-size: 32px;
  color: var(--ink);
}
.mg-home-product__name {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 0.95;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mg-home-product__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.mg-home-product__price {
  font-family: var(--f-sub);
  font-weight: 800;
  font-size: 14px;
  color: var(--red);
}
.mg-users { list-style: none; margin: 0; padding: 0; }
.mg-users li { border-bottom: 1px solid currentColor; }
.mg-users a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 12px 0;
}
.mg-users b { font-family: var(--f-sub); font-size: 16px; }
.mg-users small { font-family: var(--f-mono); font-size: 12px; color: var(--gray-3); }

@media (max-width: 1100px) {
  .mg-search { display: none; }
  .mg-home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mg-nav__tools { margin-left: auto; }
  .mg-tool, .mg-logout button { padding: 8px 6px; font-size: 11px; }
}
@media (max-width: 560px) {
  .mg-home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-logout { display: none; }
}

/* Store and community pages sit in the magazine column. */
.mg-main > .mg-platform,
.mg-main > .store-shell {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 28px var(--pad) 72px;
  box-sizing: border-box;
}
.mg--platform { font-family: var(--f-body); }

/* Forum rows: the heart was absolute and sat on top of the date. */
.mg .forum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 18px;
  align-items: center;
  padding: 16px 0;
}
.mg .forum-row > div:first-child { min-width: 0; }
.mg .forum-row h3 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.3; }
.mg .forum-row h3 a { text-decoration: none; }
.mg .forum-row .meta { margin: 0; line-height: 1.35; }
.mg .forum-row-last { text-align: right; }
.mg .forum-row-last p { margin: 0; }
.mg .forum-row-last time { white-space: nowrap; }
.mg .forum-row .fav-btn {
  position: static;
  top: auto;
  right: auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  justify-self: end;
}
@media (max-width: 720px) {
  .mg .forum-row { grid-template-columns: 1fr auto; }
  .mg .forum-row > div:first-child { grid-column: 1 / -1; }
  .mg .forum-row-last { text-align: left; }
}

/* Revista: remap the store palette onto paper, including hardcoded dark panels. */
html[data-theme="revista"] {
  --bg: #f3eee4;
  --bg-2: #e8e1d2;
  --panel: #ffffff;
  --text: #0b0b0f;
  --muted: #5b5b62;
  --line: rgba(11, 11, 15, 0.2);
  --white: #ffffff;
  --red: #e10600;
  --red-glow: #e10600;
  --font-body: var(--f-sub);
  --font-display: var(--f-head);
}
html[data-theme="revista"] .card,
html[data-theme="revista"] .panel,
html[data-theme="revista"] .product-card,
html[data-theme="revista"] .form-card {
  background: #fff;
  color: var(--ink);
}
html[data-theme="revista"] .price { color: var(--red); }
html[data-theme="revista"] .product-card-media,
html[data-theme="revista"] .card-media { background: var(--paper-2); }
html[data-theme="revista"] .store-sidebar {
  background: var(--paper-2);
  color: var(--ink);
  border-right-color: rgba(11, 11, 15, 0.16);
}
html[data-theme="revista"] .sidebar-link { color: var(--ink); }
html[data-theme="revista"] .sidebar-link:hover,
html[data-theme="revista"] .sidebar-link.is-active {
  color: var(--ink);
  background: rgba(225, 6, 0, 0.08);
}
html[data-theme="revista"] .mg-platform h1,
html[data-theme="revista"] .store-content h1 {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 0.9;
  font-size: clamp(42px, 5vw, 76px);
}
html[data-theme="revista"] .mg-platform h1::after,
html[data-theme="revista"] .store-content h1::after {
  content: "";
  display: block;
  width: 4.2rem;
  height: 8px;
  margin-top: 12px;
  background: var(--red);
  box-shadow: 10px 0 0 var(--yellow), 20px 0 0 var(--blue);
}
html[data-theme="revista"] .mg-platform h2,
html[data-theme="revista"] .store-content h2 {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--blue);
  line-height: 0.95;
}
html[data-theme="revista"] .mg-platform h3,
html[data-theme="revista"] .store-content h3,
html[data-theme="revista"] .panel h3 {
  font-family: var(--f-sub);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
html[data-theme="revista"] .mg-platform a,
html[data-theme="revista"] .store-content a,
html[data-theme="revista"] .store-sidebar a {
  color: var(--ink);
}
html[data-theme="revista"] .mg-platform a:hover,
html[data-theme="revista"] .store-content a:hover,
html[data-theme="revista"] .store-sidebar a:hover {
  color: var(--red);
}
html[data-theme="revista"] .btn,
html[data-theme="revista"] .btn-ghost,
html[data-theme="revista"] .btn-retro-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
html[data-theme="revista"] .btn-primary,
html[data-theme="revista"] .btn-retro-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
html[data-theme="revista"] .btn-primary:hover,
html[data-theme="revista"] .btn-retro-primary:hover { background: var(--red); color: #fff; }
html[data-theme="revista"] .btn-ghost:hover,
html[data-theme="revista"] .btn-retro-ghost:hover { color: var(--ink); background: var(--yellow); }
html[data-theme="revista"] .seo-intro,
html[data-theme="revista"] .section-sub,
html[data-theme="revista"] .breadcrumbs,
html[data-theme="revista"] .breadcrumbs a,
html[data-theme="revista"] .meta,
html[data-theme="revista"] .hint,
html[data-theme="revista"] .product-seo-body {
  color: var(--gray-3);
}
html[data-theme="revista"] .faq-toc,
html[data-theme="revista"] .seo-hub-links,
html[data-theme="revista"] .forum-chips { gap: 10px; }
html[data-theme="revista"] .faq-toc a,
html[data-theme="revista"] .seo-hub-links a,
html[data-theme="revista"] .forum-chips a {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font-family: var(--f-sub);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  padding: 8px 12px;
}
html[data-theme="revista"] .faq-toc a:nth-child(4n+1):hover,
html[data-theme="revista"] .seo-hub-links a:nth-child(4n+1):hover,
html[data-theme="revista"] .forum-chips a:nth-child(4n+1):hover { color: var(--ink); }
html[data-theme="revista"] .faq-toc a:nth-child(4n+2),
html[data-theme="revista"] .faq-toc a:nth-child(4n+2):hover,
html[data-theme="revista"] .seo-hub-links a:nth-child(4n+2),
html[data-theme="revista"] .seo-hub-links a:nth-child(4n+2):hover,
html[data-theme="revista"] .forum-chips a:nth-child(4n+2),
html[data-theme="revista"] .forum-chips a:nth-child(4n+2):hover { background: var(--red); color: #fff; }
html[data-theme="revista"] .faq-toc a:nth-child(4n+3),
html[data-theme="revista"] .faq-toc a:nth-child(4n+3):hover,
html[data-theme="revista"] .seo-hub-links a:nth-child(4n+3),
html[data-theme="revista"] .seo-hub-links a:nth-child(4n+3):hover,
html[data-theme="revista"] .forum-chips a:nth-child(4n+3),
html[data-theme="revista"] .forum-chips a:nth-child(4n+3):hover { background: var(--blue); color: #fff; }
html[data-theme="revista"] .faq-toc a:nth-child(4n),
html[data-theme="revista"] .faq-toc a:nth-child(4n):hover,
html[data-theme="revista"] .seo-hub-links a:nth-child(4n),
html[data-theme="revista"] .seo-hub-links a:nth-child(4n):hover,
html[data-theme="revista"] .forum-chips a:nth-child(4n),
html[data-theme="revista"] .forum-chips a:nth-child(4n):hover { background: var(--ink); color: var(--paper); }
html[data-theme="revista"] .faq-block h2:nth-child(n) { color: var(--ink); }
html[data-theme="revista"] .faq-block:nth-of-type(4n+1) h2 { color: var(--red); }
html[data-theme="revista"] .faq-block:nth-of-type(4n+2) h2 { color: var(--blue); }
html[data-theme="revista"] .faq-block:nth-of-type(4n+3) h2 { color: var(--ink); }
html[data-theme="revista"] .faq-block:nth-of-type(4n) h2 { color: var(--ink); background: var(--yellow); display: inline-block; padding: 0 8px; }
html[data-theme="revista"] .product-faq details {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
html[data-theme="revista"] .product-faq summary { color: var(--ink); font-family: var(--f-sub); font-weight: 800; }
html[data-theme="revista"] .faq-block details p { color: var(--ink-2); }
html[data-theme="revista"] .faq-block:nth-of-type(4n+1) details { box-shadow: 4px 4px 0 var(--red); }
html[data-theme="revista"] .faq-block:nth-of-type(4n+2) details { box-shadow: 4px 4px 0 var(--blue); }
html[data-theme="revista"] .faq-block:nth-of-type(4n+3) details { box-shadow: 4px 4px 0 var(--yellow); }
html[data-theme="revista"] .forum-row h3 a { color: var(--ink); }
html[data-theme="revista"] .forum-row h3 a:hover { color: var(--red); }
html[data-theme="revista"] .forum-row .fav-btn {
  background: var(--paper);
  color: var(--red);
  border: 2px solid var(--ink);
}
html[data-theme="revista"] .product-card {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
html[data-theme="revista"] .product-card-body h3 a { color: var(--ink); }
html[data-theme="revista"] .filters input,
html[data-theme="revista"] .filters select,
html[data-theme="revista"] .form-card input,
html[data-theme="revista"] .form-card select,
html[data-theme="revista"] .form-card textarea,
html[data-theme="revista"] .mg-platform input,
html[data-theme="revista"] .mg-platform select,
html[data-theme="revista"] .mg-platform textarea,
html[data-theme="revista"] .store-content input,
html[data-theme="revista"] .store-content select,
html[data-theme="revista"] .store-content textarea {
  background: #fff;
  color: var(--ink);
  border-color: rgba(11, 11, 15, 0.28);
}
html[data-theme="revista"] .chat-line,
html[data-theme="revista"] .chat-nicks-head {
  border-bottom-color: rgba(11, 11, 15, 0.12);
}
html[data-theme="revista"] .chat-line .meta,
html[data-theme="revista"] .chat-nicks-head,
html[data-theme="revista"] .chat-del { color: var(--gray-3); }

/* Noche: store dark palette for the site. Printed pages keep their own inks. */
html[data-theme="noche"] body.mg {
  --ink: #f4f1ea;
  --ink-2: #e4dfd4;
  --paper: #070b14;
  --paper-2: #10182a;
  --paper-3: #1a2438;
  --white: #f4f1ea;
  --gray: #9aa6bf;
  --gray-2: #2a3548;
  --gray-3: #c5cedf;
  --bg: #070b14;
  --bg-2: #10182a;
  --panel: rgba(16, 24, 42, 0.94);
  --text: #f4f1ea;
  --muted: #9aa6bf;
  --line: rgba(255, 255, 255, 0.14);
  --red: #e11d2e;
  --red-glow: #ff3b4a;
  --c-surface: #070b14;
  background-color: #070b14;
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-page,
html[data-theme="noche"] body.mg .mg-sheet {
  --ink: #0b0b0f;
  --ink-2: #1c1c22;
  --paper: #f3eee4;
  --paper-2: #e8e1d2;
  --paper-3: #d9d0be;
  --white: #ffffff;
  --gray: #8e8e93;
  --gray-2: #c9c5bc;
  --gray-3: #5b5b62;
  --red: #e10600;
  --bg: #f3eee4;
  --text: #0b0b0f;
  color: #0b0b0f;
}
html[data-theme="noche"] body.mg .mg-ticker,
html[data-theme="noche"] body.mg .mg-nav,
html[data-theme="noche"] body.mg .mg-footer,
html[data-theme="noche"] body.mg .mg-toast,
html[data-theme="noche"] body.mg .mg-nav__list {
  background: #05070e;
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-nav a,
html[data-theme="noche"] body.mg .mg-footer,
html[data-theme="noche"] body.mg .mg-footer a,
html[data-theme="noche"] body.mg .mg-tool,
html[data-theme="noche"] body.mg .mg-logout button,
html[data-theme="noche"] body.mg .mg-ticker {
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-masthead {
  background: #070b14;
  color: #f4f1ea;
  border-bottom-color: #e11d2e;
}
html[data-theme="noche"] body.mg .mg-logo { color: #f4f1ea; }
html[data-theme="noche"] body.mg .mg-issuebox,
html[data-theme="noche"] body.mg .mg-masthead .mg-lang {
  background: #121a2b;
  color: #f4f1ea;
  border-color: rgba(255, 255, 255, 0.35);
}
html[data-theme="noche"] body.mg .mg-masthead .mg-lang a { color: #f4f1ea; }
html[data-theme="noche"] body.mg .mg-lang a.is-active {
  background: #e11d2e;
  color: #fff;
}
html[data-theme="noche"] body.mg .mg-search input {
  background: #121a2b;
  color: #f4f1ea;
  border-color: #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-platform a,
html[data-theme="noche"] body.mg .store-content a,
html[data-theme="noche"] body.mg .store-sidebar a {
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-platform a:hover,
html[data-theme="noche"] body.mg .store-content a:hover,
html[data-theme="noche"] body.mg .store-sidebar a:hover {
  color: #ffd400;
}
html[data-theme="noche"] body.mg .price,
html[data-theme="noche"] body.mg .product-card-body h3,
html[data-theme="noche"] body.mg .product-card-body h3 a {
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .price { color: #ffd400; }
html[data-theme="noche"] body.mg .btn-ghost,
html[data-theme="noche"] body.mg .btn-retro-ghost {
  background: transparent;
  color: #f4f1ea;
  border: 2px solid #f4f1ea;
  box-shadow: none;
}
html[data-theme="noche"] body.mg .btn-primary,
html[data-theme="noche"] body.mg .btn-retro-primary {
  background: #e11d2e;
  color: #fff;
  border: 2px solid #f4f1ea;
}
html[data-theme="noche"] body.mg .seo-hub-links a,
html[data-theme="noche"] body.mg .faq-toc a,
html[data-theme="noche"] body.mg .forum-chips a {
  background: #10182a;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.55);
}
html[data-theme="noche"] body.mg .seo-intro,
html[data-theme="noche"] body.mg .section-sub,
html[data-theme="noche"] body.mg .meta,
html[data-theme="noche"] body.mg .breadcrumbs,
html[data-theme="noche"] body.mg .breadcrumbs a {
  color: #c5cedf;
}
html[data-theme="noche"] body.mg .product-faq details {
  background: #10182a;
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.35);
}
html[data-theme="noche"] body.mg .product-faq summary,
html[data-theme="noche"] body.mg .faq-block details p { color: #f4f1ea; }
html[data-theme="noche"] body.mg .forum-row h3 a { color: #f4f1ea; }
html[data-theme="noche"] body.mg .forum-row h3 a:hover { color: #ffd400; }
html[data-theme="noche"] body.mg .forum-row .fav-btn {
  background: #10182a;
  color: #f4f1ea;
  border: 2px solid rgba(244, 241, 234, 0.55);
}
html[data-theme="noche"] body.mg .filters input,
html[data-theme="noche"] body.mg .filters select,
html[data-theme="noche"] body.mg .store-content input,
html[data-theme="noche"] body.mg .store-content select,
html[data-theme="noche"] body.mg .store-content textarea {
  background: #10182a;
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.4);
}

/* Theme and language stay in the menu on every breakpoint. */
.mg-nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
@media (min-width: 861px) {
  .mg-nav__inner { flex-wrap: wrap; align-items: stretch; }
  .mg-nav__list {
    flex: 1 1 480px;
    min-width: 0;
    flex-wrap: wrap;
    overflow: visible;
  }
  .mg-nav__list a { padding: 12px 9px 11px; letter-spacing: 0.06em; }
}
.mg-nav__lang .mg-lang {
  background: #fff;
  border-color: #fff;
}
html[data-theme="revista"] body.mg .mg-nav__lang .mg-lang a,
html[data-theme="noche"] body.mg .mg-nav__lang .mg-lang a {
  color: #0b0b0f;
  padding: 7px 8px;
}
html[data-theme="revista"] body.mg .mg-nav__lang .mg-lang a.is-active,
html[data-theme="noche"] body.mg .mg-nav__lang .mg-lang a.is-active {
  background: #0b0b0f;
  color: #f3eee4;
}
@media (max-width: 860px) {
  .mg-nav__inner { flex-wrap: wrap; }
  .mg-nav__lang {
    display: flex;
    flex: 1 0 100%;
    order: 4;
    padding: 0 12px 10px;
  }
}

/* Diacritics on display titles (ARTÍCULOS) need room above the cap height. */
.mg-pagehead { overflow: visible; }
.mg-pagehead .mg-kicker { position: relative; z-index: 2; }
.mg-pagehead .mg-display {
  line-height: 1.08;
  padding-top: 0.22em;
  overflow: visible;
}

/* Reader: one page, viewport width minus the arrow gutters. Fit still shrinks via zoom. */
@media (min-width: 721px) {
  .mg-main:has(.mg-reader),
  .mg-wrap:has(.mg-reader) {
    max-width: none !important;
    width: 100%;
    padding-inline: 0;
  }
  .mg-reader {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding-inline: 76px;
    box-sizing: border-box;
  }
  .mg-reader__stage,
  .mg-reader__viewport {
    width: 100%;
    max-width: none;
  }
  .mg-reader__canvas { max-width: none; }
  .mg-reader:not(.is-zoomed) .mg-sheet.is-active,
  .mg-reader:not(.is-zoomed) .mg-sheet.is-active > .mg-page {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
  }
}

/* Blog, guides and store: ink on paper, light on noche. Store uses .store-content, not .mg-platform. */
html[data-theme="revista"] .mg-platform .prose,
html[data-theme="revista"] .mg-platform .prose p,
html[data-theme="revista"] .mg-platform .prose li,
html[data-theme="revista"] .mg-platform .prose h2,
html[data-theme="revista"] .mg-platform .prose h3,
html[data-theme="revista"] .mg-platform .lede,
html[data-theme="revista"] .mg-platform .lede-sm,
html[data-theme="revista"] .mg-platform .contact-lead,
html[data-theme="revista"] .mg-platform .contact-mail,
html[data-theme="revista"] .store-content .prose,
html[data-theme="revista"] .store-content .prose p,
html[data-theme="revista"] .store-content .prose li,
html[data-theme="revista"] .store-content .prose h2,
html[data-theme="revista"] .store-content .prose h3,
html[data-theme="revista"] .store-content .product-seo-body {
  color: #0b0b0f;
}
html[data-theme="revista"] .mg-platform .prose a,
html[data-theme="revista"] .mg-platform .contact-mail a,
html[data-theme="revista"] .store-content .prose a {
  color: #0b0b0f;
  text-decoration: underline;
}
html[data-theme="noche"] body.mg .mg-platform .prose,
html[data-theme="noche"] body.mg .mg-platform .prose p,
html[data-theme="noche"] body.mg .mg-platform .prose li,
html[data-theme="noche"] body.mg .mg-platform .prose h2,
html[data-theme="noche"] body.mg .mg-platform .prose h3,
html[data-theme="noche"] body.mg .mg-platform .lede,
html[data-theme="noche"] body.mg .mg-platform .lede-sm,
html[data-theme="noche"] body.mg .mg-platform .contact-lead,
html[data-theme="noche"] body.mg .mg-platform .contact-mail,
html[data-theme="noche"] body.mg .store-content .prose,
html[data-theme="noche"] body.mg .store-content .prose p,
html[data-theme="noche"] body.mg .store-content .prose li,
html[data-theme="noche"] body.mg .store-content .prose h2,
html[data-theme="noche"] body.mg .store-content .prose h3,
html[data-theme="noche"] body.mg .store-content .product-seo-body {
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-platform .prose a,
html[data-theme="noche"] body.mg .mg-platform .contact-mail a,
html[data-theme="noche"] body.mg .store-content .prose a {
  color: #f4f1ea;
}

/* Store follows the article cards: light ink on paper, light type on noche. */
html[data-theme="revista"] body.mg,
html[data-theme="revista"] .store-shell,
html[data-theme="revista"] .store-content,
html[data-theme="revista"] .mg-platform {
  background-color: #f3eee4;
  color: #0b0b0f;
}
html[data-theme="revista"] .store-content .product-card,
html[data-theme="revista"] .store-content .filters,
html[data-theme="revista"] .product-card,
html[data-theme="revista"] .form-card {
  background: #fff !important;
  color: #0b0b0f !important;
  border: 2px solid #0b0b0f;
  box-shadow: 4px 4px 0 #0b0b0f;
}
html[data-theme="revista"] .product-card-body h3,
html[data-theme="revista"] .product-card-body h3 a,
html[data-theme="revista"] .store-content .section-head h1,
html[data-theme="revista"] .store-content h1 {
  color: #0b0b0f !important;
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}
html[data-theme="revista"] .store-content .section-sub,
html[data-theme="revista"] .store-content .meta,
html[data-theme="revista"] .store-content .views-hint,
html[data-theme="revista"] .breadcrumbs,
html[data-theme="revista"] .breadcrumbs a,
html[data-theme="revista"] .mg-platform .breadcrumbs,
html[data-theme="revista"] .mg-platform .breadcrumbs a {
  color: #5b5b62 !important;
}
html[data-theme="revista"] .store-content .price,
html[data-theme="revista"] .price {
  color: #e10600 !important;
}
html[data-theme="revista"] .product-card-media,
html[data-theme="revista"] .card-media {
  background: #f3eee4;
}
html[data-theme="revista"] .mg-platform .form-card input,
html[data-theme="revista"] .mg-platform .form-card textarea,
html[data-theme="revista"] .contact-form input,
html[data-theme="revista"] .contact-form textarea {
  background: #fff;
  color: #0b0b0f;
  border: 2px solid #0b0b0f;
}

html[data-theme="noche"] body.mg .store-content {
  background: #070b14;
  color: #f4f1ea;
}
html[data-theme="noche"] body.mg .store-content .product-card,
html[data-theme="noche"] body.mg .product-card {
  background: #10182a !important;
  color: #f4f1ea !important;
  border: 2px solid rgba(244, 241, 234, 0.35);
  box-shadow: none;
}
html[data-theme="noche"] body.mg .product-card-body h3,
html[data-theme="noche"] body.mg .product-card-body h3 a,
html[data-theme="noche"] body.mg .store-content .section-head h1,
html[data-theme="noche"] body.mg .store-content h1 {
  color: #f4f1ea !important;
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
}
html[data-theme="noche"] body.mg .store-content .section-sub,
html[data-theme="noche"] body.mg .store-content .meta,
html[data-theme="noche"] body.mg .store-content .views-hint,
html[data-theme="noche"] body.mg .breadcrumbs,
html[data-theme="noche"] body.mg .breadcrumbs a {
  color: #c5cedf !important;
}
html[data-theme="noche"] body.mg .store-content .price,
html[data-theme="noche"] body.mg .price {
  color: #ffd400 !important;
}
html[data-theme="noche"] body.mg .btn-ghost,
html[data-theme="noche"] body.mg .btn-retro-ghost {
  background: transparent !important;
  color: #f4f1ea !important;
  border: 2px solid #f4f1ea;
}
html[data-theme="noche"] body.mg .mg-platform .form-card,
html[data-theme="noche"] body.mg .contact-form {
  background: #10182a !important;
  color: #f4f1ea !important;
  border: 2px solid rgba(244, 241, 234, 0.35);
  box-shadow: none;
}
html[data-theme="noche"] body.mg .contact-form input,
html[data-theme="noche"] body.mg .contact-form textarea,
html[data-theme="noche"] body.mg .mg-platform .form-card input,
html[data-theme="noche"] body.mg .mg-platform .form-card textarea {
  background: #070b14;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.4);
}

html[data-theme="revista"] body.mg .mg-home-product__name { color: #0b0b0f; }
html[data-theme="revista"] body.mg .mg-home-product__meta { color: #5b5b62; }
html[data-theme="revista"] body.mg .mg-home-product__price { color: #e10600; }
html[data-theme="revista"] body.mg .mg-home-product__img { border-color: #0b0b0f; background: transparent; }
html[data-theme="noche"] body.mg .mg-home-product,
html[data-theme="noche"] body.mg .mg-home-product__img {
  background: transparent;
}
html[data-theme="noche"] body.mg .mg-home-product__name { color: #f4f1ea; }
html[data-theme="noche"] body.mg .mg-home-product__meta { color: #c5cedf; }
html[data-theme="noche"] body.mg .mg-home-product__price { color: #ffd400; }
html[data-theme="noche"] body.mg .mg-home-product__img { border-color: #f4f1ea; }

.contact-page { max-width: 640px; }
.contact-page h1 {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
  font-size: clamp(42px, 6vw, 72px);
}
.contact-lead { margin: 12px 0 18px; }
.contact-form { margin-top: 8px; }
.contact-mail { margin-top: 16px; }
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Forum posts: ink on paper in revista, light on dark in noche. */
html[data-theme="revista"] .topic-post,
html[data-theme="revista"] .mg-platform .prose {
  background: #fff;
  color: #0b0b0f;
  border: 2px solid #0b0b0f;
}
html[data-theme="revista"] .mg-platform .prose,
html[data-theme="revista"] .store-content .prose { border: 0; background: transparent; }
html[data-theme="revista"] .topic-post strong,
html[data-theme="revista"] .topic-post p,
html[data-theme="revista"] .mg-platform .prose,
html[data-theme="revista"] .mg-platform .prose p,
html[data-theme="revista"] .store-content .prose,
html[data-theme="revista"] .store-content .prose p { color: #0b0b0f; }
html[data-theme="revista"] .topic-post .meta { color: #3a3a42; }
html[data-theme="noche"] .topic-post {
  background: #10182a;
  color: #f7f4ee;
  border: 1px solid rgba(247, 244, 238, 0.55);
}
html[data-theme="noche"] .topic-post strong,
html[data-theme="noche"] .topic-post p,
html[data-theme="noche"] .mg-platform .prose,
html[data-theme="noche"] .mg-platform .prose p,
html[data-theme="noche"] .store-content .prose,
html[data-theme="noche"] .store-content .prose p { color: #f7f4ee; }
html[data-theme="noche"] .topic-post .meta { color: #d5dbe8; }

/* Checkout: paper panels over the banner so ink stays readable in revista. */
html[data-theme="revista"] .checkout-with-bg {
  background:
    linear-gradient(180deg, rgba(243, 238, 228, 0.94), rgba(243, 238, 228, 0.97)),
    var(--checkout-banner) center / cover no-repeat;
  border: 2px solid #0b0b0f;
  box-shadow: 6px 6px 0 #0b0b0f;
  padding: 1.25rem;
  color: #0b0b0f;
}
html[data-theme="revista"] .checkout-with-bg > h1 {
  color: #0b0b0f !important;
}
html[data-theme="revista"] .checkout-with-bg > .section-sub,
html[data-theme="revista"] .checkout-with-bg .hint {
  color: #5b5b62 !important;
}
html[data-theme="revista"] .checkout-summary,
html[data-theme="revista"] .store-content .checkout-summary {
  background: #fff !important;
  color: #0b0b0f !important;
  border: 2px solid #0b0b0f;
  box-shadow: 4px 4px 0 #0b0b0f;
  padding: 1.25rem;
}
html[data-theme="revista"] .checkout-summary h2,
html[data-theme="revista"] .checkout-summary .order-lines,
html[data-theme="revista"] .checkout-summary .order-lines li,
html[data-theme="revista"] .checkout-summary .total,
html[data-theme="revista"] .checkout-summary .bank-box,
html[data-theme="revista"] .checkout-summary .bank-box h3,
html[data-theme="revista"] .checkout-summary .bank-box dd {
  color: #0b0b0f !important;
}
html[data-theme="revista"] .checkout-summary .bank-box {
  background: #fff8f0 !important;
  border: 2px dashed #e10600;
}
html[data-theme="revista"] .checkout-summary .bank-box dt,
html[data-theme="revista"] .checkout-summary .hint {
  color: #5b5b62 !important;
}
html[data-theme="revista"] .shipping-companies {
  background: #f3eee4 !important;
  border: 2px solid #0b0b0f;
  color: #0b0b0f !important;
}
html[data-theme="revista"] .shipping-companies legend,
html[data-theme="revista"] .shipping-companies .hint {
  color: #5b5b62 !important;
}
html[data-theme="revista"] .shipping-companies legend {
  color: #0b0b0f !important;
  font-weight: 800;
}
html[data-theme="revista"] .shipping-option {
  background: #fff !important;
  color: #0b0b0f !important;
  border: 2px solid #0b0b0f;
}
html[data-theme="revista"] .shipping-option.is-selected {
  border-color: #e10600;
  background: #fff4f0 !important;
  box-shadow: 3px 3px 0 #0b0b0f;
}
html[data-theme="revista"] .shipping-option-body,
html[data-theme="revista"] .shipping-option-body strong,
html[data-theme="revista"] .shipping-estimate {
  color: #0b0b0f !important;
}
html[data-theme="revista"] .shipping-option-body small {
  color: #5b5b62 !important;
}

html[data-theme="noche"] body.mg .checkout-summary {
  background: #10182a !important;
  color: #f4f1ea !important;
  border: 2px solid rgba(244, 241, 234, 0.35);
  box-shadow: none;
}
html[data-theme="noche"] body.mg .shipping-option {
  background: #10182a !important;
  color: #f4f1ea !important;
  border: 1px solid rgba(244, 241, 234, 0.35);
}
html[data-theme="noche"] body.mg .shipping-option-body,
html[data-theme="noche"] body.mg .shipping-option-body strong,
html[data-theme="noche"] body.mg .shipping-estimate {
  color: #f4f1ea !important;
}
html[data-theme="noche"] body.mg .shipping-option-body small {
  color: #c5cedf !important;
}

/* Night keeps the magazine yellow with black type. White on yellow disappears. */
html[data-theme="noche"] [data-tone="yellow"],
html[data-theme="noche"] [data-tone="amber"] {
  --ink: #0b0b0f;
  --ink-2: #1c1c22;
  --paper: #fffdf6;
  --white: #ffffff;
  --tone: #ffd400;
  --on-tone: #0b0b0f;
  --c-on-secondary: #0b0b0f;
  color: #0b0b0f;
}
html[data-theme="noche"] [data-tone="yellow"] .mg-btn--ink,
html[data-theme="noche"] [data-tone="amber"] .mg-btn--ink {
  background: #0b0b0f;
  color: #fff;
}

/* Desktop reader: a double sheet is the whole spread, same as the PDF. */
@media (min-width: 721px) {
  .mg-reader .mg-sheet--double {
    aspect-ratio: 460 / 300;
  }
  .mg-reader .mg-sheet--double > .mg-page {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

/* Cookie / AdSense consent notice */
.wg-consent-banner {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 32rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  background: #0b0b0f;
  border: 2px solid #ffd400;
  color: #f7f4ee;
  box-shadow: 6px 6px 0 #ffd400;
  font-family: var(--f-body, system-ui, sans-serif);
}
.wg-consent-banner p { margin: 0 0 0.75rem; font-size: 0.92rem; line-height: 1.45; }
.wg-consent-banner a { color: #ffd400; text-decoration: underline; }
.wg-consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wg-consent-actions .btn {
  font-family: var(--f-sub, system-ui, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid #f7f4ee;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.wg-consent-actions .btn-primary { background: #ffd400; color: #0b0b0f; border-color: #ffd400; }
.wg-consent-actions .btn-ghost { background: transparent; color: #f7f4ee; }

.legal-page { max-width: 42rem; }
.legal-page h2 { margin-top: 1.6rem; font-size: 1.15rem; }
.legal-updated { opacity: 0.75; font-size: 0.9rem; margin-bottom: 1.25rem; }
.legal-page ul { margin: 0.5rem 0 1rem 1.2rem; }
