/* Editorial sections share the approved type and palette, with route-only CSS. */
.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-block: 2rem;
}
.story-gallery article {
  min-width: 0;
}
.story-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.story-gallery .story-place {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-block: 1.2rem 0.5rem;
}
.story-gallery h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
}
.story-gallery h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.story-gallery article > p:last-child {
  font-size: 1rem;
  line-height: 1.7;
}
.story-guide {
  border-left: 4px solid #193b32;
  background: #e3ebe4;
  padding: 1.5rem 2rem;
}
.story-guide h3 {
  margin-top: 0;
}
.story-guide p {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .story-gallery {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .story-gallery article {
    max-width: 480px;
  }
}
.resource-start {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  margin-block: 2rem;
  border: 1px solid #bbc9c0;
}
.resource-start > header {
  background: #193b32;
  color: white;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.resource-start > header h2 {
  color: white;
  margin-top: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
}
.resource-start > header p {
  line-height: 1.7;
}
.resource-paths {
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  background: white;
}
.resource-paths > section {
  padding-block: 1.5rem;
  margin: 0;
}
.resource-paths > section + section {
  border-top: 1px solid #bbc9c0;
}
.resource-paths h3 {
  margin: 0;
  font-size: 1.65rem;
}
.resource-paths p {
  font-size: 1rem;
  line-height: 1.7;
  margin-block: 0.6rem;
}
.resource-paths ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.resource-paths a {
  display: inline-block;
  padding-block: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}
.resource-privacy {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .resource-start {
    grid-template-columns: 1fr;
  }
}
.hyrox-guide main > .guide-article {
  max-width: none;
  padding: 0;
  background: transparent;
}
.guide-article > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.guide-article > .guide-header {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}
.guide-header h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.3rem);
  line-height: 1.04;
}
.guide-photo {
  margin: 0;
}
.guide-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.guide-photo figcaption {
  font-size: 0.85rem;
  padding: 0.8rem 0;
  line-height: 1.6;
}
.guide-table {
  overflow-x: auto;
}
.guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.guide-table td,
.guide-table th {
  text-align: left;
  vertical-align: top;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #bbc9c0;
}
.guide-table thead {
  background: #e3ebe4;
}
.guide-example {
  background: #193b32;
  color: white;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  margin-block: 3rem;
}
.guide-example h3,
.guide-example a,
.guide-example a:hover {
  color: white;
}
.guide-example a:focus-visible {
  outline-color: white;
}
.guide-example .guide-note {
  font-size: 0.85rem;
}
.guide-time-bar {
  display: grid;
  grid-template-columns: 44fr 24fr 4fr;
  min-height: 3rem;
  margin-top: 1.5rem;
  border: 1px solid white;
  color: #193b32;
  font-size: 0.85rem;
  font-weight: 700;
}
.guide-time-bar span {
  display: grid;
  place-items: center;
  background: #e3ebe4;
}
.guide-time-bar span:nth-child(2) {
  background: #afc4b8;
  border-inline: 2px solid #193b32;
}
.guide-time-bar span:last-child {
  background: repeating-linear-gradient(135deg, white 0 3px, #193b32 3px 6px);
}
.guide-example .guide-bar-caption {
  font-size: 0.85rem;
  line-height: 1.6;
}
.guide-example dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #afc4b8;
}
.guide-example dd {
  margin: 0;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.guide-total {
  font-size: 1.3rem;
}
.guide-next {
  padding-block: 1rem;
  border-block: 2px solid #193b32;
  margin-block: 3rem;
}
@media (max-width: 768px) {
  .guide-article > .guide-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .guide-photo img {
    height: 360px;
  }
  .guide-table table {
    min-width: 560px;
  }
}
#agenda-filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
#agenda-filters input,
#agenda-filters select {
  min-width: 0;
}
#formatos .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.agenda-event {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) minmax(12rem, 0.65fr);
  gap: 1.8rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid #bbc9c0;
}
.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #193b32;
  color: white;
  padding: 0.8rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.agenda-date strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  line-height: 1.1;
}
.agenda-event p {
  margin: 0 0 0.65rem;
}
.agenda-event .agenda-format {
  font-size: 0.85rem;
  font-weight: 700;
}
.agenda-event .agenda-range {
  font-weight: 700;
  margin-bottom: 0;
}
.agenda-event-source {
  font-size: 0.9rem;
  line-height: 1.6;
}
.agenda-event-source a {
  display: inline-block;
  padding-block: 0.5rem;
  font-weight: 700;
}
.lab-contents {
  background: #e3ebe4;
  padding: 1.5rem;
  margin-block: 2rem;
}
.lab-contents p {
  font-weight: 700;
  margin-top: 0;
}
.lab-contents ol {
  padding-left: 1.4rem;
  margin-bottom: 0;
}
.lab-contents a {
  display: inline-block;
  padding-block: 0.5rem;
}
@media (max-width: 850px) {
  .agenda-event {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1rem;
  }
  .agenda-event-source {
    grid-column: 2;
  }
}
@media (max-width: 420px) {
  .agenda-event {
    grid-template-columns: 4rem minmax(0, 1fr);
  }
  .agenda-event-source {
    grid-column: 1 / -1;
  }
  .agenda-date {
    font-size: 0.75rem;
  }
  .agenda-date strong {
    font-size: 2.8rem;
  }
}

