/* Listwa: shared mobile identity, adapted to a spacious web reading experience. */
:root { --bg:#faf7f0; --surface:#fffdf9; --text:#071c37; --text2:#566276; --text3:#778194; --navy:#071c37; --navy-dk:#041326; --red:#bd272b; --border:#e5e2db; --border-lt:#eeebe5; --header-h:80px; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#121923; --surface:#1a2432; --text:#f6f1e7; --text2:#c2c9d4; --text3:#97a4b8; --navy:#e8eef8; --navy-dk:#071c37; --navy-lt:#27364b; --border:#344052; --border-lt:#293545; --red:#ff8587; --red-lt:#42272e; }
#hdr { background:var(--bg); border-bottom:1px solid var(--border); box-shadow:none; gap:20px; padding:0 max(24px,calc((100vw - 1280px)/2)); }
.hdr-logo { cursor:pointer; display:flex; }
.logo-title { color:var(--text); font-size:32.5px; letter-spacing:-1.2px; }
.logo-sub { display:none; }
.hdr-nav { margin-left:20px; gap:6px; }
.nav-tab { color:var(--text2); font-weight:500; padding:0 13px; }
.nav-tab:hover,.nav-tab.active { background:var(--navy-lt); color:var(--text); }
#search-wrap { background:var(--surface); color:var(--text2); border:1px solid var(--border); min-width:130px; }
#search-bar { color:var(--text); }
#search-bar::placeholder { color:var(--text3); }
.hdr-right { gap:6px; }
#lang-toggle,#theme-toggle { border:0; background:transparent; color:var(--text); min-width:44px; height:44px; border-radius:8px; cursor:pointer; }
#theme-toggle { font-size:23px; line-height:1; }
#lang-toggle.ht { background:transparent; color:var(--text); }
button:focus-visible,a:focus-visible { outline:3px solid var(--red); outline-offset:4px; }
body.web-reading { height:auto; min-height:100vh; overflow:auto; }
body.web-reading #period-overview,body.web-reading #tl-card,body.web-reading #bottom-bar,body.web-reading #filters-sidebar,body.web-reading #related-sidebar,body.web-reading #filters-toggle,body.web-reading #filters-backdrop { display:none!important; }
body.web-reading #content-row { display:block; width:100%; max-width:1240px; margin:0 auto; padding:30px 28px 70px; flex:none; min-height:0; }
body.web-reading #detail-main { display:block; width:100%; max-width:none; padding:0; background:transparent; border:0; overflow:visible; }
.lw-period-wrap { display:flex; align-items:center; gap:10px; margin-bottom:38px; }
.lw-periods { display:flex; overflow-x:auto; scrollbar-width:thin; gap:10px; padding:4px 2px 10px; flex:1; }
.lw-period { flex:0 0 auto; text-align:left; border:1px solid var(--border); border-radius:12px; padding:11px 18px; background:var(--surface); color:var(--text2); cursor:pointer; }
.lw-period strong { display:block; font-size:12px; font-weight:600; }
.lw-period small { display:block; margin-top:5px; font-size:11px; }
.lw-period[aria-pressed="true"] { background:var(--text); color:var(--bg); border-color:var(--text); }
.lw-scroll { border:1px solid var(--border); border-radius:50%; width:34px; height:34px; flex-shrink:0; background:var(--surface); color:var(--text); font-size:23px; cursor:pointer; }
.lw-eyebrow { text-transform:uppercase; letter-spacing:1.8px; color:var(--red); font-size:11px; font-weight:600; }
.lw-title { font-family:var(--heading); font-size:clamp(30px,4vw,46px); line-height:1.2; font-weight:600; letter-spacing:-1px; margin:10px 0 22px; }
.lw-explore { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:32px; }
.lw-explore button { display:flex; gap:14px; align-items:center; text-align:left; background:var(--surface); border:1px solid var(--border); border-radius:13px; padding:19px 22px; color:var(--text); cursor:pointer; font:inherit; }
.lw-explore b { display:block; font-size:14px; font-weight:600; }
.lw-explore small { color:var(--text3); display:block; margin-top:4px; font-size:11px; }
.lw-symbol { font-size:26px; color:var(--red); }
.lw-symbol svg { display:block; width:25px; height:25px; }
.lw-feature { display:grid; grid-template-columns:1.2fr 1fr; background:var(--surface); border:1px solid var(--border); border-radius:18px; overflow:hidden; }
.lw-feature-image { display:block; width:100%; height:100%; min-height:310px; object-fit:cover; background:var(--border-lt); }
.lw-feature-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:34px; }
.lw-feature h2 { font-family:var(--heading); font-size:clamp(24px,2.8vw,34px); font-weight:600; line-height:1.25; margin:13px 0; }
.lw-feature p { font-size:14px; color:var(--text2); line-height:1.8; margin-bottom:20px; }
.lw-date { color:var(--red); font-size:12px; font-weight:600; }
.lw-action { background:var(--text); color:var(--bg); border:0; border-radius:8px; padding:13px 20px; font:inherit; font-size:13px; cursor:pointer; text-decoration:none; }
.lw-section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:36px 0 16px; }
.lw-section-heading h2 { font-family:var(--heading); font-size:23px; font-weight:600; }
.lw-text-btn { border:0; background:none; color:var(--text); font:inherit; font-size:13px; cursor:pointer; padding:10px 0; text-decoration:underline; text-underline-offset:4px; }
.lw-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lw-event { display:flex; align-items:center; gap:16px; border:1px solid var(--border); background:var(--surface); border-radius:12px; padding:17px; color:var(--text); text-align:left; cursor:pointer; width:100%; font:inherit; }
.lw-event:hover,.lw-explore button:hover { border-color:var(--text3); }
.lw-rail { display:flex; flex-direction:column; flex-shrink:0; width:64px; text-align:center; border-right:1px solid var(--border); padding-right:13px; }
.lw-rail b { font-size:19px; font-family:var(--heading); }
.lw-rail small { font-size:11px; margin-top:5px; color:var(--text2); min-height:14px; }
.lw-event-copy { flex:1; min-width:0; }
.lw-event-copy strong { display:block; font-family:var(--heading); font-size:16px; line-height:1.4; font-weight:600; }
.lw-event-copy span { display:block; font-size:11px; color:var(--text3); margin-top:6px; }
.lw-thumb { width:64px; height:64px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.lw-status { padding:45px 20px; text-align:center; color:var(--text2); line-height:1.8; }
.lw-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 20px; }
.lw-toolbar select { padding:10px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); }
.lw-toolbar label { font-size:12px; color:var(--text2); }
.lw-toolbar span { margin-left:auto; font-size:12px; color:var(--text3); }
.lw-reader { max-width:880px; margin:auto; background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.lw-reader .det-media img { max-height:470px; object-fit:contain; background:var(--bg); }
.lw-reader .det-media figcaption { font-size:11px; }
.lw-reader .det-title { font-size:clamp(27px,4vw,40px); line-height:1.25; }
.lw-reader .det-text { font-size:16px; line-height:1.9; }
.lw-reader .det-hero,.lw-reader .det-body { padding:28px 36px; }
.lw-reader .det-type-era { display:none; }
.lw-reader .det-section { margin-bottom:26px; }
.lw-reader .det-person-pill { height:auto!important; min-height:40px; font-size:13px!important; }
.lw-reader .det-person-avatar { width:30px; height:30px; }
.lw-back { margin-bottom:18px; }
.lw-footer { margin-top:42px; padding-top:20px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--text3); }
.lw-footer img { width:28px; height:28px; border-radius:6px; }
.lw-footer a { color:var(--text2); }
body.view-persons #hdr,body.view-about #hdr { position:sticky; }
@media(max-width:1000px) { #hdr { padding:0 20px; gap:12px; flex-wrap:wrap; height:auto; min-height:80px; } .hdr-nav { margin-left:0; } #search-wrap { flex:1; max-width:none; } .nav-tab { padding:0 10px; } }
@media(max-width:720px) {
 #hdr { padding:14px 16px 0; gap:12px; } .hdr-logo { order:0; flex:1; display:flex; } .logo-title { font-size:32.5px; } .hdr-right { order:1; margin-left:0; } #search-wrap { order:2; flex-basis:100%; margin:0; height:40px; } .hdr-nav { order:3; width:100%; justify-content:space-between; margin:0; padding:2px 0 8px; overflow-x:auto; flex-shrink:0; } .nav-tab { flex:1; min-width:0; padding:0 6px; height:36px; font-size:11px; }
 body.web-reading #content-row,body.view-persons #content-row,body.view-about #content-row { padding:20px 16px 48px; }
 .lw-period-wrap { gap:5px; margin-bottom:25px; } .lw-period { padding:10px 13px; } .lw-scroll { width:27px; height:30px; font-size:20px; }
 .lw-title { margin-bottom:18px; } .lw-explore { gap:8px; margin-bottom:24px; } .lw-explore button { flex-direction:column; align-items:flex-start; gap:10px; padding:15px 12px; } .lw-explore small { display:none; }
 .lw-feature { grid-template-columns:1fr; } .lw-feature-image { height:220px; min-height:0; } .lw-feature-copy { padding:24px; } .lw-feature h2 { font-size:27px; } .lw-list { grid-template-columns:1fr; } .lw-event { padding:14px 12px; gap:12px; } .lw-rail { width:57px; } .lw-reader .det-hero,.lw-reader .det-body { padding:22px; } .lw-reader .det-media img { height:auto; } .lw-toolbar span { width:100%; margin-left:0; }
}
