/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;700;900&display=swap');

/* Base font for body text */

:root {
  --gutter: 1.5rem;
  --max-width: 1200px;
  --base-bg: #F5F3EE; /* colors inspired by merve verlag berlin, este es cremita */ 
  --text-dark: #2E2E2E;
  --primary-dark: #0F2353;
  --forest-green: #1F5342;
  --accent-burgundy: #aa0000;
  --accent-burgundy2: #800000ff;
  --accent-blue: #05334a;
  --neutral-pale-blue: #627890;
  --accent-beige: #d6b896;
  --neutral-beige: #ebd9c7;
  --blockquote-color: #E5DFD2; 
  --mustard: #a1a63f;
  --orange: #ffa94c;

  /* Supporting neutrals */
  --neutral-100: #FAFAFA;
  --neutral-200: #F0F0F0;
  --neutral-300: #D6D6D6;
  --neutral-600: #666666;
  --neutral-800: #333333;
  --neutral-900: #1A1A1A;
  
  /* otros no usados */ 

  --complementary-cyan: #16B87E;
  --highlight: #FAF9F6;
  --forest-green-light: #2F7A5E;
  --forest-green-dark: #153C30;
  --accent-magenta-light: #E54F8A;
  --accent-magenta-dark: #7C0F44;
  --primary-dark-light: #243C6E;
  --primary-dark-dark: #08142C;

  /* Accent complements */
  --accent-olive: #7A864F;        /* contrast to magenta */
  --accent-sand: #DCC7A1;         /* soft warmth for typography highlights */
  --accent-cyan: #1FA9A2;         /* modern counterpoint to magenta */
  --accent-cream: #FFF8E6;        /* delicate backdrop for editorial pages */
  --success: #3B8C6E;
  --warning: #F5B700;
  --error: #D7263D;
}


/* Better box-sizing everywhere */
*, *::before, *::after { box-sizing: border-box; }

/* Improve text wrapping */
html { -webkit-text-size-adjust: 100%; }

main.homepage {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gutter);
  display: grid;
  gap: var(--gutter);
}

body {
  background-color: var(--base-bg);
  font-family: 'Averia Serif Libre', system-ui, -apple-system, sans-serif !important;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #111;
}

/* header logo */ 

.header .banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}

.header .banner svg {
  height: auto;
  max-height: 100%;
  width: 700px; /* increase this value */
  display: block;
  transform: translateY(-5%);
}

@media (max-width: 768px) {
  .header .banner svg {
    max-width: 100%; /* takes 90% of the parent width */
  }
}

#content .twitter-handle a {
  font-family: 'Jost';
  font-size: .9rem;
  text-decoration: none;
  color: var(--neutral-600);
}

.authors-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Titles and headers */

/* === FIRST ROW === */

/* Use clamp to keep side padding reasonable across sizes */

/* main container already uses var(--gutter) and max-width */

.hero-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--gutter);
  width: min(100% - 2rem, 1600px);
  margin-inline: auto;
  background-color: var(--base-bg);
  grid-template-areas:
    "column1 feature column2";
}

.hero-column:nth-of-type(1) { grid-area: column1; }
.hero-column:nth-of-type(2) { grid-area: column2; }
.featured-center {
  grid-area: feature;   /* ADD THIS so the middle child has a name */
}

.secondary-background {
  width: 100%;
  background-color: var(--accent-burgundy);
}

.secondary-grid {
  background-color: var(--accent-burgundy);
  display: grid;
  width: 100%;
  max-width: 1300px;   /* site-wide max width */
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap, 12px);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 4rem;
  position: relative;
  box-sizing: border-box;
  padding-left: 1rem;  /* optional page padding */
  padding-right: 1rem; /* optional page padding */

}

/* 2) Secondary grid layout: use safe grid sizing */

.secondary-grid::before,
.secondary-grid::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: #ccc;
  pointer-events: none;        /* so they don't block clicks */
  z-index: 0;                  /* keep behind grid children if needed */
}

.secondary-grid::before { left: calc(33.333%); transform: translateX(-0.5px);}
.secondary-grid::after  { left: calc(66.666%); transform: translateX(-0.5px);}

.secondary-grid > * { position: relative; z-index: 1}


/* 3) Ensure each article is a column and does not overflow */

/* 4) Thumbnail container: full width of its column, fixed aspect, no margins */
.secondary-grid .article .featured-thumbnail {
  width: 100%;           /* fill the grid column */
  max-width: 100%;       /* never exceed the column */
  aspect-ratio: 3 / 2;   /* keep ratio */
  overflow: hidden;      /* crop overflow */
  margin: 0;             /* remove extra space that enlarges layout */
  padding: 0;
  box-sizing: border-box;
}

.secondary-grid .article-cont {
  background-color: var(--accent-burgundy) !important;
}

.secondary-grid .article {
  background-color: var(--accent-burgundy) !important;;
}

/* 5) Image: fill the container but obey max-width, preserve cropping */
.secondary-grid .article .featured-thumbnail img {
  display: block;
  width: 100%;           /* fill container */
  height: 100%;          /* required for object-fit cropping */
  max-width: 100%;       /* safety */
  object-fit: cover;
}

/* 6) If you want smaller thumbnails visually, reduce the column width on large screens */
@media (min-width: 1201px) {
  .secondary-grid { grid-template-columns: repeat(3, 1fr); } /* unchanged */
}
@media (max-width: 1100px) {
  /* make right/left adjustments for mid screens if desired */
  .secondary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .secondary-grid { grid-template-columns: 1fr; }
  .secondary-grid .article-taxonomy {margin-top: 2rem}
  .secondary-grid .article-taxonomy .author {margin-top: -1rem}
  .secondary-grid::before,
  .secondary-grid::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  width: 0px;
  background: #ccc;
  pointer-events: none;        /* so they don't block clicks */
  z-index: 0;                  /* keep behind grid children if needed */
}

.secondary-grid::before { left: calc(33.333%); transform: translateX(-0.5px);}
.secondary-grid::after  { left: calc(66.666%); transform: translateX(-0.5px);}

.secondary-grid > * { position: relative; z-index: 1}
}

