/* Articles (worker/articulos.js): the list at /articulos/ and each article page. The article
   body still uses the news piece styles in motos/motos.css (.nt-*, .ed, .corto); this file sets
   the reading column, the header, the photos and the cards, all scoped to main.art so the bike
   pages are untouched. Redesigned 29 Nov 2026. */

.art { --col: 720px; --ancho: 1040px; }

/* ---------- the line above a title: kind, date, reading time ---------- */
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; line-height: 1.3; color: var(--niebla); }
.ar-meta > span + span::before { content: "·"; margin: 0 8px; opacity: .7; }
.ar-tipo { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--barro-claro); }

/* ---------- article page ---------- */
/* Header and body share one centered column, so the title, the summary and the text line up. */
.art .ar-top .wrap, .art .m-body { max-width: calc(var(--col) + 2 * var(--gutter, 20px)); margin-inline: auto; }
.art .ar-top { padding: 28px 0 40px; }
.art .ar-top .crumbs { font-size: 17px; margin-bottom: 18px; }
.art .ar-top .crumbs a::before { content: "← "; }
.art .ar-top h1 { margin-top: 12px; font-size: clamp(38px, 6vw, 64px); line-height: .95; text-wrap: balance; }
.art .ar-top .lead { margin-top: 18px; max-width: none; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; text-wrap: pretty; }
.art .ar-top .compartir-fila { margin-top: 22px; }

/* The cover runs wider than the text and overlaps the dark band, like a magazine opener. A
   portrait cover keeps its shape but never fills more than most of the screen. */
.art .nt-portada { max-width: calc(var(--ancho) + 2 * var(--gutter, 20px)); margin-inline: auto; }
.art .nt-portada .nt-grande { margin-top: 0; }
.art .nt-portada .nt-grande img { max-height: 78vh; object-fit: cover; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.art .nt-portada .nt-grande.nt-vertical { max-width: 520px; }
.art .nt-portada figcaption { max-width: var(--col); margin-inline: auto; }
@media (min-width: 760px) {
  .art .ar-top { padding-bottom: 96px; }
  .art .nt-portada { margin-top: -64px; position: relative; }
}

/* Reading: a comfortable measure, a little more air, and a first letter that opens the piece. */
.art .m-body { padding-bottom: 56px; }
.art .m-body > .ed:first-child > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--cond); font-weight: 800; font-size: 74px; line-height: .8; color: var(--barro); }
.art .ed p { max-width: none; font-size: 18.5px; line-height: 1.68; }
.art .ed p + p { margin-top: 18px; }
.art section.ed > .side-title { margin-top: 56px; font-size: clamp(30px, 4vw, 38px); line-height: 1.02; text-wrap: balance; }
.art section.ed > .side-title::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--barro); }
.art .nt-grande { margin-top: 26px; }
.art .m-body .nt-grande + p, .art .m-body figure + p { margin-top: 22px; }
.art .nt-grande.nt-vertical { max-width: 460px; }
.art .nt-grande figcaption { font-size: 13.5px; }

/* Lists with the accent colour on the markers. */
.art .nt-lista { max-width: none; padding-left: 0; list-style: none; }
.art .nt-lista li { position: relative; padding-left: 26px; }
.art .nt-lista li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--barro); transform: rotate(45deg); }
.art .ed .nt-sub { margin-top: 30px; }

/* "Si solo vas a leer esto": a quiet card instead of a heavy black frame. */
.art .corto { margin-top: 36px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--linea); border-top: 4px solid var(--barro); border-radius: var(--radius-md); box-shadow: 0 10px 28px -22px rgba(0, 0, 0, .4); }
.art .corto h2 { font-size: 24px; }
.art .nt-corto .nt-lista li::before { width: 14px; height: 8px; left: 2px; top: .45em; border-radius: 0; background: none; border: solid var(--barro); border-width: 0 0 3px 3px; transform: rotate(-45deg); }

/* Results tables: the rider's name stays readable, the numbers line up, and on a phone the table scrolls sideways inside its frame. */
.art .nt-tabla { margin-top: 28px; }
.art .nt-tabla figcaption { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.1; margin-bottom: 10px; }
.art .nt-tabla-marco { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--radius-sm); background: var(--surface); }
.art .nt-tabla table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.art .nt-tabla th, .art .nt-tabla td { padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--linea); }
.art .nt-tabla thead th { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--barro-oscuro); }
.art .nt-tabla tbody th { font-weight: 600; }
.art .nt-tabla tbody tr:last-child > * { border-bottom: 0; }
.art .nt-tabla tbody tr:nth-child(-n+3) > :first-child { color: var(--barro-oscuro); font-weight: 800; }
/* On desktop the results table steps out of the text column so all columns fit without sideways scroll. */
@media (min-width: 960px) {
  .art .nt-tabla { width: max-content; min-width: 100%; max-width: min(var(--ancho), calc(100vw - 80px)); margin-left: 50%; transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .art .nt-tabla table { font-size: 13.5px; }
  .art .nt-tabla th, .art .nt-tabla td { padding: 6px 7px; }
  .art .nt-tabla figcaption::after { content: "Deslizá la tabla hacia el lado para ver todos los tiempos."; display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-size: 13.5px; color: var(--gris); }
}

.art .nt-recuadro { max-width: none; margin-top: 28px; padding: 18px 20px; }
.art .lectura { margin-top: 44px; padding: 22px 24px; border-left: 0; border-radius: var(--radius-md); background: var(--noche); color: #fff; }
.art .lectura p { max-width: none; color: var(--niebla); }
.art .lectura h2 { color: var(--barro-claro); }

/* Links inside the site at the end, as tappable rows. */
.art .m-body .nt-mas { flex-direction: column; gap: 0; margin-top: 40px; border-top: 1px solid var(--linea); }
.art .m-body .nt-mas + .nt-mas { margin-top: 0; border-top: 0; }
.art .m-body .nt-mas a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--linea); font-weight: 600; text-decoration: none; color: var(--noche); }
.art .m-body .nt-mas a::after { content: "→"; color: var(--barro); }
.art .m-body .nt-mas a:hover { color: var(--barro-oscuro); }
.art .firma { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--linea); font-size: 14.5px; }

