/* Guardians design tokens, copied from guardians-website/app/app.css */
:root {
  --ink-950: #0b0b0a; --ink-900: #121211; --ink-850: #171716; --ink-800: #1d1d1b; --ink-700: #282826;
  --ink-600: #3a3a37; --ink-500: #5c5c57; --ink-400: #8f8f88; --ink-300: #bdbdb6; --ink-200: #dbdbdb;
  --blood-300: #f08a7e; --blood-400: #e2584a; --blood-500: #ce3529; --blood-600: #b22513; --blood-700: #8e1d10;
  --blood-800: #6d1711; --blood-900: #40100c;
  --font-sans: Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-heading: Montserrat, Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --shield: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --shield-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --line: rgb(255 255 255 / 0.08);
  --header-offset: var(--wp-admin--admin-bar--height, 0px);
  /* Blocksy variable used by the custom CSS of the tables written inside the posts: without it their borders disappear */
  --theme-border-color: rgb(255 255 255 / 0.15);
}

html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 8rem; -webkit-tap-highlight-color: transparent; }
body { -webkit-font-smoothing: antialiased; min-height: 100dvh; }
::selection { background: var(--blood-600); color: #fff; }
:focus-visible { outline: 2px solid var(--blood-500); outline-offset: 2px; }
/* The parent theme underlines some links on hover. Only links inside articles are underlined (see .wp-block-post-content) */
a:hover { text-decoration: none; }
/* Core draws a 2px ring on every focus, also on mouse clicks. As on the website, only keyboard focus shows a (red) ring */
:focus:not(:focus-visible) { outline: none; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100dvh; }
.gec-main { flex: 1; overflow-x: clip; }

.gec-container { box-sizing: border-box; width: 100%; max-width: 100rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .gec-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .gec-container { padding-inline: 2.5rem; } }
@media (min-width: 1536px) { .gec-container { padding-inline: 3rem; } }

.gec-eyebrow, .gec-eyebrow a {
  margin: 0; color: var(--blood-400); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800;
  line-height: 1.3333; letter-spacing: 0.3em; text-transform: uppercase;
}
.gec-eyebrow a:hover { color: #fff; }
.gec-pixel { margin-right: 0.5rem; color: var(--blood-400); font-family: var(--font-pixel); font-size: 0.5rem; text-transform: uppercase; }

.gec-btn, .gec-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem;
  clip-path: var(--shield-sm); font-family: var(--font-heading); font-size: 0.875rem; font-weight: 800; line-height: 1.25rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: background-color 0.15s;
}
.gec-btn { background: var(--blood-600); color: #fff; }
.gec-btn:hover { background: var(--blood-500); color: #fff; }
.gec-btn-ghost { padding-block: 0.5rem; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15); color: #fff; font-size: 0.75rem; line-height: 1rem; }
.gec-btn-ghost:hover { background: rgb(255 255 255 / 0.1); color: #fff; }

.skip-link.screen-reader-text:focus { z-index: 60; background: var(--blood-600); color: #fff; font-weight: 700; }

/* ---------- Header ---------- */
header.gec-header { position: sticky; top: var(--header-offset); z-index: 50; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
/* Backdrop on a pseudo-element: on the header itself it would trap the fixed mobile menu inside it */
header.gec-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(11 11 10 / 0.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color 0.3s;
}
.gec-scrolled header.gec-header { border-bottom-color: var(--line); }
.gec-scrolled header.gec-header::before { background: rgb(11 11 10 / 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

.gec-topbar { background: rgb(18 18 17 / 0.8); border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.gec-topbar__row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; height: 2.5rem; }
.gec-hashtags { display: none; margin: 0; color: var(--ink-400); font-family: var(--font-heading); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; }
.gec-hashtags span { color: var(--blood-500); }
@media (min-width: 640px) { .gec-topbar__row { justify-content: space-between; } .gec-hashtags { display: block; } }

.gec-header__row { display: flex; align-items: center; gap: 0.75rem; height: 4rem; }
@media (min-width: 640px) { .gec-header__row { gap: 1.5rem; } }
@media (min-width: 1024px) { .gec-header__row { height: 5rem; } }
/* The blog's row also holds the button and the search: tighter so it stays on one line */
@media (min-width: 1024px) and (max-width: 1279.98px) { .gec-header__row { gap: 1rem; } }
.gec-brand { display: flex; flex-shrink: 0; align-items: center; gap: 0.75rem; }
.gec-brand img, .gec-community img { display: block; width: 2.75rem; height: 2.75rem; object-fit: contain; transition: transform 0.3s; }
.gec-brand:hover img, .gec-community:hover img { transform: scale(1.05); }
@media (min-width: 1024px) { .gec-brand img, .gec-community img { width: 3.5rem; height: 3.5rem; } }
.gec-brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-heading); text-transform: uppercase; }
.gec-brand__name { color: #fff; font-size: 1.125rem; font-weight: 900; line-height: 1.75rem; letter-spacing: 0.05em; }
.gec-brand__sub { color: var(--blood-400); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.35em; }
.gec-community { flex-shrink: 0; padding-left: 0.75rem; border-left: 1px solid rgb(255 255 255 / 0.1); }
@media (min-width: 1024px) { .gec-community { padding-left: 1rem; } }
@media (max-width: 379px) { .gec-community { display: none; } }

/* Navigation */
.gec-nav { margin-left: auto; }
.gec-nav .wp-block-navigation__container { gap: 0.25rem; align-items: center; }
@media (min-width: 1024px) {
  .gec-nav .wp-block-navigation-item__content {
    /* line-height 15px: the website's links are inline, so their box is the 15px text area + padding (31px) */
    position: relative; padding: 0.5rem 0.75rem; color: var(--ink-300); font-family: var(--font-heading); font-size: 0.8rem;
    font-weight: 800; line-height: 15px; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.15s;
  }
  .gec-nav .wp-block-navigation-item__content::after {
    content: ""; position: absolute; inset-inline: 0.75rem; bottom: -0.125rem; height: 2px; background: var(--blood-500);
    transform: scaleX(0); transform-origin: left; transition: transform 0.15s;
  }
  .gec-nav .wp-block-navigation-item__content:hover { color: #fff; }
  .gec-nav .wp-block-navigation-item__content:hover::after,
  .gec-nav .current-menu-item > .wp-block-navigation-item__content::after,
  .gec-nav .gec-current > .wp-block-navigation-item__content::after { transform: scaleX(1); }
  .gec-nav .current-menu-item > .wp-block-navigation-item__content,
  .gec-nav .gec-current > .wp-block-navigation-item__content { color: #fff; }
  .gec-nav .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
  .gec-nav .gec-nav-cta { margin-left: 0.75rem; }
  .gec-nav .gec-nav-cta > .wp-block-navigation-item__content { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; clip-path: var(--shield-sm); background: var(--blood-600); color: #fff; font-size: 0.75rem; letter-spacing: 0.05em; transition: background-color 0.15s; }
  .gec-nav .gec-nav-cta > .wp-block-navigation-item__content:hover { background: var(--blood-500); }
}
/* FaArrowLeft, before the text: order -1 places it there; in the mobile menu the row number (::before) goes first */
.gec-nav .gec-nav-cta > .wp-block-navigation-item__content::after {
  content: ""; position: static; order: -1; flex-shrink: 0; width: 1em; height: 1em; background: currentColor; transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Below the website's lg breakpoint the menu collapses (core does it at 600px) */
.gec-nav .wp-block-navigation__responsive-container-open,
.gec-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.gec-nav .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }
@media (max-width: 1023.98px) {
  .gec-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .gec-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.gec-nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 1.5rem 1rem 8rem; background-color: var(--ink-950) !important; color: #fff !important;
  background-image: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 14px);
}
.gec-nav .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }
.gec-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
@media (max-width: 1023.98px) {
  .gec-nav .is-menu-open .wp-block-navigation__responsive-container-content { width: 100%; padding-top: 3rem; align-items: stretch; }
  .gec-nav .is-menu-open .wp-block-navigation__container { width: 100%; counter-reset: gec-nav; align-items: stretch !important; gap: 0; }
  .gec-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--line); counter-increment: gec-nav; align-items: stretch !important; }
  .gec-nav .is-menu-open .wp-block-navigation-item__content {
    display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 0 !important; color: var(--ink-300);
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.2; text-transform: uppercase;
  }
  .gec-nav .is-menu-open .wp-block-navigation-item__content::before {
    content: "0" counter(gec-nav); order: -2; width: 2rem; flex-shrink: 0; color: var(--blood-500); font-family: ui-monospace, monospace; font-size: 0.875rem; font-weight: 400; letter-spacing: 0;
  }
  .gec-nav .is-menu-open .gec-current > .wp-block-navigation-item__content,
  .gec-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content,
  .gec-nav .is-menu-open .wp-block-navigation-item__content:hover { color: #fff; }
}

/* Search */
.gec-search { flex-shrink: 0; }
.gec-search .wp-block-search__inside-wrapper { padding: 0; border: 0; background: transparent; }
.gec-search .wp-block-search__input {
  height: 2.5rem; padding: 0 0.75rem; border: 0; border-radius: 0; background: var(--ink-900); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: #fff; font-size: 0.875rem; outline-offset: -2px;
}
.gec-search.wp-block-search__searchfield-hidden .wp-block-search__input { padding: 0; box-shadow: none; }
.gec-search .wp-block-search__button {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin: 0; padding: 0; border-radius: 0; background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: var(--ink-200); transition: background-color 0.15s, color 0.15s;
}
.gec-search .wp-block-search__button:hover { background: var(--blood-600); color: #fff; }
.gec-search .wp-block-search__button svg { width: 1.25rem; height: 1.25rem; min-width: 0; min-height: 0; }
@media (max-width: 639.98px) {
  .gec-search:not(.wp-block-search__searchfield-hidden) { position: absolute; inset-inline: 1rem; z-index: 2; }
  .gec-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { width: 100% !important; background: var(--ink-950); }
}

/* Topbar and footer: same list, icons and brand colors as SocialLinks.tsx on the website */
.gec-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gec-socials a, .gec-socials button {
  --social-bg: var(--blood-600); --social-fg: #fff; padding: 0; border: 0; cursor: pointer;
  position: relative; z-index: 10; display: grid; place-items: center; width: 2rem; height: 2rem; background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: var(--ink-200); font-size: 0.875rem; line-height: 1;
  transition: transform 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.gec-socials a:hover, .gec-socials button:hover, .gec-socials button.is-copied { background: var(--social-bg); box-shadow: 0 0 18px -2px var(--social-bg); color: var(--social-fg); transform: translateY(-2px); }
.gec-socials--md a, .gec-socials--md button { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.gec-topbar .gec-socials { flex-wrap: nowrap; gap: 0.375rem; margin-block: -0.5rem; padding-block: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.gec-topbar .gec-socials::-webkit-scrollbar { display: none; }
.gec-topbar .gec-socials li { flex-shrink: 0; }
.gec-topbar .gec-socials a { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }

/* ---------- Hero (PageHero.tsx) ---------- */
.gec-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid rgb(255 255 255 / 0.05);
  background-image:
    radial-gradient(circle at 20% 0%, rgb(178 37 19 / 0.22), transparent 45%),
    radial-gradient(circle at 100% 30%, rgb(109 23 17 / 0.25), transparent 40%),
    linear-gradient(to bottom, transparent, var(--ink-950));
}
.gec-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 14px); }
.gec-hero__inner { position: relative; padding-block: 3.5rem 3rem; }
.gec-hero__inner::before {
  content: "Blog"; position: absolute; top: -0.5rem; right: 0; display: none; opacity: 0.4; pointer-events: none; user-select: none;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.35); color: transparent; font-family: var(--font-heading); font-size: 9rem; font-weight: 900; line-height: 1; text-transform: uppercase;
}
@media (min-width: 640px) { .gec-hero__inner { padding-block: 5rem 4rem; } }
@media (min-width: 1024px) { .gec-hero__inner::before { display: block; } }
.gec-hero__inner > * { position: relative; animation: gec-fade-up 0.6s ease-out both; }
.gec-hero__inner > :nth-child(2) { animation-delay: 80ms; }
.gec-hero__inner > :nth-child(3) { animation-delay: 160ms; }
@keyframes gec-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.gec-heading-xl, h1.gec-heading-xl {
  max-width: 64rem; margin: 0.75rem 0 0; color: #fff; font-family: var(--font-heading); font-size: 2.25rem; font-weight: 900; letter-spacing: -0.025em; line-height: 0.95; text-transform: uppercase;
}
@media (min-width: 640px) { .gec-heading-xl, h1.gec-heading-xl { font-size: 3rem; } }
@media (min-width: 1024px) { .gec-heading-xl, h1.gec-heading-xl { font-size: 3.75rem; } }
.gec-hero__inner > h1:first-child, .gec-hero__copy > h1:first-child { margin-top: 0; }
.gec-heading-post, h1.gec-heading-post { max-width: 72rem; margin: 0.75rem 0 0; font-size: 1.875rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
@media (min-width: 640px) { .gec-heading-post, h1.gec-heading-post { font-size: 2.5rem; } }
@media (min-width: 1024px) { .gec-heading-post, h1.gec-heading-post { font-size: 3rem; } }
.gec-heading-lg, h2.gec-heading-lg { margin: 0.25rem 0 2rem; font-size: 1.5rem; }
@media (min-width: 640px) { .gec-heading-lg, h2.gec-heading-lg { font-size: 1.875rem; } }
.gec-hero__text { max-width: 56rem; margin-top: 1.5rem; color: var(--ink-300); font-size: 1rem; line-height: 1.625; }
.gec-hero__text p { margin-block: 0; }
.gec-hero__text > p:not(:first-child) { margin-top: 1rem; }
@media (min-width: 640px) { .gec-hero__text { font-size: 1.125rem; } }
.gec-hero__actions { margin: 1.5rem 0 0; }

/* Home hero (Hero in guardians-website/app/routes/home.tsx): community seal, text and big shield */
.gec-hero--home { isolation: isolate; }
.gec-hero--home::before { z-index: -1; }
.gec-hero--home::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 60rem; height: 60rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(rgb(178 37 19 / 0.25), transparent 60%); filter: blur(40px); transform: translate(-50%, -50%);
}
.gec-hero--home .gec-hero__inner { display: grid; align-items: center; gap: 2.5rem; padding-block: 4rem; }
.gec-hero--home .gec-hero__inner::before { content: none; }
.gec-hero--home .gec-hero__inner > * { animation: none; }
.gec-hero__community {
  position: absolute !important; top: 1rem; left: 1rem; z-index: 10; rotate: -20deg; transition: scale 0.3s;
  animation: gec-fade-up 0.6s ease-out both !important;
}
.gec-hero__community:hover { scale: 1.05; }
.gec-hero__community img { display: block; width: 5rem; height: 5rem; filter: drop-shadow(0 8px 20px rgb(0 0 0 / 0.5)); }
.gec-hero__copy { order: 2; text-align: center; animation: gec-fade-up 0.6s ease-out both !important; }
.gec-hero__copy .gec-eyebrow { font-size: 0.875rem; line-height: 1.625; }
.gec-hero__copy .gec-heading-xl { margin: 1.25rem auto 0; }
.gec-hero__copy .gec-hero__text { margin: 2rem auto 0; font-size: 1.125rem; }
.gec-hero__shield { position: relative; order: 1; width: 14rem; margin-inline: auto; }
.gec-hero__shield::before, .gec-hero__shield::after { content: ""; position: absolute; rotate: 45deg; }
.gec-hero__shield::before { inset: 8%; border: 1px solid rgb(178 37 19 / 0.3); }
.gec-hero__shield::after { inset: 18%; border: 1px solid rgb(255 255 255 / 0.1); }
.gec-hero__shield img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 60px rgb(178 37 19 / 0.45)); }
@media (min-width: 640px) {
  .gec-hero__community { left: 1.5rem; }
  .gec-hero__community img { width: 6rem; height: 6rem; }
  .gec-hero__shield { width: 18rem; }
}
@media (min-width: 1024px) {
  .gec-hero--home::after { left: 75%; }
  .gec-hero--home .gec-hero__inner { grid-template-columns: 1.1fr 1fr; min-height: min(calc(100svh - 5rem), 52rem); padding-block: 6rem; }
  .gec-hero__community { top: 2rem; left: 2.5rem; }
  .gec-hero__community img { width: 9rem; height: 9rem; }
  /* Extra room: this text is longer than the website's and must not run under the seal */
  .gec-hero__copy { order: 1; padding-top: 7.5rem; text-align: left; }
  .gec-hero__copy .gec-heading-xl, .gec-hero__copy .gec-hero__text { margin-inline: 0; }
  .gec-hero__copy .gec-heading-xl { font-size: 3rem; }
  .gec-hero__shield { order: 2; width: 100%; max-width: 32rem; }
}
@media (min-width: 1280px) { .gec-hero__copy .gec-heading-xl { font-size: 3.75rem; } }
@media (min-width: 1536px) { .gec-hero__community { left: 3rem; } }

/* Author page header (EntityDetail.tsx): avatar card, name, fact tiles */
.gec-hero--author .gec-hero__inner::before { content: none; }
.gec-author { display: grid; justify-items: center; gap: 2rem; text-align: center; }
.gec-author__avatar { position: relative; clip-path: var(--shield); width: fit-content; padding: 1.25rem; background: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line); }
.gec-author__avatar img { display: block; width: 8.5rem; height: 8.5rem; object-fit: contain; border-radius: 0; }
.gec-author__info { min-width: 0; }
.gec-author .gec-heading-xl { margin: 0.75rem 0 0; overflow-wrap: anywhere; }
.gec-author .gec-hero__text { margin-inline: auto; }
.gec-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0 0; }
.gec-fact { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.25rem 0.625rem 0.75rem; clip-path: var(--shield-sm); background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); text-align: left; }
.gec-fact__icon { display: grid; flex-shrink: 0; place-items: center; width: 2.5rem; height: 2.5rem; clip-path: var(--shield-sm); background: var(--blood-600); color: #fff; font-size: 1rem; }
.gec-fact__text { display: flex; flex-direction: column-reverse; line-height: 1.25; }
.gec-fact dd { margin: 0; color: #fff; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; text-transform: uppercase; }
.gec-fact dt { color: var(--ink-400); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; }
.gec-author__site { margin: 1.5rem 0 0; }
@media (min-width: 640px) { .gec-fact dd { font-size: 1.125rem; } }
@media (min-width: 768px) {
  .gec-author { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 2.5rem; text-align: left; }
  .gec-author__avatar img { width: 10.5rem; height: 10.5rem; }
  .gec-author .gec-hero__text { margin-inline: 0; }
  .gec-facts { justify-content: flex-start; }
}

.gec-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1.25rem; color: var(--ink-400); font-size: 0.875rem; }
.gec-post-meta .wp-block-avatar img { display: block; border-radius: 0; clip-path: var(--shield-sm); width: 1.75rem; height: 1.75rem; }
.gec-post-meta .wp-block-post-author-name { color: var(--ink-200); font-weight: 600; }
.gec-post-meta .wp-block-post-author-name a { color: inherit; transition: color 0.15s; }
.gec-post-meta .wp-block-post-author-name a:hover { color: #fff; }
.gec-post-meta .wp-block-avatar a { display: block; transition: opacity 0.15s; }
.gec-post-meta .wp-block-avatar a:hover { opacity: 0.8; }
.gec-post-meta .wp-block-post-date::before { content: "/"; margin-right: 0.75rem; color: var(--blood-500); }

/* ---------- Cards (EntityCard.tsx) ---------- */
.gec-section { padding-block: 3rem; }
@media (min-width: 640px) { .gec-section { padding-block: 4rem; } }
.wp-block-post-template.gec-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .wp-block-post-template.gec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .wp-block-post-template.gec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.gec-grid > li { display: flex; min-width: 0; margin: 0; }
.gec-card {
  position: relative; display: flex; flex-direction: column; width: 100%; clip-path: var(--shield); background: var(--ink-900);
  transition: background-color 0.3s, transform 0.3s;
}
.gec-card::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s; }
.gec-card:hover { background: var(--ink-850); transform: translateY(-0.25rem); }
.gec-card:hover::after { box-shadow: inset 0 0 0 1px rgb(178 37 19 / 0.7); }
.gec-card__media { margin: 0; overflow: hidden; border-bottom: 1px solid rgb(255 255 255 / 0.06); background: rgb(255 255 255 / 0.02); }
.gec-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gec-card:hover .gec-card__media img { transform: scale(1.05); }
/* Cards fade up row by row as they reach the screen (guardians.js). gec-js is only set when that script can run.
   Fill "backwards": once finished the animation releases transform, so the hover lift keeps working */
html.gec-js .gec-card:not(.is-revealed) { opacity: 0; }
html.gec-js .gec-card.is-revealed { animation: gec-fade-up 0.6s ease-out backwards; }
.gec-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
.gec-card__cat { position: relative; z-index: 10; display: flex; align-items: center; color: var(--ink-500); font-family: var(--font-heading); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; }
.gec-card__cat a { color: var(--blood-400); }
.gec-card__cat a:hover { color: #fff; }
/* Arcade "Enter" on hover (EntityCard.tsx). The arrow is PixelArrow.tsx: the pixel font has no such glyph */
.gec-card__cat::before, .gec-card__cat::after { color: var(--blood-400); font-family: var(--font-pixel); font-size: 0.5rem; font-weight: 400; letter-spacing: 0; opacity: 0; }
.gec-card__cat::before {
  content: ""; position: relative; top: -1px; order: 1; flex-shrink: 0; width: 1em; height: 0.625em; margin-left: auto; margin-right: 0.375rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect width='3' height='5'/%3E%3Crect x='3' y='1' width='3' height='3'/%3E%3Crect x='6' y='2' width='2' height='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect width='3' height='5'/%3E%3Crect x='3' y='1' width='3' height='3'/%3E%3Crect x='6' y='2' width='2' height='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.gec-card__cat::after { content: "Enter"; order: 2; transition: opacity 0.3s; }
.gec-card:hover .gec-card__cat::before { opacity: 1; animation: gec-blink 1s steps(1, end) infinite; }
.gec-card:hover .gec-card__cat::after { opacity: 1; }
@keyframes gec-blink { 50% { opacity: 0; } }
.gec-card__title, h2.gec-card__title { margin: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: 0; line-height: 1.25; }
.gec-card__title a { color: #fff; }
.gec-card__title a:hover { color: #fff; }
.gec-card__title a::after { content: ""; position: absolute; inset: 0; }
.gec-card__excerpt { color: var(--ink-400); font-size: 0.875rem; line-height: 1.625; }
.gec-card__excerpt p { margin: 0; }
.gec-card__meta { display: flex; align-items: center; gap: 0.625rem; margin-top: auto; padding-top: 0.5rem; color: var(--ink-400); font-size: 0.75rem; font-weight: 500; }
.gec-card__meta .wp-block-post-author-name { color: var(--ink-400); }
/* Above the title link that covers the whole card */
.gec-card__meta .wp-block-post-author-name a { position: relative; z-index: 10; color: inherit; transition: color 0.15s; }
.gec-card__meta .wp-block-post-author-name a:hover { color: #fff; }
.gec-card__meta .wp-block-post-date::before { content: "/"; margin-right: 0.625rem; color: var(--ink-600); }
.gec-card__meta::after { content: "\2192"; margin-left: auto; color: var(--ink-500); font-size: 1rem; line-height: 1; transition: color 0.15s, transform 0.15s; }
.gec-card:hover .gec-card__meta::after { color: var(--blood-400); transform: translateX(0.25rem); }

/* Pagination */
.gec-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 3rem; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.gec-pagination--top { margin-top: 0; margin-bottom: 3rem; }
.gec-pagination a, .gec-pagination .current, .gec-pagination .dots { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: 0.75rem; box-sizing: border-box; clip-path: var(--shield-sm); background: rgb(255 255 255 / 0.05); color: #fff; transition: background-color 0.15s; margin: 0; }
.gec-pagination a { grid-auto-flow: column; gap: 0.35rem; }
.gec-pagination a:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.gec-pagination .current { background: var(--blood-600); }
.gec-pagination .wp-block-query-pagination-numbers { display: flex; gap: 0.5rem; }
.gec-empty { margin: 0; padding: 3rem 1rem; color: var(--ink-400); text-align: center; }

/* ---------- Article (.prose-guardians) ---------- */
.gec-article { padding-block: 3rem; }
.wp-block-post-content { color: var(--ink-300); font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.wp-block-post-content > * + * { margin-top: 1.25em; }
.wp-block-post-content strong { color: #fff; }
.wp-block-post-content a:not(.wp-block-button__link) { color: var(--blood-400); text-decoration: underline; text-decoration-color: rgb(178 37 19 / 0.5); text-underline-offset: 4px; transition: text-decoration-color 0.15s; }
.wp-block-post-content a:not(.wp-block-button__link):hover { color: var(--blood-400); text-decoration-color: var(--blood-400); }
.wp-block-post-content :is(h2, h3, h4) { margin-top: 2em; margin-bottom: 0.75em; font-weight: 800; }
.wp-block-post-content h2 { position: relative; padding-left: 1rem; font-size: 1.5rem; }
.wp-block-post-content h2::before { content: ""; position: absolute; top: 0.2em; bottom: 0.2em; left: 0; width: 0.25rem; background: var(--blood-600); }
.wp-block-post-content h3 { font-size: 1.25rem; }
.wp-block-post-content h4 { font-size: 1.0625rem; }
@media (min-width: 640px) { .wp-block-post-content h2 { font-size: 1.875rem; } .wp-block-post-content h3 { font-size: 1.5rem; } }
.wp-block-post-content :is(h2, h3, h4) + * { margin-top: 0; }
.wp-block-post-content :is(ul, ol) { padding-left: 1.5em; }
.wp-block-post-content li::marker { color: var(--blood-500); }
.wp-block-post-content li + li { margin-top: 0.125em; }
.wp-block-post-content blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--blood-600); color: #fff; font-style: normal; }
.wp-block-post-content hr { border: 0; border-top: 1px solid rgb(255 255 255 / 0.1); }
.wp-block-post-content img { max-width: 100%; }
.wp-block-post-content figure { margin-inline: auto; }
.wp-block-post-content figcaption { color: var(--ink-400); font-size: 0.875rem; text-align: center; }
.wp-block-post-content table { width: 100%; border-collapse: collapse; }
.wp-block-post-content :is(th, td) { padding: 0.5rem 0.75rem; border: 1px solid var(--theme-border-color); }
.wp-block-post-content th { background: var(--ink-900); color: #fff; }
/* Phones: the posts' own table CSS forces fixed columns and breaks words at any letter. Columns fit their words, hyphenating
   long ones; a table that still doesn't fit scrolls inside its own frame, not the page */
@media (max-width: 639.98px) {
  .wp-block-post-content .wp-block-table { overflow-x: auto; }
  .wp-block-post-content .wp-block-table table { table-layout: auto; font-size: 0.875rem; }
  /* nth-child(n): the posts load their CSS later and use :first-child selectors, so this needs to outweigh them */
  .wp-block-post-content figure.wp-block-table table :is(th, td):nth-child(n) { width: auto; padding: 0.5rem; overflow-wrap: normal; hyphens: auto; }
  .wp-block-post-content figure.wp-block-table table:has(th:nth-child(3)) { font-size: 0.8125rem; }
  .wp-block-post-content figure.wp-block-table table:has(th:nth-child(3)) :is(th, td):nth-child(n) { padding: 0.375rem; }
}
.wp-block-post-content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Tags written inside the posts (wp:post-terms) */
.wp-block-post-content .wp-block-post-terms { font-size: 0.8rem; font-weight: 600; text-align: center; }
.wp-block-post-content .wp-block-post-terms a { color: var(--blood-400); text-decoration: none; }
.wp-block-post-content .wp-block-post-terms a:hover { color: #fff; }

/* Tags and share box, under the article */
.gec-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.gec-tags a {
  padding: 0.5rem 1rem; clip-path: var(--shield-sm); background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15); color: #fff;
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1rem; letter-spacing: 0.05em; text-transform: uppercase; transition: background-color 0.15s;
}
.gec-tags a:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.gec-tags a::before, .wp-block-post-content .wp-block-post-terms a::before { content: "#"; }
.gec-tags .wp-block-post-terms__separator { display: none; }
.gec-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.gec-share .gec-socials { justify-content: center; }
.gec-tags + .gec-share { margin-top: 2rem; padding-top: 0; border-top: 0; }
.gec-share__status { flex-basis: 100%; min-height: 1.25rem; margin: 0; color: var(--blood-300); font-size: 0.875rem; line-height: 1.25rem; text-align: center; }

.gec-related { border-top: 1px solid rgb(255 255 255 / 0.05); }

/* Comments (TT5 pattern) */
.gec-comments { max-width: calc(1200px + 2rem); padding-bottom: 4rem; }
/* "Comentarios" heading only when there are comments, as before */
.gec-comments .wp-block-comments:not(:has(.wp-block-comment-template)) > .wp-block-heading { display: none; }
.gec-comments :is(input:not([type="checkbox"]):not([type="submit"]), textarea) { box-sizing: border-box; width: 100%; padding: 0.75rem; border: 0; background: var(--ink-900); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: #fff; font: inherit; }
.gec-comments .comment-reply-title, .gec-comments h2 { font-size: 1.5rem; }
.gec-comments .wp-block-post-comments-form p { margin-block: 0.75rem; }
.gec-comments label { color: var(--ink-300); font-size: 0.875rem; }
.gec-comments .wp-element-button, .gec-comments input[type="submit"] { padding: 0.75rem 1.25rem; border: 0; clip-path: var(--shield-sm); cursor: pointer; }

/* ---------- Footer (SiteFooter.tsx) ---------- */
footer.gec-footer { position: relative; border-top: 1px solid var(--line); background: var(--ink-900); }
footer.gec-footer::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: linear-gradient(to right, transparent, var(--blood-600), transparent); }
.gec-partners { border-bottom: 1px solid var(--line); }
.gec-partners__inner { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 640px) { .gec-partners__inner { gap: 3.5rem; padding-block: 4rem; } }
.gec-section-label { margin: 0 0 1.25rem; color: var(--blood-400); font-family: var(--font-heading); font-size: 1rem; font-weight: 800; letter-spacing: 0.3em; line-height: 1.3333; text-align: center; text-transform: uppercase; }
@media (min-width: 640px) { .gec-section-label { margin-bottom: 2rem; font-size: 1.25rem; } }
.gec-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .gec-logos { gap: 2rem 3rem; } }
.gec-logos img { display: block; width: auto; max-width: 11rem; height: 4rem; object-fit: contain; transition: transform 0.3s; }
.gec-logos img:hover { transform: scale(1.05); }
@media (min-width: 640px) { .gec-logos img { height: 5rem; } }

.gec-footer__grid { display: grid; gap: 2.5rem; justify-items: center; padding-block: 3.5rem; }
@media (min-width: 768px) { .gec-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; } }
@media (min-width: 1024px) { .gec-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.gec-footer__about { max-width: 24rem; text-align: center; }
.gec-footer__about .gec-brand { justify-content: center; }
.gec-footer__about .gec-brand__name { font-size: 1.25rem; }
.gec-brand--footer img { width: 3.5rem; height: 3.5rem; }
.gec-footer__text { margin: 1.25rem 0 0; color: var(--ink-400); font-size: 0.875rem; line-height: 1.625; }
.gec-footer__text strong { display: block; color: #fff; font-weight: 600; }
.gec-footer__about .gec-socials { justify-content: center; margin-top: 1.5rem; }
.gec-footer__col { text-align: center; }
.gec-footer__col .gec-eyebrow { margin-bottom: 1rem; }
.gec-footer__col ul { margin: 0; padding: 0; list-style: none; }
.gec-footer__col li + li { margin-top: 0.625rem; }
.gec-footer__col a { color: var(--ink-400); font-size: 0.875rem; line-height: 1.25rem; overflow-wrap: anywhere; transition: color 0.15s; }
.gec-footer__col a:hover { color: #fff; }
@media (min-width: 768px) {
  .gec-footer__about, .gec-footer__col { text-align: left; }
  .gec-footer__about .gec-brand { justify-content: flex-start; }
  .gec-footer__about .gec-socials { justify-content: flex-start; }
}
.gec-footer__bottom { border-top: 1px solid var(--line); }
.gec-footer__bar { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-block: 1.5rem; color: var(--ink-500); font-size: 0.75rem; line-height: 1.3333; text-align: center; }
.gec-footer__bar p { margin: 0; }
.gec-footer__bar p a { color: var(--ink-300); }
.gec-footer__bar p a:hover { color: #fff; }
/* Logged-in account: avatar, name and options. Below 1440px it takes its own row so nothing gets squeezed */
.gec-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
/* The user: same shape as the options, but not a button (no hover, blood tint). Avatar 20px + 6px padding keeps the 32px height */
.gec-btn-ghost.gec-account__user, .gec-btn-ghost.gec-account__user:hover {
  padding-block: 0.375rem; background: rgb(64 16 12 / 0.6); box-shadow: inset 0 0 0 1px rgb(178 37 19 / 0.45); color: var(--blood-300); cursor: default; text-transform: none;
}
.gec-account__user img { display: block; width: 1.25rem; height: 1.25rem; border-radius: 0; }
@media (min-width: 640px) and (max-width: 1439.98px) { .gec-account { order: -1; width: 100%; } }
@media (min-width: 640px) { .gec-footer__bar { flex-flow: row wrap; justify-content: space-between; text-align: left; } }

/* Back to top */
.gec-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; clip-path: var(--shield-sm); background: var(--blood-600); color: #fff; opacity: 0; pointer-events: none; transform: translateY(0.5rem); transition: opacity 0.2s, transform 0.2s, background-color 0.15s; }
.gec-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.gec-top:hover { background: var(--blood-500); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