.hero-feature {
  background: #f9f9f9;
  padding: var(--gutter);
  margin-left: -1rem;
  border-right: 1px solid var(--divider-color, #ccc);
  border-left: 1px solid var(--divider-color, #ccc);
  line-height: 80px;
}

.featured-content h1 {
  font-size: 2.2em;
  line-height: 3rem;
  font-family: 'Jost', serif !important;
  font-weight: 700;
  letter-spacing: 0.001em;
  color: #d11534;
  margin-top: -0.5rem;
  margin-bottom: .7rem;
  text-transform: uppercase;
}

.featured-thumbnail {
  margin-top: -0.5rem;
  width: 100%;
  margin-left: 0rem;
  max-width: none;
}

.featured-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* or 1/1 for square, 4/3, etc. */
  object-fit: cover;      /* fills the box and crops excess */
}

.featured-content .summary {
  font-family: 'Averia Serif Libre', serif !important;
  font-size: 1.2em;
  line-height: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.001em;
  color: var(--neutral-600);
  margin-bottom: 1rem;
}

.hero-column .featured-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* or 1/1 for square, 4/3, etc. */
  object-fit: cover;      /* fills the box and crops excess */
}

.hero-column {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}


.article--tight {
  margin-top: -0rem }/* move it up slightly 
}

/* home callouts */ 

.home-featured {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  gap: 2rem;
  margin-top: -2rem;  /* remove top margin */
}


.home-featured-left {
  flex: 0 0 35%; /* width: 60% */
}

.home-featured-center {
  flex: 0 0 60%; /* width: 60% */
  /*transform: translateY(40px); /* adjust value */


}

/* --- RIGHT COLUMN WRAPPER --- */
.home-featured-right {
  flex: 0 0 32%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    transparent 50%,
    var(--neutral-beige) 50%,
    var(--neutral-beige) 100%
  );
  /* compact but comfortable padding */
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;              /* spacing between posts */
  align-items: flex-start;
  box-sizing: border-box;
}

.home-featured-right h3 {
 font-family: 'Jost';
}

/* --- POST LIST --- */
.home-featured-right .misc-posts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

/* --- POST TITLE --- */
.home-featured-right .misc-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-featured-right .misc-title a {
  color: inherit;
  text-decoration: none;
}

.home-featured-right .misc-title a:hover {
  background-color: var(--accent-beige);
}

.misc-autores-grouped {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Jost';
  font-size: .9rem;
}

/* --- AUTHOR + DATE --- */
.home-featured-right .misc-author,
.home-featured-right .misc-date {
  margin: 0;
  font-size: 0.9rem;
  font-family: 'Jost';
}

.home-featured-right .misc-author a {
  color: inherit;
  text-decoration: none;
}

/* --- THUMBNAIL --- */
.home-featured-right .misc-thumbnail {
  margin-bottom: 0.6rem;       /* tighter spacing */
}

.home-featured-right .misc-thumbnail img {
  width: 100%;                 /* FULL WIDTH → fix the empty right-side space */
  max-width: 100%;
  height: auto;

  border: 2px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);

  display: block;
}

.home-featured-inner {
  padding: 2rem;
}

/* Stack on mobile */

.home-featured-center .home-callouts {
  position: relative;
  padding: 0rem;
  width: 100%;
  margin-right: auto;  /* pushes it left */
}

.home-callout {
  background: var(--base-bg);
  padding: 0rem;
  border: 0px solid var(--primary-dark);
  border-radius: 2px;
  margin-bottom: 2rem;
  color: white;
}

.home-callout .callout-text {
  color: var(--neutral-800);
  text-transform: uppercase;
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left !important;
}

.home-callout .callout-text a {
  text-decoration: none;
}

.home-callout .callout-title a {
  text-decoration: none;
  color: inherit;
}

.home-callout .callout-title a:hover {
  background-color: var(--neutral-beige);
}

/* Callout meta: inline flow */
.home-callout .callout-meta {
  background-color: var(--base-bg);
  color: var(--neutral-800);
  display: block;        /* flow naturally */
  font-size: 1rem;
  margin-left: 4rem;
  margin-right: 3rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  padding: 0;             /* remove inherited padding */
  text-align: left !important;
}


.home-callout .callout-meta span {
  display: inline;
}

.home-callout .callout-meta span::after {
  content: ", ";
}

.home-callout .callout-meta span:last-child::after {
  content: ""; /* remove comma for last item */
}

.pirulo-card {
    text-decoration: none; /* remove underline from the link */
    color: inherit;        /* optional: make link text inherit color */
    cursor: pointer;       /* normal cursor instead of pointer, if desired */
}

.pirulos-obra-reseñada {
  font-family: 'Jost';
  font-size: .8rem;
  margin-top: -1.5rem;
  margin-left: .1rem;
  font-style: italic;
}

.pirulos-obra-reseñada a:link,
.pirulos-obra-reseñada a:visited {
  color: black;
  text-decoration: none;
}

.pirulo-title-item:hover {
  background-color: var(--accent-beige) !important;
}

.pirulo-card img {
  max-width: 240px;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  display: block;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.6rem;
}


.pirulo-row {
  margin-top: .5rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;

  /* Increase the space INSIDE the box */
  padding: 1rem 3rem 3rem 3rem;  /* adjust this as needed */

  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    var(--neutral-beige) 50%,
    var(--neutral-beige) 100%
  );
}

.pirulo-card:hover {
    text-decoration: none; /* prevent underline on hover */
    color: inherit;        /* optional */
}

.pirulo-card {
  font-family: 'Jost';
  font-size: 1.4rem;
}


.pirulo-thumb-wrapper {
  display: flex;
  flex-direction: column; /* obra_reseñada below the image */
  align-items: flex-start; /* align left with image */
  gap: 4px;
}

.pirulo-img {
  max-width: 100%;
}

.pirulo-section-title {
  display: block;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  font-size: 1rem;
  font-family: 'Jost';
  font-weight: 500;
  margin-bottom: .2rem;
  color: var(--accent-burgundy);
}

.pirulo-obra-reseñada {
  font-family: 'Jost';
  font-weight: 300;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  margin-top: -0.5rem;

}

.pirulos-text-content h3 {
  font-family: 'Jost';
}

.pirulos-text-content a {
  color: black;
}

.pirulos-thumbnail,
.pirulos-thumbnail picture,
.pirulos-thumbnail .post-thumbnail,
.pirulos-thumbnail .entry-thumb {
  height: auto !important;
  overflow: visible !important;
  object-fit: contain !important;
}