.reading-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  background: #193b32;
  color: white;
}
.reading-feature h2,
.reading-feature a,
.reading-feature a:hover {
  color: white;
}
.reading-feature h2 {
  margin-top: 0;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.1;
}
.reading-feature p {
  max-width: 40ch;
}
.reading-feature nav {
  align-self: center;
}
.reading-feature nav a {
  display: block;
  padding: 1.2rem 0;
  border-bottom: 1px solid #bbc9c0;
  text-decoration: none;
}
.reading-feature nav a:first-child {
  border-top: 1px solid #bbc9c0;
}
.reading-feature strong {
  display: block;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.reading-feature span {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.reading-feature a:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}
.reading-main-link {
  display: inline-block;
  padding-block: 0.6rem;
  font-weight: 700;
}
.reading-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.reading-section h2 {
  margin-top: 0;
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  line-height: 1.1;
}
.reading-section header p {
  max-width: 32ch;
}
.reading-section .h-links {
  margin: 0;
}
.reading-section .h-links a:first-child {
  border-top: 1px solid #bbc9c0;
}
.reading-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 2px solid #193b32;
  padding-block: 2rem;
}
.reading-social h2 {
  margin-top: 0;
  font-size: 2rem;
}
.reading-social p {
  max-width: 55ch;
  margin-bottom: 0;
}
.reading-social > a {
  padding-block: 0.75rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .reading-feature,
  .reading-section {
    grid-template-columns: 1fr;
  }
  .reading-section header p {
    max-width: none;
  }
  .reading-social {
    display: block;
  }
  .reading-social > a {
    display: inline-block;
    margin-top: 1rem;
  }
}

.section-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 4rem;
}
.section-portrait h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-top: 0.5rem;
}
.section-portrait figure {
  margin: 0;
}
.section-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.section-portrait figcaption {
  font-size: 0.85rem;
  line-height: 1.6;
  padding-top: 0.8rem;
}
.section-portrait.portrait {
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
}
.personal-chapter {
  border-top: 1px solid #bbc9c0;
  padding-top: 2rem;
}
@media (max-width: 768px) {
  .section-portrait,
  .section-portrait.portrait {
    grid-template-columns: 1fr;
  }
  .section-portrait.portrait figure {
    max-width: 400px;
  }
}

.story-follow {
  margin-block: 5rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid #bbc9c0;
}
.story-follow > h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}
.story-follow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story-follow-next {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.story-follow-next img {
  width: 100%;
  height: auto;
  display: block;
}
.story-follow-next h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-top: 0;
}
.story-follow-context {
  margin-top: 0;
  font-size: 0.9rem;
}
.story-follow-tools > h3 {
  margin-top: 0;
  font-size: 1.5rem;
}
.story-follow-tools > a {
  display: block;
  border-top: 1px solid #bbc9c0;
  padding-block: 1rem;
  text-decoration: none;
}
.story-follow-tools strong {
  display: block;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.story-follow-tools span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}
.story-follow-more {
  margin-top: 2rem;
  max-width: 75ch;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .story-follow-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .story-follow-next {
    grid-template-columns: 1fr;
  }
  .story-follow-next img {
    max-width: 260px;
  }
}

.bio-shortcuts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.bio-shortcuts a {
  display: block;
  border-bottom: 1px solid #6c877a;
  padding: 0.75rem 0;
  font-weight: 700;
  text-underline-offset: 0.25em;
}
.bio-video-link {
  margin: 0.75rem 0 2rem;
  font-size: 0.95rem;
}
.bio-video-link a,
.bio-more a {
  display: inline-block;
  padding-block: 0.5rem;
}
.bio-newsletter {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #6c877a;
}
.social-page main .bio-newsletter h2 {
  color: inherit;
  font-size: 2rem;
  margin-top: 0;
}
.bio-newsletter p,
.bio-more {
  font-size: 0.95rem;
  line-height: 1.7;
}
.social-page main a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
