/* CarCody's blog — The Garage (look.blog = 'garage'). The shared editorial markup (src/lib/ui/blog/Journal*.svelte and
   ops/wp/theme/parts/journal/*) drawn in CarCody's own look, the same language as its window-sticker lists
   (src/lib/ui/sites/carcody/Stickers.svelte): Archivo set condensed for headlines and figures the way a spec label sets them,
   the label's black band, white cards, CarCody red for the one thing to press, and a date on a number plate.
   Tokens only (--bg --surface --surface-2 --ink --muted --line --brand --brand-ink), so light and dark follow the site. */

/* ---------- atoms ---------- */
.jr-kicker { display: inline-block; font: 800 .72rem/1.3 var(--font-display); font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
a.jr-kicker:hover { color: var(--ink); }
.jr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.jr-meta > * + *::before { content: '/'; margin: 0 .55em; color: var(--line); }
.jr-meta a { color: var(--ink); font-weight: 700; }
.jr-meta a:hover { color: var(--brand); }
.jr-pic { display: block; overflow: hidden; background: #eef0f3; }
.jr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a:hover > .jr-pic img, a:hover .jr-pic img { transform: scale(1.04); }
.jr-hl { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; letter-spacing: -.005em; line-height: 1.08; text-wrap: balance; color: var(--ink); margin: 0; }
span.jr-hl { display: block; }
.jr-rule { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; font: 800 1.3rem/1 var(--font-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.jr-rule::before { content: ''; width: 6px; height: 1.1em; background: var(--brand); border-radius: 2px; }
.jr-rule::after { content: ''; flex: 1; height: 2px; background: var(--ink); opacity: .9; }

/* ---------- the front page's masthead: the label's black band, edge to edge of the content ---------- */
.jr-mast { margin: 6px 0 0; padding: clamp(22px, 3.4vw, 40px) clamp(18px, 3vw, 34px) 0; background: #0b0f19; border-radius: 16px; color: #fff; overflow: hidden; }
.jr-mast .jr-kicker { color: #ff6b75; }
.jr-mast h1 { color: #fff; font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; margin: 8px 0 12px; }
.jr-mast--sm h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.jr-mast-stand { max-width: 620px; font-size: 1.04rem; line-height: 1.6; color: #c7cbd3; }
.jr-mast-stand p { margin: 0; }
.jr-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 14px 0 18px; border-top: 1px solid rgba(255,255,255,.14); }
.jr-sections a { padding: 7px 14px; border-radius: 8px; background: rgba(255,255,255,.08); font: 700 .86rem/1.2 var(--font-display); font-stretch: 90%; color: #fff; white-space: nowrap; }
.jr-sections a:hover { background: var(--brand); color: var(--brand-ink); }
.jr-sections a[aria-current] { background: #fff; color: #0b0f19; }

/* ---------- the lead story ---------- */
.jr-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin: 18px 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.jr-lead:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 18px 36px -20px rgba(11,15,25,.4); }
/* the picture fills its own column top to bottom (no aspect box: a fixed ratio at full height overflowed into the text) */
.jr-lead .jr-pic { aspect-ratio: auto; width: 100%; height: 100%; min-height: 300px; }
.jr-lead-t { display: grid; gap: 12px; justify-items: start; align-content: center; min-width: 0; padding: clamp(18px, 2.6vw, 32px); }
.jr-lead .jr-hl { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); }
.jr-lead p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--muted); }
.jr-more-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font: 800 .88rem/1 var(--font-display); font-stretch: 90%; letter-spacing: .03em; text-transform: uppercase; }
.jr-lead:not(:has(.jr-pic)) { grid-template-columns: minmax(0, 1fr); }

/* ---------- three stories, each with the label band under its picture ---------- */
.jr-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.jr-trio > a { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); min-width: 0; transition: transform .15s, box-shadow .15s; }
.jr-trio > a:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(11,15,25,.4); }
.jr-trio .jr-pic { aspect-ratio: 16 / 9; }
.jr-trio .jr-kicker { margin: 0; padding: 7px 14px; background: #0b0f19; color: #fff; }
.jr-trio .jr-hl { font-size: 1.24rem; padding: 12px 14px 0; }
.jr-trio .jr-meta { padding: 8px 14px 14px; }

/* ---------- the index: the date on a number plate ---------- */
.jr-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jr-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 168px; gap: 18px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.jr-row:hover { color: var(--ink); transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 14px 28px -18px rgba(11,15,25,.4); }
.jr-date { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border: 2px solid var(--ink); border-radius: 8px; background: var(--surface); font-variant-numeric: tabular-nums; }
.jr-date b { font: 800 1.6rem/1 var(--font-display); font-stretch: 75%; }
.jr-date span { font: 800 .66rem/1.2 var(--font-display); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jr-row-t { display: grid; gap: 6px; align-content: center; min-width: 0; }
.jr-row .jr-hl { font-size: clamp(1.18rem, 1.05rem + .4vw, 1.42rem); }
.jr-row p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jr-row .jr-pic { aspect-ratio: 16 / 10; border-radius: 9px; }
.jr-row:not(:has(.jr-pic)) { grid-template-columns: 82px minmax(0, 1fr); }

/* ---------- pager ---------- */
.jr-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 28px 0 8px; }
.jr-pager > a, .jr-pager .page-numbers:not(.dots) { display: inline-grid; place-items: center; min-height: 42px; min-width: 42px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 800 .9rem/1 var(--font-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .03em; }
.jr-pager > a:hover, .jr-pager a.page-numbers:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.jr-pager .page-numbers.current { background: var(--ink); color: var(--bg); }
.jr-pager .page-numbers.dots { color: var(--muted); }
.jr-pager-no { color: var(--muted); font: 700 .9rem/1 var(--font-display); }

/* ---------- the home page's block ---------- */
.jr-home { padding: 26px 0 8px; }
.jr-home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.jr-home-head h2 { margin: 0; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
.jr-home-head .jr-more-link { min-height: 34px; padding: 0 14px; font-size: .8rem; }
.jr-home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; padding-top: 16px; }
.jr-home-lead { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.jr-home-lead:hover { color: var(--ink); transform: translateY(-2px); }
.jr-home-lead .jr-pic { aspect-ratio: 16 / 9; }
.jr-home-lead .jr-kicker { padding: 7px 14px; background: #0b0f19; color: #fff; }
.jr-home-lead .jr-hl { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); padding: 12px 14px 0; }
.jr-home-lead .jr-meta { padding: 8px 14px 14px; }
.jr-home-list { display: grid; gap: 10px; align-content: start; }
.jr-home-list a { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s; }
.jr-home-list a:hover { color: var(--ink); transform: translateY(-2px); }
.jr-home-list .jr-hl { font-size: 1.1rem; margin-top: 4px; }
.jr-home-list .jr-pic { aspect-ratio: 4 / 3; border-radius: 8px; }

/* ---------- WordPress: the article ---------- */
.jr-art { padding-bottom: 32px; }
.jr-head { display: grid; gap: 12px; max-width: 820px; margin: 4px 0 22px; }
.jr-head h1 { font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -.005em; text-transform: none; margin: 0; text-wrap: balance; }
.jr-stand { margin: 0; font-size: clamp(1.06rem, 1rem + .4vw, 1.22rem); line-height: 1.55; color: var(--muted); }
.jr-head .jr-meta { padding: 10px 14px; border-radius: 10px; background: #0b0f19; color: #c7cbd3; }
.jr-head .jr-meta a { color: #fff; }
.jr-head .jr-meta > * + *::before { color: rgba(255,255,255,.3); }
.jr-hero { margin: 0 0 28px; }
.jr-hero img { width: 100%; height: auto; max-height: 640px; object-fit: cover; display: block; border-radius: 16px; }
.jr-hero figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.jr-body { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: clamp(26px, 4vw, 52px); align-items: start; }
.jr-body--full { grid-template-columns: minmax(0, 780px); }
.jr-art .pdt-paper { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: clip; overflow-clip-margin: 8px; } /* clip, as the shared theme does: an ad or embed wider than a phone must never widen the page */
.jr-art .entry-content { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.jr-art .entry-content h2 { font-weight: 800; font-stretch: 80%; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; margin: 1.9em 0 .6em; padding-left: 14px; border-left: 5px solid var(--brand); }
.jr-art .entry-content h3 { font-weight: 800; font-stretch: 85%; font-size: 1.28rem; line-height: 1.2; margin: 1.6em 0 .45em; }
.jr-art .entry-content h4 { font: 800 .82rem/1.3 var(--font-display); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.6em 0 .5em; }
.jr-art .entry-content a { color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jr-art .entry-content a:hover { color: var(--brand); }
.jr-art .entry-content ul li::marker { color: var(--brand); }
.jr-art .entry-content ol li::marker { color: var(--brand); font-weight: 800; }
.jr-art .entry-content blockquote { margin: 1.7em 0; padding: 16px 20px; background: var(--surface-2); border-radius: 12px; border-left: 5px solid var(--ink); font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.jr-art .entry-content blockquote p { margin: 0 0 .6em; } .jr-art .entry-content blockquote p:last-child { margin: 0; }
.jr-art .entry-content img, .jr-art .entry-content figure img { border-radius: 12px; }
.jr-art .entry-content figcaption { font-size: .86rem; color: var(--muted); }
/* spec tables as the label sets them: a black head row */
.jr-art .entry-content table { font-size: .97rem; border-radius: 12px; }
.jr-art .entry-content th { background: #0b0f19; color: #fff; font: 800 .8rem/1.3 var(--font-display); font-stretch: 85%; letter-spacing: .05em; text-transform: uppercase; }
.jr-art .entry-content hr { border: 0; height: 2px; background: var(--line); margin: 2.2em 0; }
.jr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.jr-tags span { font: 800 .74rem/1.3 var(--font-display); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jr-tags a { padding: 6px 12px; border-radius: 8px; background: var(--surface-2); font-size: .88rem; font-weight: 700; color: var(--ink); }
.jr-tags a:hover { background: var(--brand); color: var(--brand-ink); }

.jr-hop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; }
.jr-hop a { display: grid; gap: 6px; align-content: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); min-width: 0; transition: transform .15s; }
.jr-hop a:hover { color: var(--ink); transform: translateY(-2px); }
.jr-hop a.nx { text-align: right; justify-items: end; }
.jr-hop a.nx:only-child { grid-column: 2; }
.jr-hop .jr-hl { font-size: 1.16rem; }
.jr-next { margin-top: 6px; }

/* the sidebar */
.pdt-side.jr-side .widget { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 0 14px 10px; overflow: hidden; }
.pdt-side.jr-side .widget-title { margin: 0 -14px 10px; padding: 9px 14px; background: #0b0f19; color: #fff; font: 800 .76rem/1.3 var(--font-display); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; }
.pdt-side.jr-side .pdt-latest-list li { padding: 10px 0; }
.pdt-side.jr-side .pdt-latest-list a { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 3px 12px; align-items: center; }
.pdt-side.jr-side .pdt-latest-list a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.pdt-side.jr-side .pdt-latest-list img { grid-row: span 2; width: 70px; height: 52px; object-fit: cover; display: block; border-radius: 8px; }
.pdt-side.jr-side .pdt-latest-t { font: 800 1rem/1.15 var(--font-display); font-stretch: 85%; color: var(--ink); }
.pdt-side.jr-side .pdt-latest-d { font-size: .76rem; color: var(--muted); }
.pdt-side.jr-side .ym-latest-posts-widget { --ym-latest-accent: var(--brand); }
.pdt-side.jr-side .ym-sidebar-latest { gap: 0; }
.pdt-side.jr-side .ym-sidebar-latest-card { grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 12px; min-block-size: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pdt-side.jr-side .ym-sidebar-latest-card:last-child { border-bottom: 0; }
.pdt-side.jr-side .ym-sidebar-latest-media { aspect-ratio: 4 / 3; border-radius: 8px; }
.pdt-side.jr-side .ym-sidebar-latest-rank { background: var(--brand); color: var(--brand-ink); box-shadow: none; border-radius: 5px; font-weight: 800; }
.pdt-side.jr-side .ym-sidebar-latest-title { font: 800 1rem/1.15 var(--font-display); font-stretch: 85%; color: var(--ink); -webkit-line-clamp: 3; }
.pdt-side.jr-side .ym-sidebar-latest-meta { font-size: .72rem; color: var(--muted); }

.jr-art .pdt-comments { margin-top: 36px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.jr-art .pdt-comments h2, .jr-art .pdt-comments .comment-reply-title { font: 800 1.4rem/1.1 var(--font-display); font-stretch: 80%; text-transform: uppercase; margin: 0 0 10px; }
.jr-art .pdt-comments .submit { min-height: 44px; padding: 0 22px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- WordPress: listings ---------- */
.jr-list { padding-bottom: 32px; }
.jr-list .jr-body { margin-top: 18px; grid-template-columns: minmax(0, 1fr) 312px; }
.jr-list .jr-body--full { grid-template-columns: minmax(0, 1fr); }
.jr-empty { padding: 36px 0; color: var(--muted); }

@media (max-width: 1080px) {
  .jr-body, .jr-list .jr-body { grid-template-columns: minmax(0, 1fr); }
  .jr-body > .pdt-side { max-width: 640px; }
}
@media (max-width: 900px) {
  .jr-lead { grid-template-columns: minmax(0, 1fr); }
  .jr-lead .jr-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .jr-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-row { grid-template-columns: 70px minmax(0, 1fr) 128px; }
  .jr-home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .jr-mast { border-radius: 12px; }
  .jr-sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .jr-sections::-webkit-scrollbar { display: none; }
  .jr-trio { grid-template-columns: minmax(0, 1fr); }
  .jr-row { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .jr-row .jr-pic { display: none; }
  .jr-row p { display: none; }
  .jr-date b { font-size: 1.3rem; }
  .jr-hop { grid-template-columns: minmax(0, 1fr); }
  .jr-hop a.nx { text-align: left; justify-items: start; }
  .jr-hop a.nx:only-child { grid-column: auto; }
  .jr-art .entry-content { font-size: 1.04rem; }
  .jr-head .jr-meta { column-gap: 10px; }
  .jr-meta > * + *::before { content: none; }
  .jr-home-list a { grid-template-columns: minmax(0, 1fr) 80px; }
}