.pirulos-thumbnail {
  justify-self: end;
  align-self: start;          /* keep top alignment */
  padding-right: 1.5rem;      /* space toward the text */
  border-right: 1px solid var(--divider-color, #ccc);
}

/* Image on the RIGHT column → align to the LEFT (toward the gap) */
.pirulos-item:nth-child(even) .pirulos-thumbnail {
  justify-self: start;
  padding-right: 0;
  padding-left: 1.5rem;
  border-right: none;
  border-left: 1px solid var(--divider-color, #ccc);
}

.pirulos-thumbnail img {
  width: 100%;
  max-width: 480px;   /* controls visual size */
  height: auto;
  padding: 1rem;
  padding-top: 0rem;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}




.pirulo-author {
  font-family: 'Jost';
  font-weight: 300;
  font-size: 0.9rem;
}

.open-quote,
.close-quote {
  position: absolute;
  z-index: 0;
  opacity: 0.4 ; /* optional, aesthetic */
}

.open-quote {
  top: -30px;
  left: 20px;
}

.close-quote {
  bottom: -6px;
  right: 20px;
}
.open-quote img {
  max-height: 120px;
}

.close-quote img {
  max-height: 120px;
  align-items: right;
}



/* Stack on mobile */
/* -------------------------------------------- */
/* MOBILE RESPONSIVE BREAKPOINT */
/* -------------------------------------------- */
@media (max-width: 1070px) {
  .home-featured-container { /* parent container */
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;    /* center children horizontally */
    gap: 1rem;              /* optional spacing between items */
  }

  .home-featured-center,
  .home-featured-left,
  .home-featured-right {
    flex: 0 0 100%; /* full width */
    width: 100%;
    max-width: 600px; /* optional: limit width on mobile */
    text-align: center; /* center text inside each box */
  }
}


@media (max-width: 768px) {

  /* STACK COLUMNS */
  .home-featured {
    flex-direction: column;
    gap: 0rem;
    padding: 0 1rem;
  }

  .home-featured-left,
  .home-featured-center,
  .home-featured-right {
    flex: 0 0 100%;
    width: 100%;
  }

  /* RIGHT COLUMN: CLEARER BACKGROUND GRADIENT */
  .home-featured-right {
    background: linear-gradient(
      to bottom,
      transparent 30%,
      var(--neutral-beige) 30%
    );

    padding: 1rem;
  }

  /* INNER CARD PADDING REDUCED */
  .home-featured-inner {
    padding: 1rem;
  }

  /* CALL OUT */
  .home-callout {
    padding: 0rem;
  }

  .home-callout .callout-text {
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 1rem 2rem;
  }

.home-callout .callout-meta {
  white-space: normal;       /* allow wrapping when necessary */
  font-size: 1rem;
  line-height: 1.1;
  padding: .5rem 2rem;
}

/* keep specific tokens together */
.home-callout .callout-meta .no-break {
  white-space: nowrap;
  display: inline-block;    /* keeps its content on one line */
}

  /* QUOTE SVGs SCALE DOWN */
  .open-quote img,
  .close-quote img {
    max-height: 60px;
  }

  .open-quote {
    top: -12px;
    left: 10px;
  }

  .close-quote {
    bottom: -4px;
    right: 10px;
  }

  /* THUMBNAILS */
  .home-featured-right .misc-thumbnail img {
    border-width: 1px;
  }

  /* TITLES */
  .home-featured-right .misc-title {
    font-size: 1rem;
  }

  /* AUTHOR + DATE */

  .home-featured-right .misc-author,
  .home-featured-right .misc-date {
    font-size: 0.9rem;

  }



}
}

/* super sidenotes */

span.sidenote {
    /* hidden by default (mobile) */
    display: none;
}

@media (min-width: 960px) {
    span.sidenote {
        display: block;
        position: relative;
        float: right;
        clear: right;
        transform: translateY(-50%);

        width: 30%;
        margin: 0;
        margin-bottom: 1.1rem;
        margin-top: 1.1rem;
        margin-right: -35%;
        padding: 0.5rem 0;
        box-sizing: border-box;
        text-align: left;
        background-color: initial;

        font-size: 80%;
        line-height: 150%;
        color: var(--global-font-secondary-color);
        padding-left: 0.75rem;   /* ← this is the key line */
        border-left: 1px solid #888;
    }
}

span.sidenote small {
    font-size: 100%;
}


/* Don't show sidenotes on the home page. */
.home.posts #content .sidenote {
    display: none;
}

/* Container for author list */
.hero-column .post-author .author-name {
  font-size: 1rem;
  margin-bottom: -0.6rem;
  font-family: 'Jost', Georgia, serif !important;
  font-weight: 600;
  color: var(--accent-burgundy);
  letter-spacing: 0.001em;
  white-space: normal; /* allow wrapping of the whole author list */
  line-height: 1.3;    /* improves multi-line readability */
}

.hero-column h1 {
  margin-bottom: .5rem;
  font-size: 1.4rem; /* era 1.3 */
  font-family: 'Jost', Georgia, serif !important;
  font-weight: 600;
  color: var(--neutral-800);
  letter-spacing: 0.01em;
  line-height: 1.4;    /* improves multi-line readability */
}

#content .article-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr; /* main content / footnotes */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#content .article-content {
  min-width: 0;

}

#content .article-content img {
  max-width: 100%;
}

#content .article-content a {
    text-decoration: underline;
    color: black;
}

/* Footnotes sidebar */
#content .article-footnotes {
  position: sticky;
  top: 2rem;
}

#content .side-footnotes {
  background: var(--base-bg);
  border-left: 3px solid var(--neutral-300);
  padding-left: 1rem;
  font-size: 0.9rem;
}

/* Responsive: collapse footnotes below content */
@media (max-width: 999px) {
  .article-wrapper {
    grid-template-columns: 1fr;
  }

  .article-footnotes {
    position: relative;
    top: auto;
    margin-top: 2rem;
    border-left: none;
    padding-left: 0;
  }
}


/* Each author link / name */
.hero-column .post-author .author-link {
  white-space: nowrap;  /* keep individual names together */
  display: inline-block; /* allows wrapping at commas / spaces between authors */
  font-size: 1.1em;
  font-family: 'Jost', serif !important;
  font-weight: 600;
  color: var(--accent-burgundy);
  letter-spacing: 0.001em;
  margin-right: 0.2em; /* small space after each author */
  text-transform: none;
}

.hero-column .summary {
  font-size: 1.1rem; /* era 1.1rem */
  margin-bottom: 1rem;
  font-family: 'Averia Serif Libre', serif !important;
  font-weight: 400;
  color: var(--neutral-600);
  letter-spacing: 0.001em;
}

.hero-column .date {
  margin-top: 1rem;
}

.secondary-grid article h1 {
  font-size: 1.2em;
  font-family: 'Jost', Georgia, serif !important;
  font-weight: 700;
  letter-spacing: 0.001em;
}

.secondary-grid article {
  margin-bottom: -3rem;
}

/* Callouts / destacados */ 

.callout-wrapper {
  background-color: var(--base-bg);
}

.callout-text {
  color: var(--neutral-800);
  font-weight: 700;
  font-family: 'Jost';
  font-size: 2rem;
  text-transform: uppercase;
  border-left: 8px solid var(--accent-burgundy);
  padding: 2rem 4rem;
}

