/* ============================================================
   MASTHEAD — newspaper nameplate, not a fixed blur bar.
   Static front-page header. Mobile index via native <details>
   (no JS burger). Deliberately unlike the sibling header system.
   ============================================================ */

.masthead {
  border-bottom: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, rgba(21, 8, 7, 0) 0%, rgba(21, 8, 7, 0) 100%);
}

/* top edition strip — the little line above the nameplate */
.masthead__strip {
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__strip .sheet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.masthead__strip b { color: var(--ink-soft); font-weight: 600; }

/* nameplate row */
.masthead__plate {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.9rem, 2vw, 1.5rem);
}

.nameplate {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.nameplate b { font-weight: 700; }
.nameplate em {
  font-style: normal;
  color: var(--ember);
}
/* the small "·ar" province mark riding after the nameplate */
.nameplate sup {
  font-size: 0.34em;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-left: 0.5ch;
  transform: translateY(-0.2em);
}

/* index — the running nav line (links separated by rules, not pills) */
.index {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.index a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s ease;
}
.index a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  border-bottom: 1.5px solid var(--ember);
  transition: right 0.22s ease;
}
.index a:hover { color: var(--ink); }
.index a:hover::after { right: 0; }

.masthead__act { display: inline-flex; align-items: center; gap: 1.2rem; }

/* mobile index — native disclosure, hidden on desktop */
.masthead__more { display: none; }

@media (max-width: 880px) {
  .index { display: none; }
  .masthead__plate { align-items: center; }

  .masthead__more {
    display: block;
    border-top: 1px solid var(--rule-soft);
  }
  .masthead__more > summary {
    list-style: none;
    cursor: pointer;
    padding-block: 0.85rem;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .masthead__more > summary::-webkit-details-marker { display: none; }
  .masthead__more > summary::after {
    content: "+";
    font-size: 1.3em;
    color: var(--ember);
  }
  .masthead__more[open] > summary::after { content: "–"; }

  .masthead__more .index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 0.8rem;
  }
  .masthead__more .index a {
    width: 100%;
    padding-block: 0.7rem;
    border-top: 1px solid var(--rule-soft);
    font-size: 1.05rem;
  }
}

/* on the very small end, the nameplate act-ticket goes full row */
@media (max-width: 520px) {
  .masthead__strip .sheet { letter-spacing: 0.16em; font-size: 0.64rem; }
  .masthead__act .ticket { padding: 0.8rem 1.2rem; font-size: 0.86rem; }
}

/* ---- WP: wp_nav_menu envuelve en <ul class="index_menu"> — la fila flex pasa al <ul> ---- */
.index > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .masthead__more .index > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .masthead__more .index > ul > li { width: 100%; }
}
