/* WatchRanker's blog — The Journal (look.blog = 'journal'). ONE stylesheet for every place the blog is drawn: the directory's
   /blog/ and its home block (src/lib/ui/blog/Journal*.svelte) and, through the chrome, the WordPress article, listings and
   sidebar (ops/wp/theme/parts/journal/*). Tokens only (--bg --surface --surface-2 --ink --muted --line --accent --radius
   --radius-lg --shadow), so light and dark follow the site.

   04-Oct-2026 rebuild: the first pass was a hairline serif magazine — the look the owner had already rejected on MobilesTalk
   ("AI jaisa lag raha"). This one is the site's own: white cards on a cool steel canvas, generous radii, one brass accent,
   Schibsted Grotesk throughout, and a reading column that keeps the article editorial. It matches the directory's register
   (src/lib/ui/sites/watchranker/Register.svelte), so the blog and the directory read as one site. */

/* ---------- atoms ---------- */
.jr-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
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: lining-nums tabular-nums; }
.jr-meta > * + *::before { content: '·'; margin: 0 .6em; color: var(--line); }
.jr-meta a { color: var(--ink); font-weight: 600; }
.jr-meta a:hover { color: var(--accent); }
.jr-pic { display: block; overflow: hidden; background: var(--surface-2); border-radius: calc(var(--radius-lg) - 4px); }
.jr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s 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: 700; letter-spacing: -.018em; line-height: 1.18; text-wrap: balance; color: var(--ink); margin: 0; }
span.jr-hl { display: block; }
.jr-rule { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 16px; font-size: 1.32rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.jr-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- the front page's masthead ---------- */
.jr-mast { padding: 10px 0 0; }
.jr-mast h1 { font-weight: 800; font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; margin: 10px 0 12px; }
.jr-mast--sm h1 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.7rem); }
.jr-mast-stand { max-width: 620px; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.jr-mast-stand p { margin: 0; }
/* the sections as pills, the one the reader is in filled */
.jr-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.jr-sections a { padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.jr-sections a:hover { border-color: var(--accent); color: var(--accent); }
.jr-sections a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- the lead story ---------- */
.jr-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: center; margin: 22px 0 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.jr-lead:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 2px 4px rgba(20,23,28,.06), 0 18px 36px -18px rgba(20,23,28,.3); }
.jr-lead .jr-pic { aspect-ratio: 3 / 2; }
.jr-lead-t { display: grid; gap: 12px; justify-items: start; min-width: 0; padding: 10px 14px 10px 4px; }
.jr-lead .jr-hl { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); line-height: 1.1; }
.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; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 600; }
.jr-lead:hover .jr-more-link { background: var(--accent); color: var(--accent-ink); }
.jr-lead:not(:has(.jr-pic)) { grid-template-columns: minmax(0, 1fr); }

/* ---------- three stories ---------- */
.jr-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.jr-trio > a { display: grid; gap: 9px; align-content: start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); min-width: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.jr-trio > a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,23,28,.06), 0 16px 32px -16px rgba(20,23,28,.3); }
.jr-trio .jr-pic { aspect-ratio: 16 / 10; margin-bottom: 2px; }
.jr-trio .jr-hl { font-size: 1.12rem; }

/* ---------- the index ---------- */
.jr-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jr-row { display: grid; grid-template-columns: 148px minmax(0, 1fr) 70px; gap: 18px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.jr-row:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,23,28,.06), 0 16px 32px -16px rgba(20,23,28,.3); }
/* the markup is date → story → picture; the page reads picture → story → date. Each is placed in its own cell of the one row —
   a column alone is not enough, since auto-placement would push the later-placed items onto rows of their own. */