.callout-meta {
  background-color: var(--base-bg);
  color: var(--neutral-800);
  font-family: 'Jost';
  font-size: 1.1rem;
  padding: 0rem 4rem 2rem;
}

.callout-title {
  font-style: italic;
}

.left-logo-img {
  height: 26px;
  width: auto;

  /* Make sure share-icon rules never override this */
  fill: none !important;
}

.share-fixed {
  border-top: 1px solid var(--neutral-800);
  display: flex;
  justify-content: space-between; /* left logo + right icons */
  align-items: center;
  padding-top: 0.5rem;
}

.right-icons {
  display: flex;
  gap: 0.8rem;
}

.share-icon {
  padding: 0.4rem;
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.share-icon:hover {
  background: var(--accent-blue);
}



/* Catastrophe specific grid */
/* OUTER WRAPPER */

.catastrophe {
  background-color: var(--accent-burgundy);
  margin-top: 1rem;
  padding: 2rem 1.5rem;   /* your desired side gutter */
  margin-bottom: 2rem;
}

.catastrophe-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;

}

.catastrophe-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* GRID LAYOUT */

/* SECTION TITLE */
.cat_title h1 {
  font-family: 'Jost';
  font-size: 3rem;
  padding: 1rem;
  text-align: center;
  color: white;
  background-color: var(--accent-burgundy);
  border-bottom: 1px solid var(--base-bg);
  margin: 0;
}

/* LEFT COLUMN: IMAGE */
.cat_picture img {
  margin-top: 2rem;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* RIGHT COLUMN: ARTICLES */

.cat_articles {
  list-style: none;
  margin-top: 2rem;
}

.cat_articles li {
  margin-bottom: 1.8rem;
  font-family: 'Jost';
  font-weight: 700;
  color: var(--base-bg);
  font-size: 1.4rem;
  line-height: 1.5;
}

.cat_articles a {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cat_articles a:hover {
  color: var(--accent-beige);
}


.cat_articles em {
  font-style: italic;
  font-weight: 500;
}

/* ARTICLE CONTENT */
.catastrophe-grid .summary,
.catastrophe-grid .author,  
.catastrophe-grid .date {
  background: none;
  color: var(--base-bg);
}

.catastrophe-grid .date {
  font-size: 0.9rem;
  opacity: 0.8;
}


/* ===========================
   Small desktops: screens at half size (<=1170px)
   Stack *everything* in one column
=========================== */

@media screen and (max-width: 1070px) {
  /* Hero grid: stack feature on top, then 2 columns below */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "column1" 
      "column2";
  }
  .home-callout {
    max-width: 100%;
  }
  /* Secondary grid: reduce to 2 columns */
  .secondary-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .catastrophe-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* collapse to one column */
  }

  .cat_picture {
    order: 1; /* picture first */
  }

  .cat_articles {
    order: 2; /* articles after */
  }

  .article-sidebar {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers flex children */
    width: 100%;
  }

  /* Center authors */

  .author-bio,
  .twitter-handle {
    text-align: left;
  }

  /* Center date */
  .post-date {
    text-align: center;
    width: 100%;
  }

  /* Center share section */
  .share-section {
    text-align: center;
  }

  .share-buttons {
    display: flex;
    justify-content: center; /* center icons */
    gap: 0.8rem;
    width: 100%;
  }
}
  }
}


/* ===========================
   MOBILE: Small screens (<=700px)
   Stack *everything* in one column
=========================== */
@media screen and (max-width: 700px) {

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;  /* stack in one column */
    gap: 1rem;
  }

  /* Explicitly map children to correct grid areas */
  .hero-grid > *:nth-child(1) {
    grid-area: feature;
  }
  .hero-grid > *:nth-child(2) {
    grid-area: column1;
  }
  .hero-grid > *:nth-child(3) {
    grid-area: column2;
  }

  .hero-grid {
    grid-template-areas:
      "feature"
      "column1"
      "column2";
  }
}
/* articles new */ 

#content .article-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  margin-top: 0rem;
}

#content .article-layout .article-sidebar {
  flex: 0 0 22%;
  max-width: 260px;
  padding-right: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  padding: .2rem;
}

#content .article-layout .article-sidebar h1 {
  font-family: 'Jost';
  font-size: 2.2rem;
  margin-bottom: 3rem;
  letter-spacing: -0.032em;
  line-height: 3.2rem;
}


#content .article-sidebar .post-author {
  font-size: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
  color: inherit;
  font-family: Jost;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

#content .article-sidebar .post-author .author-block {
  margin: 0rem 0;  /* smaller vertical spacing */
  line-height: 1.2;  /* adjust if needed */
}

#content .article-sidebar .post-author .author-bio {
  font-size: 0.8em;
  font-weight: 300;
  font-family: 'Averia Serif Libre';
  margin-top: 1.5rem;
  line-height: 1.5rem;
}

#content .article-sidebar .post-author .author-link {
  color: inherit;            /* same color as surrounding text */
  text-decoration: none;     /* remove underline */
  transition: all 0.2s ease;

}

#content .article-sidebar .post-author .author-link:hover {
  color: var(--neutral-800); /* underline on hover */
}

/* for reseñas */ 

#content .title-obra-resenada h1 {
  margin-top: 4rem;
  }

#content .obra_reseñada {
  display: flex;
  flex-direction: row;   /* horizontal layout */
  align-items: flex-start;
  width: 100%;
  margin-top: 1rem;
  gap: 1rem;             /* spacing between image and text */
}

/* cover stays on the left */
#content .book-cover img {
  max-width: 125px;      /* fixed size keeps layout stable */
  height: auto;
  box-shadow: 8px 0 12px rgba(0, 0, 0, 0.3);
}

/* text on the right */
#content .obra-text {
  font-size: 1rem;
  color: #333;
  text-align: left;      /* left-align for readability */
  line-height: 1.4;
  max-width: calc(100% - 100px - 1rem);
}

#content .obra-text a {
  color: black;
}

#content .publicado-originalmente-en {
  margin-top: -1rem;
}

#content .publicado-originalmente-en a {
  text-decoration: underline;
  color: black;
}

#content .article-content {
  flex: 2;
  width:  50%;
  max-width: 685px;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #494746;
  margin-top: 1rem;
}

#content .article-content-tax {
  margin-top: 2rem;
}

#content .article-content h1 {
  font-family: 'Jost';
  font-size: 1.8rem;
}

#content .article-content h2 {
  font-size: 1.6rem;
}

#content .container-article {
  padding: 1rem 6rem 0;
}

.thumbnail-insert img {
  max-width: 100%;
  height: auto;
  display: block;
}

