/* Mobile US Press — THE LOCK SCREEN (look.blog = 'lockscreen'). The stories arrive the way a phone delivers news: under the date of the
   newest one, as notifications grouped by the section that sent them, on a soft wallpaper. One stylesheet for the app's /blog/ and home
   block (src/lib/ui/sites/samsungmobileuspress/LockScreen*.svelte) and WordPress's own listings and articles
   (ops/wp/theme/parts/lockscreen/). Colours come from the site's tokens; the wallpaper is mixed from them. */

.ls { --ls-wall: linear-gradient(165deg, color-mix(in srgb, var(--brand) 14%, var(--bg)) 0%, color-mix(in srgb, #3a6df0 12%, var(--bg)) 55%, color-mix(in srgb, #8a4fd8 12%, var(--bg)) 100%); }
.ls .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-screen { display: grid; gap: 18px; margin: 14px 0 0; padding: clamp(18px, 3vw, 34px); border-radius: calc(var(--radius-lg) + 8px); background: var(--ls-wall); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- the clock: the day of the newest story, the blog's name ---------- */
.ls-mast { display: grid; justify-items: center; gap: 6px; padding: 10px 0 6px; text-align: center; }
.ls-mast > .google-auto-placed { width: 100%; }
.ls-day { font-size: .92rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.ls-mast h1 { margin: 0; font: 600 clamp(2.6rem, 2rem + 3.6vw, 4.6rem)/1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.ls-mast--sm h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.ls-stand { max-width: 58ch; margin-top: 4px; color: var(--muted); line-height: 1.55; }
.ls-secs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ls-secs button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); font: 700 .86rem/1 var(--font-text); cursor: pointer; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.ls-secs button i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-secs button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.ls-secs button.on i { color: inherit; opacity: .7; }

/* ---------- a notification ---------- */
.ls-ico { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font: 800 .7rem/1 var(--font-text); }
.ls-nh { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .78rem; color: var(--muted); }
.ls-nh b { color: var(--ink); font-weight: 800; letter-spacing: .01em; }
.ls-nh span:not(.ls-ico)::before { content: '·'; margin-right: 8px; }
.ls-nh time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-hl { font: 700 1.04rem/1.32 var(--font-text); color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty; }
.ls-n { display: grid; grid-template-columns: minmax(0, 1fr) 92px; grid-template-areas: 'nh nh' 'nb th'; gap: 8px 14px; padding: 14px 16px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ink); backdrop-filter: blur(14px); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .35); transition: transform .15s; }
.ls-n:hover { color: var(--ink); transform: scale(1.01); }
.ls-n:hover .ls-hl { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ls-n .ls-nh { grid-area: nh; }
.ls-nb { grid-area: nb; display: grid; align-content: start; gap: 4px; min-width: 0; }
.ls-nb small { font-size: .78rem; color: var(--muted); }
.ls-th { grid-area: th; display: block; align-self: start; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ls-th img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the newest, opened out */
.ls-lead { display: grid; gap: 12px; max-width: 760px; width: 100%; justify-self: center; padding: 16px 18px 20px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink); backdrop-filter: blur(16px); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .45); }
.ls-lead:hover { color: var(--ink); }
.ls-lead:hover .ls-hl { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ls-lead .ls-pic { display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.ls-lead .ls-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-lead .ls-hl { font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--font-display); letter-spacing: -.01em; }
.ls-ex { color: var(--muted); line-height: 1.55; }
.ls-mins { font-size: .82rem; font-weight: 700; color: var(--muted); }

/* a section's stack */
.ls-group { display: grid; gap: 8px; max-width: 760px; width: 100%; justify-self: center; }
.ls-gh { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 0 6px; font: 800 .82rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.ls-gh .ls-ico { width: 24px; height: 24px; background: var(--ink); color: var(--bg); }
.ls-gh small { margin-left: auto; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.ls-stack { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ls-none { justify-self: center; padding: 16px 20px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--muted); text-align: center; }
.ls-none button { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--brand); cursor: pointer; }
.ls-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin-top: 26px; font-weight: 700; color: var(--muted); }
.ls-pager a, .ls-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink); }
.ls-pager a { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ls-pager a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ls-pager .page-numbers.current { background: var(--ink); color: var(--bg); }
.ls-pager .dots { min-width: 0; padding: 0 2px; }

/* ---------- the home block ---------- */
.ls-home { margin: 34px 0 10px; }
.ls-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.ls-home-head h2 { margin: 0; font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.ls-home-head a { font-weight: 800; color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.ls-screen--home { margin-top: 14px; }
.ls-screen--home .ls-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- WordPress: listings and articles ---------- */
.ls-list .ls-wrapbody, .ls-art .ls-wrapbody { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: clamp(26px, 4vw, 46px); align-items: start; margin-top: 22px; }
.ls .ls-wrapbody--full { grid-template-columns: minmax(0, 1fr); }
.ls-list .ls-stack { gap: 10px; }
.ls-art .ls-note { display: grid; gap: 12px; max-width: 900px; margin: 14px auto 0; padding: 18px 22px 22px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); box-shadow: 0 16px 40px -26px rgba(0, 0, 0, .4); }
.ls-art .ls-note > .google-auto-placed { width: 100%; }
.ls-art .ls-note h1 { margin: 0; font: 600 clamp(2rem, 1.4rem + 2.4vw, 3.1rem)/1.08 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.ls-art .ls-stand { margin: 0; text-align: left; font-size: 1.1rem; }
.ls-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.ls-meta a { color: var(--ink); font-weight: 700; }
.ls-art .ls-hero { margin: 18px 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.ls-art .ls-hero img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.ls-art .ls-hero figcaption { padding: 8px 14px; font-size: .84rem; color: var(--muted); background: var(--surface); }
.ls-art .pdt-paper { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: clip; overflow-clip-margin: 8px; }
.ls-art .entry-content { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.ls-art .entry-content h2 { margin: 1.9em 0 .6em; font: 600 clamp(1.45rem, 1.2rem + .9vw, 1.95rem)/1.2 var(--font-display); letter-spacing: -.015em; }
.ls-art .entry-content h2::after { content: ''; display: block; width: 46px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--brand); }
.ls-art .entry-content h3 { margin: 1.6em 0 .45em; font: 700 1.2rem/1.3 var(--font-text); }
.ls-art .entry-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ls-art .entry-content a:hover { color: var(--brand); }
.ls-art .entry-content ol li::marker, .ls-art .entry-content ul li::marker { color: var(--brand); font-weight: 800; }
.ls-art .entry-content blockquote { margin: 1.7em 0; padding: 16px 20px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--ink); font-family: var(--font-display); font-size: 1.12em; }
.ls-art .entry-content blockquote p:last-child { margin-bottom: 0; }
.ls-art .entry-content table { font-size: .96rem; font-variant-numeric: tabular-nums; }
.ls-art .entry-content th { background: var(--surface-2); color: var(--ink); font: 800 .8rem/1.3 var(--font-text); }
.ls-art .entry-content img, .ls-art .entry-content figure img { border-radius: 14px; }
.ls-art .entry-content code { padding: 1px 6px; border-radius: 5px; background: var(--surface-2); font-family: var(--font-mono, ui-monospace, monospace); font-size: .88em; }
.ls-art .entry-content pre { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); overflow-x: auto; font-family: var(--font-mono, ui-monospace, monospace); }
.ls-art .entry-content pre code { padding: 0; background: none; }
.ls-art .pdt-comments { margin-top: 34px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ls-art .pdt-comments h2, .ls-art .pdt-comments .comment-reply-title { margin: 0 0 10px; font: 600 1.4rem/1.25 var(--font-display); }
.ls-hop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.ls-hop a { display: grid; gap: 6px; padding: 16px 18px; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ls-hop a:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ls-hop a.nx { grid-column: 2; text-align: right; }
.ls-hop small { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ls-reads { margin-top: 36px; }
.ls-reads h2 { margin: 0 0 4px; font: 600 clamp(1.4rem, 1.15rem + .9vw, 1.9rem)/1.2 var(--font-display); letter-spacing: -.02em; }

/* ---------- the site's sidebar ---------- */
.pdt-side.jr-side .widget { padding: 6px 16px 10px; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pdt-side.jr-side .widget-title { margin: 10px 0 6px; padding: 0 0 8px; background: none; border-bottom: 2px solid var(--ink); color: var(--ink); font: 600 1.15rem/1.2 var(--font-display); }
.pdt-side.jr-side .pdt-latest-list li { padding: 9px 0; border-bottom-color: var(--line); }
.pdt-side.jr-side .pdt-latest-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 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: 64px; aspect-ratio: 1; height: auto; object-fit: cover; display: block; border-radius: 12px; }
.pdt-side.jr-side .pdt-latest-t { font-weight: 700; font-size: .94rem; line-height: 1.25; color: var(--ink); }
.pdt-side.jr-side .pdt-latest-d { font-size: .78rem; color: var(--muted); }
.pdt-side.jr-side .ym-latest-posts-widget { --ym-latest-accent: var(--brand); }
.pdt-side.jr-side .ym-sidebar-latest-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; min-block-size: 0; padding: 9px 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: 12px; }
.pdt-side.jr-side .ym-sidebar-latest-rank { background: var(--brand); color: var(--brand-ink); box-shadow: none; border-radius: 8px; }
.pdt-side.jr-side .ym-sidebar-latest-title { font-weight: 700; font-size: .94rem; color: var(--ink); }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .ls-list .ls-wrapbody, .ls-art .ls-wrapbody { grid-template-columns: minmax(0, 1fr); }
  .ls .ls-wrapbody > .pdt-side { max-width: 640px; }
}
@media (max-width: 700px) {
  .ls-screen--home .ls-stack { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ls-screen { margin-inline: -8px; padding: 16px 10px; border-radius: 26px; }
  .ls-secs { flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ls-secs button { flex: none; }
  .ls-n { grid-template-columns: minmax(0, 1fr) 68px; padding: 12px 13px; border-radius: 18px; }
  .ls-hl { font-size: .98rem; }
  .ls-art .ls-note { padding: 16px; }
  .ls-art .entry-content { font-size: 1.04rem; }
  .ls-hop { grid-template-columns: minmax(0, 1fr); }
  .ls-hop a.nx { grid-column: 1; }
}
.ls-note .ls-nh time { display: none; }
