/*
 * Blog showcase styles (the @barefootjs/router demo). Shared by every adapter's
 * blog routes — served from this integration's static styles dir and linked,
 * instead of inlining the same block in each app. Self-contained (the blog uses
 * its own region-shell layout, not the catalog stylesheets).
 */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html[data-theme="light"] { color-scheme: light; }
body { margin: 0; font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #0e1116; color: #e6edf3; }
html[data-theme="light"] body { background: #f6f8fa; color: #1f2328; }
a { color: #58a6ff; }
.shell { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #161b22; border-bottom: 1px solid #30363d; }
html[data-theme="light"] .shell { background: #fff; border-bottom-color: #d0d7de; }
.shell-brand { font-weight: 700; font-size: 18px; text-decoration: none; color: inherit; }
.shell-island { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle { cursor: pointer; background: #0d1117; border: 1px solid #30363d; color: #e6edf3; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
html[data-theme="light"] .toggle { background: #f6f8fa; border-color: #d0d7de; color: #1f2328; }
.layout { display: flex; gap: 28px; align-items: flex-start; max-width: 1000px; margin: 0 auto; padding: 32px 24px 80px; }
.layout main { flex: 1; min-width: 0; }
.layout aside { position: sticky; top: 78px; width: 210px; flex: none; }
html[data-theme="light"] .sidebar { background: #fff; border-color: #d0d7de; }
.sidebar { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 16px; }
.sidebar-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #8b949e; margin-bottom: 12px; }
.sidebar-pin { cursor: pointer; width: 100%; background: #0d1117; border: 1px solid #30363d; color: #f2cc60; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .sidebar-pin { background: #f6f8fa; border-color: #d0d7de; }
.sidebar-note { font-size: 12px; color: #6e7681; margin: 12px 0 0; }
@media (max-width: 720px) { .layout { flex-direction: column; } .layout aside { position: static; width: 100%; } }
.page-title { font-size: 28px; margin: 0 0 6px; }
.lede, .meta { color: #8b949e; }
html[data-theme="light"] .lede, html[data-theme="light"] .meta { color: #57606a; }
.meta { font-size: 13px; margin-bottom: 12px; }
.lede { margin: 0 0 18px; }
.controls, .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ctl-label { font-size: 13px; color: #6e7681; }
.tag, .tag-inline, .sort { text-decoration: none; font-size: 13px; color: #9aa7b4; }
.tag, .sort { border: 1px solid #30363d; border-radius: 999px; padding: 4px 11px; }
.tag.on, .sort.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.tag-inline { color: #58a6ff; }
.status { font-size: 13px; color: #8b949e; margin-bottom: 12px; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.sortable-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sortable-list li { display: flex; align-items: center; gap: 10px; border: 1px solid #30363d; border-radius: 10px; background: #161b22; padding: 10px 14px; }
html[data-theme="light"] .sortable-list li { background: #fff; border-color: #d0d7de; }
.sortable-list li.pinned { border-color: #f2cc60; box-shadow: inset 3px 0 0 #f2cc60; }
.pin { cursor: pointer; background: none; border: none; font-size: 16px; color: #f2cc60; padding: 0; line-height: 1; }
.item-link { color: #e6edf3; text-decoration: none; font-weight: 600; font-size: 15px; }
html[data-theme="light"] .item-link { color: #1f2328; }
.item-link:hover { color: #58a6ff; }
.item-meta { margin-left: auto; font-size: 12px; color: #6e7681; }
.islands { display: flex; gap: 12px; align-items: center; margin: 4px 0 22px; }
.island { font-size: 14px; }
.island.like { cursor: pointer; background: #161b22; border: 1px solid #30363d; color: #f778ba; border-radius: 8px; padding: 6px 12px; }
html[data-theme="light"] .island.like { background: #fff; border-color: #d0d7de; }
.island.timer { color: #8b949e; font-variant-numeric: tabular-nums; }
.now-playing-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 12px; background: #161b22; border: 1px solid #30363d; border-radius: 999px; padding: 8px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.45); color: #3fb950; font-size: 13px; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .now-playing-bar { background: #fff; border-color: #d0d7de; box-shadow: 0 8px 28px rgba(140,149,159,.35); }
.np-toggle { cursor: pointer; background: none; border: none; color: inherit; font-size: 15px; padding: 0; line-height: 1; }
.np-title { color: #8b949e; }
.np-bar { display: inline-block; width: 120px; height: 6px; background: #30363d; border-radius: 999px; overflow: hidden; }
html[data-theme="light"] .np-bar { background: #d0d7de; }
.np-fill { display: block; height: 100%; background: #3fb950; transition: width .1s linear; }
.reader-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border: 1px solid #30363d; border-radius: 8px; background: #161b22; font-size: 13px; color: #8b949e; }
html[data-theme="light"] .reader-toolbar { background: #fff; border-color: #d0d7de; }
.rt-label { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.rt-btn { cursor: pointer; background: #0d1117; border: 1px solid #30363d; color: #e6edf3; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
html[data-theme="light"] .rt-btn { background: #f6f8fa; border-color: #d0d7de; color: #1f2328; }
.rt-level { color: #58a6ff; font-variant-numeric: tabular-nums; min-width: 1ch; text-align: center; }
.prose p { margin: 0 0 18px; color: #d8e0e8; }
html[data-theme="light"] .prose p { color: #424a53; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-size: 14px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #30363d; }
.pager-link { color: #58a6ff; text-decoration: none; font-weight: 600; font-size: 14px; max-width: 46%; }
.pager-link.next { text-align: right; margin-left: auto; }
.pager-link.disabled { color: #6e7681; }