.thumbnail-insert figcaption {
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.thumbnail-insert figcaption .epigraph {
  text-align: left;
}

.thumbnail-insert figcaption .copyright {
  text-align: right;
  white-space: nowrap; /* Prevent wrapping */
}

/* search box */ 

#search .pagefind-ui__search-input-wrapper svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#search .pagefind-ui__search-input-wrapper::before {
    display: none !important;
    content: none !important;
}

#search .pagefind-ui__filter {
    max-height: none !important;
    overflow: visible !important;
}

/* Prevent collapsing */
#search .pagefind-ui__filter-toggle {
    display: none !important;
}

/* Change highlight background */
/* FORCE highlight color — put AFTER pagefind-ui.css */

#search .pagefind-ui--reset mark {
  background-color: var(--accent-sand);
}

#search .pagefind-ui__search-input {
  padding-left: 2.5rem !important;
  width: 100%;
  padding: 0.8rem;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}


#search .pagefind-ui__result-title {
  font-size: 1.1rem;
  color: var(--main-color);
}

#search .pagefind-ui__result-title {
  font-size: 1.1rem;
}

/* Remove the image cell entirely */
#search .pagefind-ui__result {
    grid-template-columns: 1fr !important; /* Only one column */
}

/* Hide the image so it doesn't load or take space */
#search .pagefind-ui__result-image {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Optional: tighten spacing where the image used to be */
#search .pagefind-ui__result-inner {
    padding-left: 0 !important;
}


#search .pagefind-ui__filter-name {
    font-family: 'Jost';
    font-size: 1.3rem;
    font-weight: 600;
}

#search .pagefind-ui__filter-value {
    font-family: 'Jost';
    font-size: 1.1rem !important;
    line-height: 1.4;
}

#search .pagefind-ui__message {
    font-family: 'Jost';
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--base-text);
    margin-top: 1rem;
}

#search .pagefind-ui__results-summary {
    font-family: 'Jost';
    font-size: 1.1rem !important;
    font-weight: 500;
    margin-bottom: 1rem;
}

#search .pagefind-ui__result-title {
  font-family: 'Jost';
    font-size: 1.4rem !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--base-text);   /* or any color */
}

#search .pagefind-ui__result-excerpt {
  font-family: 'Jost';
    font-size: 1rem !important;
    line-height: 1.6;
    color: #444;   /* softer grey */
}


/* share section in articles */

.share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color, #ddd);
  text-align: left;
}

.share-title {
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #666);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: left;
  gap: 1.5rem;
}

.share-button img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.share-button img:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* llevar a media */

@media (max-width: 900px) {

  #content .container-article {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #content .article-layout {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #content .article-layout .article-sidebar h1 {
    text-align: center;
    margin-bottom: 1rem;
  }

  .share-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #ddd);
    text-align: left;
  }

  .share-title {
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #666);
    margin-bottom: 1rem;
    text-align: center;
  }

  .share-buttons {
    display: flex;
    justify-content: left;
    gap: 1.5rem;
  }

  .share-button img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
    opacity: 0.85;
  }

  .share-button img:hover {
    transform: scale(1.15);
    opacity: 1;
  }

  #content .article-content {
    width: 100%;
    text-align: left;
  }

  #content .obra_reseñada {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  #content .book-cover img {
    max-width: 80%;
    height: auto;
    box-shadow: 8px 0 12px rgba(0, 0, 0, 0.3); /* right-side shadow */
  }

  #content .obra-text {
    font-size: 1rem;
    color: #333;
    text-align: center;
    max-width: 90%;
  }
}

@media (max-width: 768px) {

  #content .container-article {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #content .article-layout {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #content .article-layout .article-sidebar h1 {
    text-align: center;
    margin-bottom: 1rem;
  }

  .share-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #ddd);
    text-align: left;
  }

  .share-title {
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #666);
    margin-bottom: 1rem;
    text-align: center;
  }

  .share-buttons {
    display: flex;
    justify-content: left;
    gap: 1.5rem;
  }

  .share-button img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
    opacity: 0.85;
  }

  .share-button img:hover {
    transform: scale(1.15);
    opacity: 1;
  }

  #content .article-content {
    width: 100%;
    text-align: left;
  }

  #content .obra_reseñada {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  #content .book-cover img {
    max-width: 80%;
    height: auto;
    box-shadow: 8px 0 12px rgba(0, 0, 0, 0.3); /* right-side shadow */
  }

  #content .obra-text {
    font-size: 1rem;
    color: #333;
    text-align: center;
    max-width: 90%;
  }
}

/* article and secondary row */

#content .article {
  background: var(--base-bg);
  padding: 1rem;
  border-radius: 0px;
}

.secondary-grid .article {
  margin-top: 1rem;
  background: var(--accent-burgundy);
  padding: 1rem;
}

