/* journal.css — the Journal's Extrême layer over Concept 6.1.0 blog.css / article.css (spec docs/superpowers/specs/2026-11-09-journal-design.md,
   Artem 2026-11-09, round «Post layout» on 📓 REVIEW → ↳ Journal). Linked by the blog sections themselves (main-blog, main-article-banner,
   main-article, blog-posts). Everything hangs on an Extrême attribute or class — without it the sections are Concept's own. */

/* ---------- Article card «Card meta: Author · reading time» (data-ext-card="author") ---------- */
/* «всё белое, заголовок не сильно жирный, текст сливается»: the title in the heading font (Concept gives it the product-card font), the line
   above it «Author · N min read» in the section eyebrow (T12, lime) instead of the date and «0 comments», the excerpt and Read more muted */
[data-ext-card="author"] .article-card__title { font-family: var(--font-heading-family); font-weight: var(--font-heading-weight); letter-spacing: -.02em; }
[data-ext-card="author"] .ext-card-by { margin: 0; }
[data-ext-card="author"] .article-card__bottom { color: rgb(var(--color-foreground) / .62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-ext-card="author"] .article-card .link { color: rgb(var(--color-foreground) / .6); }
/* the featured (first) card's veil: plain black at Concept's .5 (Artem 2026-11-09: «просто тёмным с прозрачностью»). Concept mixes the scheme
   foreground 50/50 with black — near-black on light schemes, a grey haze on our dark scheme with its light foreground */
.blog-collage[data-ext-card] .article-card:nth-child(1) .article-card__media::after { background-color: #000; }

/* ---------- Tag tabs: a dot in the tag's colour (the pills carry it inline, as Tech's) ---------- */
.subcollections li[style*="--ext-tag"] .btn-text::before { content: ''; display: inline-block; width: .45em; height: .45em; margin-inline-end: .4em; border-radius: 50%; vertical-align: .15em; background: rgb(var(--ext-tag)); }

/* ---------- Article banner «Width» Card + «Frame» Hairline ---------- */
/* «Page Header блоком, как на странице О компании, с лёгкой обводкой»: the cover inside the page width, rounded, the homepage slide's 1px frame */
.page-width > .article.banner { overflow: hidden; border-radius: var(--rounded-block); }
[data-ext-outline="hairline"] .article.banner::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(245 245 244 / .12); }

/* «Text» On the photo, the card 16:9 from tablets up (Artem 2026-11-10: the picked «C · Field Log» has the title over the cover; «шапку больше по высоте» —
   Concept's 750 / 637.5 px are lower), 500 px on phones (Concept's mobile:media--500px, as C) */
@media screen and (min-width: 768px) { [data-ext-ratio="16-9"] .article.banner { height: auto; aspect-ratio: 16 / 9; } }

/* «Text» Below the photo (a setting — tried 2026-11-09 against a title over the coach's face; Artem 2026-11-10 keeps C's text on the photo): the photo 16:9 on desktop and
   4:5 on phones (the listing's large card — the same crop), then the badge, date, author and title on the surface inside the same framed card */
[data-ext-text="below"] .article.banner { height: auto; background: var(--ext-surface); }
[data-ext-text="below"] .article.banner .banner__media { position: relative; height: auto; aspect-ratio: 16 / 9; }
[data-ext-text="below"] .article.banner .banner__overlay { display: none; }
[data-ext-text="below"] .article.banner .banner__content { position: relative; height: auto; }
[data-ext-text="below"] .article.banner .banner__content > .page-width { padding-block: 2.5rem 2.75rem; }
[data-ext-text="below"] .article.banner .banner__title { font-size: clamp(2rem, 3.4vw, 3.5rem); }
@media screen and (max-width: 767px) {
  [data-ext-text="below"] .article.banner .banner__media { aspect-ratio: 4 / 5; }
  [data-ext-text="below"] .article.banner .banner__content > .page-width { padding-block: 1.5rem 1.75rem; }
}

/* ---------- Article «Body style» Field log (data-ext-body="field-log") ---------- */
/* The facts strip: Read · Level · Kit · Coach — the eyebrow over the value, thin rules between, as many columns as there are facts */
[data-ext-body="field-log"] .ext-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 var(--sp-12, 3rem); border-block: 1px solid rgb(var(--color-foreground) / .1); }
[data-ext-body="field-log"] .ext-facts > div { padding: 1.25rem 1rem; }
[data-ext-body="field-log"] .ext-facts > div + div { border-inline-start: 1px solid rgb(var(--color-foreground) / .1); }
[data-ext-body="field-log"] .ext-facts dt { margin: 0; }
[data-ext-body="field-log"] .ext-facts dd { margin: .5rem 0 0; font-weight: 600; font-size: 1rem; line-height: 1.3; }
/* the numbered list as a timeline: a line and a lime dot with a halo per step */
[data-ext-body="field-log"] .rte ol { list-style: none; position: relative; padding-inline-start: 2.5rem; }
[data-ext-body="field-log"] .rte ol::before { content: ''; position: absolute; inset-inline-start: .4375rem; top: .5rem; bottom: .5rem; width: 2px; background: rgb(var(--color-foreground) / .12); }
[data-ext-body="field-log"] .rte ol li { position: relative; margin-bottom: 1.375rem; }
[data-ext-body="field-log"] .rte ol li::before { content: ''; position: absolute; inset-inline-start: -2.5rem; top: .375rem; width: 1rem; height: 1rem; border-radius: 50%; background: rgb(var(--color-highlight)); box-shadow: 0 0 0 6px rgb(var(--color-highlight) / .16); }
/* the quote: a surface card with a lime rule, no quote icon, the attribution muted */
[data-ext-body="field-log"] .rte blockquote { padding: 2.25rem 2.5rem; border-inline-start: 3px solid rgb(var(--color-highlight)); border-radius: 0 var(--rounded-card) var(--rounded-card) 0; background: var(--ext-surface); text-align: start; }
[data-ext-body="field-log"] .rte blockquote::before { display: none; }
[data-ext-body="field-log"] .rte blockquote p { font-size: clamp(1.375rem, 1.8vw, 1.75rem); }
[data-ext-body="field-log"] .rte blockquote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .9375rem; color: rgb(var(--color-foreground) / .6); }
/* the coach's sign-off: portrait, eyebrow, «Train With …», the class schedule, a button to the coaches */
[data-ext-body="field-log"] .ext-signoff { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; margin-top: 4rem; padding: 1.75rem; border-radius: var(--rounded-block); background: var(--ext-surface); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
[data-ext-body="field-log"] .ext-signoff__portrait { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
[data-ext-body="field-log"] .ext-signoff .ext-eyebrow { margin: 0 0 .5rem; }
[data-ext-body="field-log"] .ext-signoff__title { margin: 0; font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; }
[data-ext-body="field-log"] .ext-signoff__text { margin: .5rem 0 0; color: rgb(var(--color-foreground) / .6); }
@media screen and (max-width: 767px) {
  [data-ext-body="field-log"] .ext-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  [data-ext-body="field-log"] .ext-facts > div:nth-child(odd) { border-inline-start: 0; }
  [data-ext-body="field-log"] .ext-facts > div:nth-child(n + 3) { border-top: 1px solid rgb(var(--color-foreground) / .1); }
  [data-ext-body="field-log"] .ext-signoff { grid-template-columns: 4.5rem minmax(0, 1fr); }
  [data-ext-body="field-log"] .ext-signoff__portrait { width: 4.5rem; height: 4.5rem; }
  [data-ext-body="field-log"] .ext-signoff .button { grid-column: 1 / -1; }
}
/* ---------- blog-posts «Layout» Heading aside (data-ext-layout="aside") — Latest Stories on About (Artem 2026-11-10, the compact pick) ---------- */
/* the subheading, heading, text and View all in a column, three compact cards (no excerpt, no Read more) beside it from 1024 up — View all at
   the column's foot, level with the cards' foot (Artem 2026-11-10: «опустим… по нижнему краю всей секции»); below, the column above the
   cards — Concept's slider--tablet makes them a swipeable row (36vw on tablets, 74vw on phones) */
[data-ext-layout="aside"] .ext-posts-aside { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
[data-ext-layout="aside"] .ext-posts-aside__intro { gap: var(--sp-5); }
[data-ext-layout="aside"] .ext-posts-aside__intro .ext-eyebrow { margin: 0; }
[data-ext-layout="aside"] .ext-posts-aside__text { color: rgb(var(--color-foreground) / .72); max-width: 30ch; line-height: 1.6; } /* Figma: UI/Description 16 / 160 % */
[data-ext-layout="aside"] .ext-posts-aside__intro > p:last-child { margin-top: var(--sp-3); }
@media screen and (min-width: 1024px) {
  [data-ext-layout="aside"] .ext-posts-aside { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--sp-8), 4vw, var(--sp-20)); align-items: stretch; }
  [data-ext-layout="aside"] .ext-posts-aside__intro > p:last-child { margin-top: auto; padding-top: var(--sp-3); }
  [data-ext-layout="aside"] .blog-grid { --card-grid-gap: clamp(var(--sp-5), 2vw, var(--sp-10)); }
}
/* «Run over the photo above» (data-ext-overlap; About — the Journal under Visit The Garage, Artem 2026-11-10: «сверху должны быть закругления, чтобы
   наезжать на секцию Visit the Garage»): the section rises by the corner radius over the banner above, so its rounded top shows the photo. Concept
   would run the banner's media a radius under the next section, but its page rendering (content-visibility: auto from the third section) clips
   that to the banner's own box — the corners showed the page ink. As the homepage hero (#168), the overlap comes from the section below. */
#MainContent > .shopify-section:has(> .section[data-ext-overlap]) { margin-block-start: calc(var(--border-radius) * -1); position: relative; }