.jr-row .jr-pic { grid-area: 1 / 1; aspect-ratio: 3 / 2; }
.jr-row .jr-row-t { grid-area: 1 / 2; }
.jr-row .jr-date { grid-area: 1 / 3; }
.jr-row-t { display: grid; gap: 7px; align-content: center; min-width: 0; }
.jr-row .jr-hl { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); }
.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; }
/* the date as the register's year marker: the figure large, its month under it */
.jr-date { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-left: 2px solid var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.jr-date b { font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.jr-date span { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jr-row:not(:has(.jr-pic)) { grid-template-columns: minmax(0, 1fr) 70px; }
.jr-row:not(:has(.jr-pic)) .jr-row-t { grid-area: 1 / 1; }
.jr-row:not(:has(.jr-pic)) .jr-date { grid-area: 1 / 2; }

/* ---------- pager ---------- */
.jr-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 30px 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 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 600; }
.jr-pager > a:hover, .jr-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.jr-pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.jr-pager .page-numbers.dots { color: var(--muted); }
.jr-pager-no { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- 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; }
.jr-home-head h2 { margin: 0; font-weight: 700; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.02em; }
.jr-home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.jr-home-lead { display: grid; gap: 10px; align-content: start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.jr-home-lead:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.jr-home-lead .jr-pic { aspect-ratio: 16 / 9; }
.jr-home-lead .jr-hl { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
.jr-home-list { display: grid; gap: 10px; align-content: start; }
.jr-home-list a { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, transform .15s; }
.jr-home-list a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.jr-home-list .jr-hl { font-size: 1.02rem; }
.jr-home-list .jr-pic { aspect-ratio: 1; }

/* ---------- WordPress: the article ---------- */
.jr-art { padding-bottom: 32px; }
.jr-head { display: grid; gap: 14px; max-width: 760px; margin: 2px 0 24px; }
.jr-head h1 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.034em; margin: 0; text-wrap: balance; }
.jr-stand { margin: 0; font-size: clamp(1.08rem, 1rem + .4vw, 1.26rem); line-height: 1.55; color: var(--muted); }
.jr-head .jr-meta { padding-top: 12px; border-top: 1px solid var(--line); }
.jr-hero { margin: 0 0 30px; }
.jr-hero img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; border-radius: var(--radius-lg); }
.jr-hero figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.jr-body { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: clamp(26px, 4vw, 56px); align-items: start; }
.jr-body--full { grid-template-columns: minmax(0, 760px); }
/* the reading column sits on the page itself, not in a box: the article's pictures and panels carry the white */
.jr-art .pdt-paper { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; }
.jr-art .entry-content { font-size: 1.1rem; line-height: 1.75; max-width: 68ch; }
.jr-art .entry-content h2 { font-weight: 700; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; margin: 1.9em 0 .6em; }
.jr-art .entry-content h3 { font-weight: 700; font-size: 1.24rem; line-height: 1.25; letter-spacing: -.02em; margin: 1.6em 0 .45em; }
.jr-art .entry-content h4 { font-size: .82rem; font-weight: 700; 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(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.jr-art .entry-content a:hover { color: var(--accent); }
.jr-art .entry-content ul li::marker, .jr-art .entry-content ol li::marker { color: var(--accent); font-weight: 700; }
.jr-art .entry-content blockquote { margin: 1.7em 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 1.1rem; 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: var(--radius); }
.jr-art .entry-content figcaption { font-size: .88rem; color: var(--muted); }
.jr-art .entry-content table { font-size: .97rem; }
.jr-art .entry-content th { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jr-art .entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
/* tags as quiet pills */
.jr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.jr-tags span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jr-tags a { padding: 6px 13px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; font-weight: 600; color: var(--ink); }
.jr-tags a:hover { color: var(--accent); }

/* previous / next, and three more */
.jr-hop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 38px 0 0; }
.jr-hop a { display: grid; gap: 7px; align-content: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); min-width: 0; transition: border-color .15s, transform .15s; }
.jr-hop a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); 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.1rem; }
.jr-next { margin-top: 6px; }

/* the sidebar: the same cards as everywhere else */
.pdt-side.jr-side .widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; }
.pdt-side.jr-side .widget-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.pdt-side.jr-side .pdt-latest-list li { padding: 10px 0; }
.pdt-side.jr-side .pdt-latest-list a { display: grid; grid-template-columns: 66px 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: 66px; height: 66px; object-fit: cover; display: block; border-radius: var(--radius); }
.pdt-side.jr-side .pdt-latest-t { font-size: .97rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.pdt-side.jr-side .pdt-latest-d { font-size: .76rem; color: var(--muted); }
/* the estate's own latest-posts cards (ym-sidebar-latest-cards MU), when a site has them */
.pdt-side.jr-side .ym-latest-posts-widget { --ym-latest-accent: var(--accent); }
.pdt-side.jr-side .ym-sidebar-latest { gap: 2px; }
.pdt-side.jr-side .ym-sidebar-latest-card { grid-template-columns: 66px 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: 1; border-radius: var(--radius); }
.pdt-side.jr-side .ym-sidebar-latest-rank { inset-block-start: 4px; inset-inline-start: 4px; min-block-size: 19px; min-inline-size: 21px; background: var(--accent); color: var(--accent-ink); box-shadow: none; font-size: .6rem; font-weight: 700; }
.pdt-side.jr-side .ym-sidebar-latest-title { font-size: .97rem; font-weight: 650; line-height: 1.3; color: var(--ink); -webkit-line-clamp: 3; }
.pdt-side.jr-side .ym-sidebar-latest-meta { margin-block-start: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

/* comments */
.jr-art .pdt-comments { margin-top: 38px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.jr-art .pdt-comments h2, .jr-art .pdt-comments .comment-reply-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.jr-art .pdt-comments .submit { min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; }

/* ---------- 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); }

/* ---------- narrower screens ---------- */
@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-t { padding: 4px 6px 10px; }
  .jr-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-row { grid-template-columns: 120px minmax(0, 1fr) 62px; }
  .jr-home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .jr-sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .jr-sections::-webkit-scrollbar { display: none; }
  .jr-trio { grid-template-columns: minmax(0, 1fr); }
  /* phone: picture and story side by side, the date on its own line under them */
  .jr-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .jr-row .jr-pic { grid-area: 1 / 1; }
  .jr-row .jr-row-t { grid-area: 1 / 2; }
  .jr-row .jr-date { grid-area: 2 / 1 / 3 / -1; justify-items: start; padding: 0 0 0 10px; }
  .jr-row:not(:has(.jr-pic)) { grid-template-columns: minmax(0, 1fr); }
  .jr-row:not(:has(.jr-pic)) .jr-row-t { grid-area: 1 / 1; }
  .jr-row .jr-date b { font-size: .95rem; display: inline; }
  .jr-row .jr-date span { display: inline; margin-left: 5px; }
  .jr-row p { display: none; }
  .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.05rem; }
  .jr-meta { column-gap: 12px; }
  .jr-meta > * + *::before { content: none; }
  .jr-home-list a { grid-template-columns: minmax(0, 1fr) 72px; }
}