@media (max-width: 768px) {
  .secondary-grid .article {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .taxonomy-grid.secondary-grid .article-taxonomy {
    border-right: none;
  }
}


.secondary-grid .categories {
  margin-top: 1rem;
}

.taxonomy-content .article-taxonomy h1 a,
.secondary-grid .author-name,
.secondary-grid .summary,
.secondary-grid .categories a,
.secondary-grid .date {
  color: var(--base-bg);
  text-decoration: none
}

.taxonomy-content .article-taxonomy h1:hover {
  color: var(--base-bg);
}


.secondary-grid .article h1,
.secondary-grid .author-name,
.secondary-grid .summary,
.secondary-grid .categories a,
.secondary-grid .date {
  color: var(--base-bg);
}

/* un poquito más de espacio en la fecha que etaba muy pegada */
.secondary-grid .date {
  margin-top: 1rem;
}

.article h2,
.article h3,
.article h4 {
  margin-top: 0;
}

.article-content h3 {
  font-family: 'Jost';
}

.article a {
  text-decoration: none;
  color: inherit;
}

.article a:hover {
  text-decoration: none;
}


/* author page */
.author-page {
  background-color: var(--base-bg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 3rem; /* modest side padding */
  max-width: 1200px;   /* or 1000px if you prefer wider */
  margin: 0 auto;     /* centers horizontally */
}

.author-header {
  display: grid;
  grid-template-columns: 120px 1fr;  /* image + text */
  align-items: center;
  gap: 2rem;
}

.author-photo img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* Mobile view */

@media (max-width: 768px) {
  .author-page {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .author-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-image img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
  }

  .author-info {
    text-align: left;
  }

  .list-of-articles-by-authors {
    padding-left: 0rem !important;
  }
}

.list-of-articles-by-authors {
  margin-top: 1rem;
  border-top: 2px solid;
  padding-left: 9.5rem;
  padding-right: 8rem;
}

.author-image img {
  filter: grayscale(100%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.author-card-link {
  text-decoration: none;
}

.author-info h1 {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.8em;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 0.5em;
}

.author-info p {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

.secondary-grid-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;  /* spacing between list items */
  align-items: flex-start;  /* left-align the content */
  margin-bottom: 3rem;
  margin-top: 1.5rem;
}

.secondary-grid-author article {
  padding: 0.5rem 0rem;

}

.secondary-grid-author h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.1rem 0;
}

.secondary-grid-author a {
  color: var(--primary-dark);
  text-decoration: none;
}

.secondary-grid-author a:hover {
  text-decoration: underline;
}

.article-date {
  font-size: 0.9rem;
  color: var(--neutral-pale-blue);
  margin-left: 0.3rem;
  white-space: nowrap;
}

.author-page a {
  font-weight: 400;
  text-decoration: underline;
  color: var(--neutral-600);
}


.author a,
.article-list a[href*="/authors/"] {
  color: inherit;
  font-size: 1.2rem;
  font-family: Jost;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.author-page a:hover,
.author a:hover,
.article-list a[href*="/authors/"]:hover {
  text-decoration: underline;
}

/* === SECOND ROW === */

.secondary-grid h1 {
  font-size: 2.2em;
  font-family: 'Jost', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.001em;
}

/* taxonomy bar + layout */
.taxonomy-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center; /* centers items vertically */
  height: 4.5rem;
  background-color: var(--accent-blue);
  display: flex;
/*  justify-content: center;*/
  border-bottom: 5px solid #d35f5f;
  border-top: 5px solid #d35f5f;
  padding: 0.6rem 2rem; /* ⬅️ increased from 1rem to 2rem */
  overflow-x: auto; /* enable horizontal scroll */
  -webkit-overflow-scrolling: touch;
  transition: transform 0.3s linear, box-shadow 0.3s linear;
}

/* When hidden, slide the bar up out of view */
.taxonomy-bar.hidden {
  transform: translateY(-100%);
}

/* Optional subtle shadow when visible */
.taxonomy-bar.visible {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Small logo inside taxonomy bar */
.taxonomy-logo {
  position: absolute;
  opacity: 0;
  transform: translateY(-10px);
  left: 1rem; 
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  margin-right: 1rem;
}

.taxonomy-logo.show {
  opacity: 1;
  transform: translateY(0);
}

.taxonomy-logo img {
  height: 30px;
  width: auto;
}


.taxonomy-bar > * {
  display: flex;
  align-items: center;
}

.taxonomy-bar ul {
  display: flex;
  flex-wrap: nowrap; /* prevent wrapping on small screens */
  gap: 1.5rem;
  align-items: center; /* ensure list items align with logo */
  list-style: none;
  margin: 0;
  padding: 0;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
}

.taxonomy-bar li {
  scroll-snap-align: start;
  flex: 0 0 auto; /* prevent shrinking */
}

.taxonomy-bar li a {
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem;
  color: var(--base-bg);
  font-weight: 600;
  font-size: 0.95em;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap; /* prevent text wrapping */
}

.taxonomy-bar li a:hover {
  background-color: var(--primary-dark);
  color: var(--base-bg);
}

.taxonomy-list {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Optional: Add media query for desktop to restore wrapping */
/* Desktop: keep existing behavior */
@media (min-width: 768px) {
  .taxonomy-bar ul {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

/* Mobile: hide taxonomy list */
@media (max-width: 767px) {
  .taxonomy-list,
  .taxonomy-list ul {
    display: none !important; /* force hide */
    visibility: hidden; /* extra safety */
  }

  .taxonomy-bar {
    justify-content: flex-end; /* move remaining items (logo/hamburger) to the right) */
  }
}

/* Taxonomy grid layout */

.taxonomy-menu-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center or space-between */
  gap: 1rem;
  padding: 1em 0;
  border-bottom: 1px solid #ddd;
}

.taxonomy-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.taxonomy-menu li a {
  text-decoration: none;
  color: var(--base-bg);
  font-weight: bold;
}

.taxonomy-menu li a:hover {
  color: #000;
  border-bottom: 2px solid #000;
}

.taxonomy-layout {
  display: grid;
  grid-template-columns: 1fr 6fr; /* left 25%, right 75% */
  gap: var(--gutter);
  padding-left: 2rem;
  padding-right: 2rem;
}

.taxonomy-layout .article-taxonomy {
  margin-top: 1.5rem;
  margin-bottom: -1.5rem;

}

.taxonomy-menu {
  padding: 1rem;
}

.taxonomy-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.taxonomy-menu a {
  text-transform: uppercase;
  font-size: 1.2em;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.taxonomy-menu a:hover {
  background-color: #f0f0f0;
}

.taxonomy-menu a.active {
  background-color: #800020;
  color: white;
}

.taxonomy-layout {
  background-color: var(--accent-burgundy);
}

.taxonomy-layout .summary {
  font-size: 1.2rem;
}

.taxonomy-title {
  font-family: 'Jost', serif !important;
  font-size: 1.8em;
  font-weight: 900;
  color: #800020;
  margin-bottom: 1.5rem;
}

/* --- Taxonomy grid styling (non-magenta) --- */
.taxonomy-grid {
  /* choose a neutral background or inherit from taxonomy layout */
  background-color: transparent; /* or var(--base-bg) if you prefer */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* or whatever your layout needs */
  gap: var(--gutter);
  margin-top: 1rem;
  padding-bottom: 3rem;
  box-sizing: border-box;
}

.taxonomy-grid .grid-thumbnail {
  width: 100%;           /* fill the grid column */
  max-width: 100%;       /* never exceed the column */
  aspect-ratio: 3 / 2;   /* keep ratio */
  overflow: hidden;      /* crop overflow */
  margin: 0;             /* remove extra space that enlarges layout */
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;

}

.taxonomy-grid .grid-thumbnail img {
  display: block;
  object-fit: cover;      /* crop the excess */
  object-position: top;   /* <-- crop from the TOP */
  width: 100%;           /* fill container */
  height: 100%;          /* required for object-fit cropping */
  max-width: 100%;       /* safety */
}

.taxonomy-grid .article-taxonomy {
  width: 100%;
  max-width: 800px;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #494746;
}

.taxonomy-content .taxonomy-grid-rese.secondary-grid-rese {
  background-color: transparent !important; /* override the homepage magenta */
}

/* --- For reseñas --- */
/* --- For reseñas --- */

/* If you used the additive class (taxonomy-grid secondary-grid), override the magenta */
.taxonomy-content .taxonomy-grid.secondary-grid {
  background-color: transparent !important; /* override the homepage magenta */
}

/* Default taxonomy styles */
.taxonomy-content,
.taxonomy-layout,
.taxonomy-grid {
  background-color: transparent; /* override the homepage magenta */
}

.taxonomy-menu {
  margin-top: 1.2rem;
}

/* Custom colors per taxonomy */ 
.taxonomy-menu[data-term="rese%C3%B1as"],
.taxonomy-layout[data-term="rese%C3%B1as"],
.taxonomy-grid[data-term="rese%C3%B1as"] .article-taxonomy {
  background-color: var(--accent-blue); /* soft pinkish tone */
}

.taxonomy-menu[data-term="debates"],
.taxonomy-layout[data-term="debates"],
.taxonomy-grid[data-term="debates"] .article-taxonomy {
  background-color: var(--neutral-pale-blue); /* light blue */
}

.taxonomy-menu[data-term="entrevistas"],
.taxonomy-layout[data-term="entrevistas"],
.taxonomy-grid[data-term="entrevistas"] .article-taxonomy {
  background-color: var(--neutral-pale-blue); /* light blue */
}

.taxonomy-menu[data-term="misceláneas"],
.taxonomy-layout[data-term="misceláneas"],
.taxonomy-grid[data-term="misceláneas"] .article-taxonomy {
  background-color: var(--neutral-pale-blue); /* light blue */
}

.taxonomy-menu[data-term="simposios"],
.taxonomy-layout[data-term="simposios"],
.taxonomy-grid[data-term="simposios"] .article-taxonomy {
  background-color: var(--accent-beige); 
}

.taxonomy-menu[data-term="ensayos"],
.taxonomy-layout[data-term="ensayos"],
.taxonomy-grid[data-term="ensayos"] .article-taxonomy {
  background-color: var(--accent-burgundy); /* warm beige */
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination a {
  padding: 0.4rem 0.7rem;
  text-decoration: none;
  border: 1px solid var(--neutral-400);
  border-radius: 4px;
  color: var(--base-bg);
}

.pagination .active {
  background: var(--neutral-800);
  color: white;
}


/* --- Mobile responsive --- */
@media screen and (max-width: 1070px) {

  .taxonomy-layout {
    grid-template-columns: 1fr; /* full width */
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .taxonomy-layout[data-term="rese%C3%B1as"] {
    grid-template-columns: 1fr; /* full width */
    padding-left: 1rem;
    padding-right: 1rem;

}

    /* Hide menu */
  .taxonomy-menu {
    display: none;
  }

  .taxonomy-grid.secondary-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .taxonomy-grid-rese.secondary-grid {
    grid-template-columns: repeat(1, 1fr);
  }


  .taxonomy-grid-rese h1 {
  margin-top: 0rem;
}

  .taxonomy-grid h1 {
  margin-top: 0rem;
}

.taxonomy-grid .grid-thumbnail {
  float: right;
  display: inline-block;
  border: 1px solid var(--base-bg);
  vertical-align: top;
  width: 100px;            /* or any width */
  margin: 0rem 1rem 0rem zrem; /* space around image */
}

.taxonomy-grid .grid-thumbnail img {
  width: 100%;
  height: auto;
}

.taxonomy-grid-rese .grid-thumbnail-rese {
  display: none !important;

}

.taxonomy-grid-rese .grid-thumbnail-rese img {
  width: 100%;
  height: auto;

}
}

/* --- Mobile responsive --- */
@media screen and (max-width: 500px) {

    .taxonomy-layout .taxonomy-content {
    grid-template-columns: 1fr; /* full width */
    padding-left: 1rem;
    padding-right: 1rem;
  }

    /* Hide menu */
  .taxonomy-menu {
    display: none;
  }

.taxonomy-grid-rese.secondary-grid-rese {
  grid-template-columns: repeat(1, 1fr);
}

.taxonomy-grid-rese .article-taxonomy-rese {
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 1rem;              /* space between thumbnail and text */
}

  .taxonomy-grid.secondary-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .secondary-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .taxonomy-grid {
    background-color: var(--accent-burgundy);
    padding: 2rem 0;   /* increase vertical background area */
}
    .taxonomy-grid.secondary-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .taxonomy-grid h1 {
  margin-top: 0rem;
}

.taxonomy-grid .grid-thumbnail {
  float: right;
  display: inline-block;
  border: 1px solid var(--base-bg);
  vertical-align: top;
  width: 100px;            /* or any width */
  margin: 0rem 0rem 0rem zrem; /* space around image */
}

.taxonomy-grid .grid-thumbnail img {
  width: 100%;
  height: auto;
}
}

/* página de autores */

/* --- Layout: sidebar + authors area --- */

.article-layout-authors {
  margin-top: 2rem;
  margin-right: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1300px;
  grid-template-columns: 1fr 6fr;  /* wider author grid */
  gap: 2rem;
  padding-left: 2rem;
  align-items: start;
}

.article-layout-authors .article-sidebar .post-title {
  text-align: center;
}


/* --- Main authors grid --- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 2fr));
  gap: 2rem;
}

/* ----------------------------------------- */
/*  BREAKPOINT A: Medium screens (~MacBook)  */
/*  Title goes ABOVE the authors grid        */
/* ----------------------------------------- */

@media (max-width: 1200px) {
  .article-layout-authors {
    grid-template-columns: 1fr;   /* stack title above authors */
  }
}

/* ----------------------------------------- */
/*  BREAKPOINT B: Small screens (<700px)     */
/*  Authors grid becomes ONE column          */
/* ----------------------------------------- */

@media (max-width: 700px) {
  .authors-grid {
    grid-template-columns: 1fr;  /* 1 column */
  }
}

/* --- Author card components --- */

.article-layout-authors .article-sidebar h1 {
  font-family: 'Jost';
}

.author-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.author-card h4 {
  font-family: 'Jost';

} 
.author-card {
  background: var(--base-bg);
  cursor: pointer;
  display: grid;
  grid-template-columns: 140px 1fr; /* wider card interior */
  gap: 1.2rem;
  padding: 1rem;
  border-radius: 8px;
}

/* Author image */
.author-thumb {
  filter: grayscale(100%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  transition: filter 0.3s ease;
  margin: 0 auto 1rem auto;
}

/* Name */
.author-bio h4 {
  font-size: 1.6rem;
  margin: 0 0 .5rem 0;
}

/* Bio text */
.author-bio {
  margin-top: 0; /* cleaner */
  font-size: ;
}


.author-bio-small {
  margin-top: 0;
  font-size: 1.2rem;
}

.authors-title a {
  text-decoration: none;
  color: inherit;
}


/* footer */

.footer {
  margin-top: 2rem;
  background: var(--accent-blue);
  padding: 2em 0;
  font-size: 1.2rem;
}

.footer-text {
  margin-left: -3rem;
  text-align: center;
  color: var(--base-bg);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  color: #fff;
}

/* Stack on mobile */
@media (max-width: 600px) {
  .footer-social {
    display: grid;
    grid-template-columns: repeat(1, 1fr);  /* 2 columns */
    grid-auto-rows: auto;                   /* rows grow naturally */
    width: 100%;
    gap: 2rem;                               /* spacing between icons */
    justify-items: center;                  /* center each icon */
  };
  .footer-social-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 columns */
    grid-auto-rows: auto;                   /* rows grow naturally */
    width: 100%;
    gap: 2rem;                               /* spacing between icons */
    justify-items: center;                  /* center each icon */
  }
}

.thumbnail-insert figcaption {
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.thumbnail-insert figcaption .epigraph {
  text-align: left;
}

.thumbnail-insert figcaption .copyright {
  text-align: right;
  white-space: nowrap; /* Prevent wrapping */
}

.footer {
  align-items: center;
}

.footer-social a img {
  filter: invert(92%) sepia(6%) saturate(212%) hue-rotate(18deg) brightness(103%) contrast(94%);
  width: 44px;    /* adjust as needed */
  height: 44px;   /* keep square if logos are square */
  margin-right: 50px;  /* space between icons */
  padding: 2px;
  vertical-align: middle; /* aligns with text if needed */
}

.footer-social-bottom a img {
  filter: invert(92%) sepia(6%) saturate(212%) hue-rotate(18deg) brightness(103%) contrast(94%);
  width: 28px;    /* adjust as needed */
  height: 28px;   /* keep square if logos are square */
  margin-right: 50px;  /* space between icons */
  padding: 2px;
  vertical-align: middle; /* aligns with text if needed */
}

.footer-social-bottom {
  border-top: 1px solid var(--divider-color, #ccc);
  padding: 1rem 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  color: #fff;
}

.footer-social-bottom img {
  height: 20px; /* adjust as needed */
  vertical-align: middle;
}

.footer-text-white {
  color: #fff;
  font-size: 0.9rem;
}

/* dathe, author */

.date {
  font-size: 0.8rem;       /* smaller font size */
  font-family: 'Jost', Georgia, serif;
  color: #666666;          /* gray text */
  margin-top: 0.25rem;     /* spacing from author above */
  display: block;          /* ensures it’s on its own line */
}


/* old stuff that sort of works. List creates a grid of three */
/* section distributes more evenly */

.article-list a, .banner a { color: #000; }
.categories a {
  font-size: .8em;
  font-weight: bolder;
  text-transform: uppercase;
  color: #666;
}

/* image captions */ 

.md-figure {
  display: block;
  text-align: center;
  margin: 1.2em 0;
}

.md-figure img {
  max-width: 100%;
  height: auto;
}

.md-figure figcaption {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0em;
}


/* hamburguer button */

#menu.hidden {
  transform: translateX(100%);
}

/* Collapsible menu styles */
#menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 33vw; /* 25% of the viewport width */
  height: 100vh;
  background: var(--accent-burgundy);
  border-left: 1px solid #ccc;
  padding: 1.5rem;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

/* Show the menu */
.#menu.open {
  transform: translateX(0);
}

/* Mobile: full screen menu */
@media (max-width: 768px) {
  #menu {
    width: 100vw;   /* full mobile width */
  }
}

#menu.show {
  transform: translateX(0);
}

/* Optional: style the menu items */
#menu ul {
  list-style: none; /* removes bullets */
  padding: 0;
  height: 100%;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column; /* stacks items vertically */
  gap: 1rem; /* optional spacing between items */
  color: var(--base-bg); /* applies text color */
}

#menu li a {
  display: block; /* makes the link take full width of parent <li> */
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--base-bg); /* applies text color */
  border-top: 2px solid;
  padding: 1.35rem 1rem 0.35rem 1rem; /* top right bottom left */
}

.menu-icon {
  width: 28px;
  height: 28px;
}

/* Hamburger button */
#menu-toggle {
  position: absolute;
  right: 3rem;
  color: var(--base-bg);
  cursor: pointer;
  z-index: 900;
  padding: 0.01rem;
  background: none;
  border: none;
}

#menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--base-bg);
  cursor: pointer;
  z-index: 1100;

/* footer */ 

/* --- Custom hover style for post titles --- */
.article-list h1 a {
  font-size: 0.9em;
  color: #000;
  text-decoration: none;
}

.article-list h1 a:hover {
  color: #c00 !important;         /* red hover */
  text-decoration: none !important; /* remove underline completely */
  transition: color 0.25s ease-in-out;
}

/* Ensure titles wrap correctly */
.article-list h1 {
  margin: .1em auto .2em 0;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 0.9
}

/* Date styling */
.article-list-right .date {
    font-size: 0.7em;
    color: #999;
    margin-top: 0.3rem;
}

.menu, .article-meta, footer, .post-nav { text-align: center; }

/* Outer <pre> block */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  background: #f9f9f9;
  padding: 0.5em;
  overflow-x: auto;       /* horizontal scroll if needed */
  white-space: pre-wrap;  /* wrap long lines */
  word-wrap: break-word;  /* wrap words that are too long */
  border-radius: 5px;
}

/* Inline <code> inside <pre> */
pre code {
  background: none;
  display: block;  /* ensures it fills the <pre> */
  padding: 0;      /* handled by <pre> */
  white-space: inherit; /* inherit wrapping behavior */
}

/* Inline code outside <pre> */
code {
  font-size: 1.1rem;
  background: #f9f9f9;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

/* misc elements */
img, iframe, video { max-width: 100%; }

blockquote {
  font-family: 'Averia Sans Libre', system-ui, -apple-system, sans-serif !important;
  color: var(--neutral-600);
  background: var(--base-bg);
  border-left: 10px solid #ccc;
  margin-left: 1rem;
  font-size: 1.3rem;
  padding-left: 1rem; /* add this */

}

table {
  margin: 1em auto auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}

table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
tr:nth-child(even) { background: #eee }

.thumbnail {
  height: 5.1em;
  width: 6.8em;
  float: left;
  overflow: hidden;
  margin: 5px 8px 5px 0;
  box-shadow: 0 0 8px #666;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#TableOfContents, #TOC, .comments {
  border: 1px solid #eee;
  border-radius: 5px;
}
.comments a {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1.2em;
}

.terms { padding-left: 0; }

.post-nav {
  margin: .5em 0;
  display: flex;
  justify-content: space-between;
}

.post-nav a {
  color: black;
  font-family: 'Jost';
  font-size: .9rem;
  text-transform: uppercase;
}

.footnotes { font-size: .9em; }
.footnotes hr {
  width: 50%;
  margin-left: 0;
}
}

/* break long words */
p, ul, ol, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

