/* WikiPad. Phone first (390 x 844), desktop second. The look of an encyclopedia you know, none of its marks. */
:root {
  --ink: #202122; --ink2: #54595d; --ink3: #72777d; --link: #3366cc; --link-v: #6b4ba1; --red: #d73333; --red-dk: #b32424;
  --line: #a2a9b1; --line2: #c8ccd1; --soft: #eaecf0; --bg: #ffffff; --bg2: #f8f9fa; --green: #14866d; --green-bg: #d5fdf4;
  --feat-bg: #f5fffa; --feat-hd: #cef2e0; --feat-ln: #a3bfb1; --news-bg: #f5faff; --news-hd: #cedff2; --news-ln: #a3b0bf;
  --afd-bg: #fee7e6; --hl: #fef6e7; --serif: 'Linux Libertine', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); padding-bottom: 76px; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
abbr { text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border-bottom: 1px solid var(--soft); }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 4px; cursor: pointer; color: var(--ink); flex: none; }
.ico:hover { background: var(--soft); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#soundBtn .on { display: none; } #soundBtn[aria-pressed="true"] .on { display: inline; } #soundBtn[aria-pressed="true"] .off { display: none; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.wordmark b { font-weight: 400; font-size: 21px; letter-spacing: .06em; }
.wordmark b small { font-size: 16px; }
.wordmark i { font-style: normal; font-size: 11px; color: var(--ink2); margin-top: 3px; letter-spacing: .02em; }
.pill { margin-left: auto; font-size: 11px; line-height: 1.2; padding: 4px 8px; border-radius: 2px; background: var(--hl); border: 1px solid #fc3; color: #6d5200; text-align: center; max-width: 120px; }
.pill .sm { display: none; }
@media (max-width: 420px) { .pill .lg { display: none; } .pill .sm { display: inline; } .wordmark b { font-size: 19px; } .wordmark b small { font-size: 14px; } .wordmark i { font-size: 10px; } .logo { width: 32px; height: 32px; } .top { gap: 4px; } }
.pill.live { background: var(--green-bg); border-color: #6dd4bd; color: #0b5b49; }

.menu { position: sticky; top: 57px; z-index: 29; display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line2); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.menu a { padding: 12px 18px; border-top: 1px solid var(--soft); min-height: 44px; }

/* ---------- search ---------- */
.search { position: relative; display: flex; align-items: center; gap: 6px; margin: 10px 12px 4px; padding: 0 0 0 10px; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.search:focus-within { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.search > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink2); stroke-width: 1.8; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 2px; font: inherit; font-size: 16px; background: transparent; }
.search button { border: 0; border-left: 1px solid var(--line); background: var(--bg2); padding: 0 14px; align-self: stretch; cursor: pointer; color: var(--ink); font-weight: 600; min-height: 44px; }
.hits { position: absolute; left: -1px; right: -1px; top: 100%; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); z-index: 25; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.hits li a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; min-height: 44px; color: var(--ink); border-top: 1px solid var(--soft); }
.hits li a b { color: var(--link); }
.hits li small { margin-left: auto; color: var(--ink3); }
.hits li.none { padding: 10px; color: var(--ink2); }

/* ---------- site notice (the buy appeal) ---------- */
.sitenotice { margin: 8px 12px; padding: 10px 12px; border: 1px solid #fc3; background: var(--hl); font-size: 14px; position: relative; }
.sitenotice b { font-family: var(--serif); font-weight: 700; }
.sitenotice .x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink2); cursor: pointer; }

/* ---------- main page ---------- */
main { padding: 0 12px; max-width: 1200px; margin: 0 auto; }
.welcome { text-align: center; padding: 14px 6px 12px; border-bottom: 1px solid var(--line2); }
.welcome h1 { font: 400 26px/1.2 var(--serif); margin: 0; }
.welcome p { margin: 2px 0; }
.welcome .count { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.welcome .count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cta { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg2); color: var(--ink); font-weight: 700; cursor: pointer; }
.btn:hover { background: #fff; text-decoration: none; }
.btn.prog { background: var(--link); border-color: var(--link); color: #fff; }
.btn.prog:hover { background: #447ff5; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }

.box { border: 1px solid var(--line2); margin: 12px 0; background: #fff; }
.box > h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 4px 10px; font: 700 15px/1.6 var(--sans); background: var(--soft); border-bottom: 1px solid var(--line2); }
.box > h2 span { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.box > h2 small { margin-left: auto; font: 400 12px var(--sans); color: var(--ink2); text-align: right; }
.box > *:not(h2):not(ol):not(ul) { margin-left: 10px; margin-right: 10px; }
.box .sub { font-size: 13px; color: var(--ink2); margin-top: 6px; margin-bottom: 6px; }
.empty-note { color: var(--ink2); font-size: 14px; }
.feat { background: var(--feat-bg); border-color: var(--feat-ln); } .feat > h2 { background: var(--feat-hd); border-color: var(--feat-ln); }
.news, .dyk, .otd { background: var(--news-bg); border-color: var(--news-ln); } .news > h2, .dyk > h2, .otd > h2 { background: var(--news-hd); border-color: var(--news-ln); }
.afd > h2 { background: #fbe0de; }
.self > h2 { background: #fef6e7; }
.live { color: var(--green) !important; font-weight: 700 !important; }
.live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; animation: blink 1.6s infinite; }
.live.off { color: var(--ink3) !important; } .live.off::before { animation: none; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- spotlight: the set piece ---------- */
.spot { margin: 12px 0 0; min-height: 132px; }
.spot-empty { padding: 18px 12px; border: 1px dashed var(--line2); color: var(--ink2); text-align: center; font-size: 14px; }
.ambox { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left: 10px solid var(--link); background: var(--bg2); animation: drop .5s cubic-bezier(.2,1.4,.4,1); }
.ambox.del { border-left-color: var(--red-dk); background: var(--afd-bg); }
.ambox.ga { border-left-color: var(--green); background: #effcf8; }
.ambox.star { border-left-color: #f0b400; background: #fffbe6; }
.ambox.edit { border-left-color: #f0b400; background: var(--hl); }
.ambox .pic { width: 64px; height: 64px; flex: none; border: 1px solid var(--line2); background: #fff; display: grid; place-items: center; overflow: hidden; }
.ambox .pic img { width: 100%; height: 100%; object-fit: cover; }
.ambox .pic.icon { border: 0; background: none; font-size: 40px; line-height: 1; }
.ambox h3 { margin: 0 0 2px; font: 700 15px/1.35 var(--sans); }
.ambox p { margin: 2px 0; font-size: 14px; }
.ambox .why { font-family: var(--serif); font-size: 15px; }
.ambox .meta { font-size: 12px; color: var(--ink2); }
.ambox a.go { font-weight: 700; }
@keyframes drop { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.stamp { display: inline-block; margin-left: 6px; padding: 0 6px; border: 2px solid var(--red-dk); color: var(--red-dk); font: 700 11px/1.5 var(--sans); letter-spacing: .08em; transform: rotate(-4deg); }

/* ---------- recent changes ---------- */
.legend { font-size: 12px; color: var(--ink2); margin: 6px 10px 2px; }
.legend .tag { margin-left: 6px; } .legend .tag:first-child { margin-left: 0; }
.rclist { list-style: none; margin: 0; padding: 0 0 4px; }
.rclist li { display: grid; grid-template-columns: 44px auto 1fr; gap: 0 6px; align-items: baseline; padding: 6px 10px; border-top: 1px solid var(--soft); font-size: 14px; line-height: 1.4; }
.rclist li.fresh { animation: hl 2.6s ease-out; }
@keyframes hl { 0% { background: #fff1b8; } 100% { background: transparent; } }
.rclist time { color: var(--ink3); font-size: 12px; font-variant-numeric: tabular-nums; }
.rclist .what { min-width: 0; overflow-wrap: anywhere; }
.rclist .what a.t { font-weight: 600; }
.rclist .th img { width: 22px; height: 22px; object-fit: cover; border-radius: 3px; vertical-align: -5px; margin-right: 6px; border: 1px solid var(--soft); background: var(--bg2); }
body.stream .rclist .th img { width: 28px; height: 28px; vertical-align: -7px; }
.rclist .sum { color: var(--ink2); font-style: italic; }
.rclist .d { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d.up { color: #006400; } .d.dn { color: #8b0000; } .d.z { color: var(--ink3); }
.rclist li.ed { background: #fffbea; }
.rclist li.afd { background: #fff5f4; }
.tag { display: inline-block; min-width: 22px; padding: 0 4px; font: 700 11px/1.6 var(--sans); text-align: center; border-radius: 2px; color: #fff; background: var(--ink2); }
.tag.n { background: #202122; } .tag.ga { background: var(--green); } .tag.afd { background: var(--red-dk); } .tag.ed { background: #c79a00; }
.tag.fa { background: #f0b400; color: #202122; } .tag.w { background: var(--link); } .tag.m { background: #36c; }

/* ---------- WikiPad's own article (editors) ---------- */
.selfgrid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 8px 10px !important; border: 1px solid var(--soft); }
.selfgrid div { padding: 6px 4px; border-left: 1px solid var(--soft); }
.selfgrid div:first-child { border-left: 0; }
.selfgrid b { display: block; font: 400 20px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.selfgrid span { font-size: 12px; color: var(--ink2); }
.editlist { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.editlist li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-top: 1px solid var(--soft); font-size: 14px; flex-wrap: wrap; }
.editlist li.fresh { animation: hl 2.6s ease-out; }
.editlist .u { font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.role { font-size: 11px; padding: 0 6px; border-radius: 2px; background: var(--soft); color: var(--ink2); font-weight: 700; }
.role.Founder, .role.Bureaucrat { background: #f0b400; color: #202122; } .role.Administrator { background: var(--link); color: #fff; } .role.Early { background: #d5fdf4; color: #0b5b49; }
.editlist .d { margin-left: auto; }

/* ---------- featured / afd / news / dyk / otd ---------- */
.featcard { display: flex; gap: 12px; padding: 10px 0; }
.featcard .pic { width: 96px; height: 96px; flex: none; border: 1px solid var(--line2); background: #fff; overflow: hidden; }
.featcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.featcard p { margin: 0; font-size: 14px; }
.featcard p b:first-child { font-family: var(--serif); }
.afdlist, .newslist, .dyklist { margin: 4px 0 8px; padding: 0 10px 0 30px; font-size: 14px; }
.afdlist li, .newslist li, .dyklist li { padding: 3px 0; }
.afdlist .c { color: var(--red-dk); font-weight: 600; }
.afdlist small, .newslist small { color: var(--ink3); }
.otd ul { padding-left: 20px; margin: 6px 0; font-size: 14px; }
.otdgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin: 8px 0; }
.otdgrid b { display: block; font: 400 20px var(--serif); }
.otdgrid span { font-size: 12px; color: var(--ink2); }
.bornlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 8px 10px 10px !important; }
.bornlist a { display: block; text-align: center; font-size: 13px; }
.bornlist img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line2); }
.about p { font-size: 14px; }
.fine { font-size: 12px; color: var(--ink3); }
.cn { color: var(--link); font-size: 11px; white-space: nowrap; font-style: italic; }
.cn.dub { color: var(--red-dk); }

/* ---------- article view ---------- */
.art { padding: 10px 0 20px; }
.art h1 { font: 400 28px/1.25 var(--serif); margin: 6px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.art h1 .ga-ico { float: right; width: 26px; height: 26px; margin-top: 6px; }
.art .from { font-size: 13px; color: var(--ink2); margin: 4px 0 8px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line2); margin: 0 -12px 10px; padding: 0 12px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 12px; min-height: 44px; color: var(--link); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-size: 14px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.art .ambox { margin: 10px 0; animation: none; }
.infobox { width: 100%; border: 1px solid var(--line2); background: var(--bg2); border-collapse: collapse; font-size: 13px; margin: 8px 0 12px; }
.infobox caption { font: 700 16px/1.4 var(--sans); padding: 6px; background: var(--soft); border: 1px solid var(--line2); border-bottom: 0; }
.infobox th, .infobox td { padding: 4px 8px; text-align: left; vertical-align: top; border-top: 1px solid var(--soft); }
.infobox th { width: 40%; font-weight: 700; }
.infobox td { overflow-wrap: anywhere; }
.infobox .img td { text-align: center; padding: 8px; }
.infobox .img img { width: 180px; max-width: 70%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line2); background: #fff; }
.infobox .img small { display: block; color: var(--ink2); margin-top: 4px; }
.infobox code { font-size: 12px; }
.infobox .copyca { border: 1px solid var(--line); background: #fff; padding: 2px 8px; min-height: 44px; min-width: 44px; margin-left: 4px; cursor: pointer; }
.art h2 { font: 400 22px/1.3 var(--serif); margin: 18px 0 6px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.art p { margin: 6px 0 10px; }
.art .lead { font-size: 15.5px; }
.art .hist { padding-left: 20px; margin: 4px 0; }
.art .hist li { margin: 4px 0; }
.art .hist time { color: var(--ink2); font-variant-numeric: tabular-nums; }
.art blockquote { margin: 6px 0; padding: 6px 12px; border-left: 4px solid var(--soft); font-family: var(--serif); }
.art blockquote p { margin: 4px 0; }
.art .refs { font-size: 13px; padding-left: 26px; }
.art .refs li { margin: 3px 0; overflow-wrap: anywhere; }
.art sup a { font-size: 11px; }
.histtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.histtbl td { padding: 5px 6px; border-top: 1px solid var(--soft); }
.histtbl .dev { background: #fff5f4; }
.art .loading { color: var(--ink2); padding: 30px 0; }
.art .badge-here { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border: 1px solid var(--link); color: var(--link); font-size: 12px; font-weight: 700; }

/* ---------- footer, CA bar, toast ---------- */
.foot { max-width: 1200px; margin: 20px auto 0; padding: 14px 12px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--ink2); }
.foot p { margin: 4px 0; }
.cabar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
.ca-label { font: 700 13px var(--sans); flex: none; }
.cabar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink2); }
.cabar button, .cabar .buy { flex: none; min-height: 44px; min-width: 60px; padding: 0 14px; border: 1px solid var(--line); background: var(--bg2); font-weight: 700; cursor: pointer; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.cabar .buy { background: var(--link); border-color: var(--link); color: #fff; }
.cabar .buy[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cabar button[disabled] { opacity: .5; }
.toast { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 50; background: #202122; color: #fff; padding: 8px 14px; border-radius: 2px; font-size: 14px; max-width: calc(100vw - 24px); }

/* ---------- create article (launch sheet) ---------- */
.ls-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.ls-scrim { position: absolute; inset: 0; background: rgba(32,33,34,.5); }
.ls { position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: #fff; border-top: 4px solid var(--link); padding: 0 14px 20px; }
.ls-head { position: sticky; top: 0; background: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); z-index: 1; }
.ls-head h2 { flex: 1; margin: 0; font: 400 22px var(--serif); }
.ls-head .ico svg { stroke-width: 2.2; }
.ls-intro { font-size: 14px; color: var(--ink2); }
.ls-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-f { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; }
.ls-f.full { grid-column: 1 / -1; }
.ls-f i { font-weight: 400; color: var(--ink3); font-style: normal; }
.ls-f input, .ls-f textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 2px; min-height: 44px; width: 100%; }
.ls-f input:focus, .ls-f textarea:focus { outline: 0; border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.ls-f [aria-invalid="true"] { border-color: var(--red); }
.ls-pic { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.ls-pic .prev { width: 84px; height: 84px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink3); font-size: 12px; text-align: center; flex: none; overflow: hidden; background: var(--bg2); }
.ls-pic .prev img { width: 100%; height: 100%; object-fit: cover; }
.ls-pic label.btn { position: relative; overflow: hidden; }
.ls-pic input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ls-site { grid-column: 1 / -1; font-size: 13px; background: var(--bg2); border: 1px solid var(--soft); padding: 8px 10px; overflow-wrap: anywhere; }
.ls-honest { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); border-top: 1px solid var(--soft); padding-top: 8px; }
.ls-honest p { margin: 4px 0; }
.ls-msg { grid-column: 1 / -1; font-size: 14px; min-height: 1em; }
.ls-msg.err { color: var(--red-dk); font-weight: 600; }
.ls-steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ls-steps li { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--ink3); }
.ls-steps li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.ls-steps li[data-s="on"] { color: var(--ink); } .ls-steps li[data-s="on"] i { border-color: var(--link); border-top-color: transparent; animation: spin .8s linear infinite; }
.ls-steps li[data-s="done"] { color: var(--green); } .ls-steps li[data-s="done"] i { background: var(--green); border-color: var(--green); }
.ls-steps li[data-s="err"] { color: var(--red-dk); } .ls-steps li[data-s="err"] i { background: var(--red-dk); border-color: var(--red-dk); }
.ls-steps small { margin-left: auto; color: var(--ink3); }
@keyframes spin { to { transform: rotate(360deg); } }
.ls-go { grid-column: 1 / -1; }
.ls-done { padding: 14px 0; }
.ls-done .ambox { animation: none; }
.ls-links { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
html.ls-open { overflow: hidden; }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  body { font-size: 15px; }
  .top { padding: 8px 18px; }
  .search { max-width: 560px; margin: 12px auto 4px; }
  .sitenotice { max-width: 1176px; margin: 10px auto; }
  .welcome h1 { font-size: 30px; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
  main#home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
  main#home > .welcome, main#home > .spot, main#home > .cols, main#home > .about { grid-column: 1 / -1; }
  main#home > .rc { grid-column: 1; grid-row: 3 / span 2; }
  main#home > .self { grid-column: 2; }
  .rclist li { grid-template-columns: 52px auto 1fr; }
  .art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 24px; }
  .art > * { grid-column: 1; }
  .art > .infobox { grid-column: 2; grid-row: 3 / span 8; align-self: start; }
  .art > h1, .art > .from, .art > .tabs { grid-column: 1 / -1; }
  .ls-wrap { align-items: center; }
  .ls { border: 1px solid var(--line); border-top-width: 4px; }
}

/* ---------- livestream: ?stream=1 ---------- */
body.stream { padding-bottom: 64px; font-size: 17px; }
body.stream .search, body.stream .menu, body.stream .sitenotice, body.stream .cols, body.stream .about, body.stream .foot, body.stream #menuBtn, body.stream .welcome .cta, body.stream .legend { display: none !important; }
body.stream main#home { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 16px; max-width: none; padding: 0 16px; }
body.stream .welcome { grid-column: 1 / -1; padding: 8px; }
body.stream .welcome h1 { font-size: 28px; display: inline; } body.stream .welcome p { display: inline; }
body.stream .welcome .count { display: block; font-size: 15px; }
body.stream .spot { grid-column: 2; grid-row: 2; }
body.stream .rc { grid-column: 1; grid-row: 2 / span 2; }
body.stream .self { grid-column: 2; grid-row: 3; }
body.stream .rclist li { font-size: 17px; padding: 7px 12px; }
body.stream .ambox h3 { font-size: 20px; } body.stream .ambox p { font-size: 17px; } body.stream .ambox .pic { width: 96px; height: 96px; }
@media (max-width: 759px) { body.stream main#home { grid-template-columns: 1fr; } body.stream .spot, body.stream .rc, body.stream .self { grid-column: 1; grid-row: auto; } }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