/* "Seguí leyendo": cards on a band of their own, full width. */
.ar-sigue { padding: 44px 0 64px; background: var(--surface); border-top: 1px solid var(--linea); }
.ar-sigue-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
.ar-sigue-h h2 { font-family: var(--cond); font-weight: 800; font-size: 34px; line-height: 1; }
.ar-sigue-h a { font-family: var(--cond); font-weight: 600; font-size: 19px; text-decoration-color: var(--barro); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- the list ---------- */
.art .ar-lista-top { padding-bottom: 32px; }
.art .ar-lista-top .lead { max-width: 60ch; }
.ar-filtro { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ar-filtro a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-family: var(--cond); font-weight: 600; font-size: 18px; text-decoration: none; }
.ar-filtro a:hover { border-color: var(--barro-claro); }
.ar-filtro a[aria-current] { background: var(--barro-claro); border-color: var(--barro-claro); color: var(--noche); }
.ar-cuerpo { padding-top: 32px; padding-bottom: 72px; }

.ar-dest, .ar-grid { list-style: none; margin: 0; padding: 0; }
.ar-grid { display: grid; gap: 22px; margin-top: 22px; }
.ar-dest + .ar-grid { margin-top: 28px; }
@media (min-width: 640px) { .ar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ar-grid { grid-template-columns: repeat(3, 1fr); } }

/* A card: the photo, then the words on white. The whole card is the link. */
.ar-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); color: var(--noche); border: 1px solid var(--linea); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.ar-img { display: block; overflow: hidden; background: var(--noche-2); }
.ar-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.ar-txt { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
.ar-card .ar-meta { color: var(--gris); font-size: 13.5px; }
.ar-card .ar-tipo { color: var(--barro); font-size: 14px; }
.ar-card b { display: block; margin-top: 8px; font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1.02; text-wrap: balance; }
.ar-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--gris); }
.ar-card:hover { border-color: #c4c8c3; box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .45); transform: translateY(-2px); }
.ar-card:hover img { transform: scale(1.03); }
.ar-card:hover b { text-decoration: underline; text-decoration-color: var(--barro); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ar-card:focus-visible { outline: 3px solid var(--barro); outline-offset: 3px; }

/* The newest, wide: photo beside the words on wider screens, dark like the header. */
.ar-grande { background: var(--noche); color: #fff; border-color: var(--noche); }
.ar-grande .ar-meta { color: var(--niebla); }
.ar-grande .ar-tipo { color: var(--barro-claro); }
.ar-grande b { font-size: clamp(30px, 4vw, 44px); line-height: .98; }
.ar-grande .ar-t { color: var(--niebla); -webkit-line-clamp: 4; font-size: 17px; }
.ar-grande:hover b { text-decoration-color: var(--barro-claro); }
.ar-leer { margin-top: auto; padding-top: 18px; font-family: var(--cond); font-weight: 700; font-size: 19px; color: var(--barro-claro); }
.ar-leer::after { content: " →"; }
@media (min-width: 860px) {
  .ar-grande { display: grid; grid-template-columns: 7fr 5fr; min-height: 420px; }
  .ar-grande .ar-img { position: relative; }
  .ar-grande img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: center 40%; }
  .ar-grande .ar-txt { justify-content: center; padding: 32px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-card, .ar-card img { transition: none; }
  .ar-card:hover, .ar-card:hover img { transform: none; }
}

/* A bike or gear entry (EICMA pieces): the photo sits beside the name and numbers, and the text
   flows under it instead of running down a narrow column. */
@media (min-width: 760px) {
  .art .nts .nt.con-foto > :not(figure) { max-width: none; }
  .art .nt-foto { width: 260px; margin: 6px 0 14px 26px; }
}
@media (max-width: 480px) {
  .art .m-body > .ed:first-child > p:first-child::first-letter { font-size: 60px; margin-right: 6px; }
}

/* A YouTube video in an article: as wide as the text, 16:9. */
.art .m-body .nt-video-ancho { max-width: none; margin-top: 28px; }
.art .m-body .nt-video-ancho iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Comparisons (worker/motos.js) use this layout too, without a cover photo. */
@media (min-width: 760px) { .art .ar-top.sin-portada { padding-bottom: 48px; } }
.art .corto p + p { margin-top: 10px; }
.art .corto b { font-weight: 700; }

/* An Instagram reel: a card that opens it on Instagram (worker/articulos.js, video()). */
.art .m-body .nt-ig { margin-top: 26px; }
.art .m-body .nt-ig a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--noche); color: #fff; border-radius: var(--radius-md); text-decoration: none; }
.art .m-body .nt-ig a:hover { background: var(--noche-2); }
.art .m-body .nt-ig a:focus-visible { outline: 3px solid var(--barro); outline-offset: 3px; }
.nt-ig-icono { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(45deg, #f9a03f, #d62976 55%, #7b3fe4); }
.nt-ig b { display: block; font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.1; }
.nt-ig b + span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--niebla); }
.nt-ig b + span::after { content: " ↗"; }
/* Links that leave the site say so with an arrow pointing out. */
.art .m-body .nt-externos a::after { content: "↗"; }
