:root{--text:#232323;--muted:#777;--line:#e8e8e8;--soft:#f7f7f7;--link:#222}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.8}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}img{display:block;max-width:100%;height:auto}.wrap{width:min(1100px,92%);margin:0 auto}.wrap-reader{width:min(790px,92%);margin:0 auto}
.site-header{position:relative;z-index:1000;border-bottom:1px solid #e7eaf0;background:#fff}.header-inner{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{position:relative;z-index:1002;font-size:23px;line-height:1;font-weight:800;letter-spacing:-.035em;color:#07162f;margin-right:auto;text-decoration:none}.brand:hover{text-decoration:none}.menu-toggle{position:relative;z-index:1002;display:inline-flex;align-items:center;gap:11px;border:0;background:transparent;color:#07162f;font:inherit;font-size:15px;font-weight:700;cursor:pointer;padding:10px 0}.menu-toggle:hover{text-decoration:none}.menu-toggle-icon{position:relative;display:block;width:19px;height:14px}.menu-toggle-icon span{position:absolute;left:0;width:19px;height:2px;border-radius:2px;background:currentColor;transition:transform .22s ease,top .22s ease}.menu-toggle-icon span:first-child{top:3px}.menu-toggle-icon span:last-child{top:9px}.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child{top:6px;transform:rotate(45deg)}.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child{top:6px;transform:rotate(-45deg)}.main-nav{position:absolute;left:0;right:0;top:100%;z-index:1001;background:#fff;border-bottom:1px solid #e7eaf0;box-shadow:0 18px 38px rgba(7,22,47,.08);opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}.main-nav.open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.main-nav-inner{padding-top:24px;padding-bottom:28px}.main-nav ul{display:flex;align-items:center;justify-content:flex-end;gap:34px;list-style:none;margin:0;padding:0}.main-nav li{margin:0;padding:0}.main-nav li a{position:relative;display:block;padding:5px 0;color:#07162f;font-size:15px;line-height:1.45;font-weight:600;text-decoration:none}.main-nav li a:after{content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;background:#07162f;transition:right .2s ease}.main-nav li a:hover:after,.main-nav .current-menu-item>a:after,.main-nav .current_page_item>a:after{right:0}.menu-backdrop{position:fixed;inset:0;z-index:999;border:0;background:rgba(7,22,47,.12);cursor:default}.menu-backdrop[hidden]{display:none}.site-header.menu-open .header-inner{background:#fff}.site-main{min-height:70vh}.site-footer{border-top:1px solid var(--line);margin-top:60px;padding:28px 0;color:var(--muted);font-size:13px}
.breadcrumb{padding-top:30px;color:#7b7b7b;font-size:13px;display:flex;gap:7px;flex-wrap:wrap}.breadcrumb a{color:#666}.chapter-header{padding:10px 0 20px}.chapter-header h1,.story-intro-header h1{font-size:30px;line-height:1.28;margin:0;font-weight:700}.chapter-image{margin:0 0 26px}.chapter-image img{width:100%;max-height:520px;object-fit:cover}.chapter-content{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:2;color:#292929}.chapter-content p{margin:0 0 1.45em}.chapter-content h2,.chapter-content h3{font-family:Arial,Helvetica,sans-serif;line-height:1.35}.chapter-content blockquote{margin:1.5em 0;padding-left:18px;border-left:3px solid #ddd;color:#555}
.chapter-nav{margin-top:32px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:18px}.chapter-link{font-weight:700}.chapter-link.next{margin-left:auto}.toc{padding:32px 0}.toc-title-row{display:flex;align-items:baseline;gap:10px}.toc-title-row h2{margin:0;font-size:24px}.toc-title-row span{color:var(--muted)}.toc-story-title{display:inline-block;margin-top:20px;font-size:17px;font-weight:700}.toc-count{margin:2px 0 15px;color:var(--muted);font-size:13px}.chapter-search{width:100%;border:1px solid #ddd;border-radius:3px;padding:11px 12px;font:inherit;margin:4px 0 12px}.chapter-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}.chapter-list li{margin:0}.chapter-list a{display:flex;gap:9px;padding:10px 5px;border-bottom:1px solid var(--line);line-height:1.5}.chapter-list a.current{font-weight:700;background:var(--soft)}.chapter-index{color:#888;min-width:26px}.story-intro{padding-bottom:10px}.story-intro-header{padding:10px 0 22px}.story-copy{margin-bottom:24px}.read-first{display:inline-block;font-weight:700;padding:10px 15px;border:1px solid #333}
.hero,.section,.story-grid,.story-detail,.search-item{width:min(1000px,92%);margin:0 auto}.hero{padding:55px 0 28px}.hero h1{font-size:40px;margin:0 0 8px}.hero p{color:var(--muted)}.section{padding:24px 0}.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.story-card{border-bottom:1px solid var(--line);padding-bottom:18px}.cover{aspect-ratio:3/4;background:#f3f3f3}.cover img{width:100%;height:100%;object-fit:cover}.story-card-body{padding-top:10px}.story-card h2,.story-card h3{font-size:18px;line-height:1.4;margin:0 0 5px}.story-card p{margin:0;color:var(--muted);font-size:13px}
@media(max-width:700px){body{font-size:14px}.header-inner{min-height:62px;width:min(100% - 32px,1100px)}.brand{font-size:21px}.menu-toggle{font-size:14px;gap:9px}.main-nav-inner{width:min(100% - 32px,1100px);padding-top:12px;padding-bottom:18px}.main-nav ul{display:block}.main-nav li{border-bottom:1px solid #edf0f4}.main-nav li:last-child{border-bottom:0}.main-nav li a{padding:14px 0;font-size:16px;font-weight:700}.main-nav li a:after{display:none}.breadcrumb{padding-top:22px}.chapter-header h1,.story-intro-header h1{font-size:25px}.chapter-content{font-size:17px;line-height:1.9}.chapter-image{margin-bottom:20px}.chapter-nav{margin-top:24px}.toc{padding-top:26px}.story-grid{grid-template-columns:1fr 1fr;gap:14px}.hero h1{font-size:32px}}

/* Long-form chapter reading */
.chapter-content{font-size:18px;line-height:1.9;overflow-wrap:anywhere}
.chapter-content p{margin:0 0 1.35em}
.chapter-content img{max-width:100%;height:auto;margin:1.5rem auto;display:block}
.chapter-content h2,.chapter-content h3{line-height:1.35;margin:1.8em 0 .7em}
@media (max-width:700px){.chapter-content{font-size:17px;line-height:1.85}}

/* Standard WordPress posts: full-story singular view */
.single-post-reader{padding-bottom:10px}
.single-post-reader .chapter-header{padding-bottom:22px}
.single-post-reader .chapter-content .more-link{display:none}
.page-links{margin:28px 0;font-family:Arial,Helvetica,sans-serif;font-weight:700}
.post-nav>div{max-width:48%}
.post-nav .next{text-align:right;margin-left:auto}

/* v1.5 Homepage: 20 WordPress posts with thumbnail + title + 100-word summary */
.home-posts{width:min(880px,92%);padding:32px 0 10px}
.home-posts-header{padding:4px 0 20px;border-bottom:1px solid var(--line)}
.home-posts-header h1{margin:0;font-size:30px;line-height:1.25}
.home-post-list{display:flex;flex-direction:column}
.home-post-card{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;padding:24px 0;border-bottom:1px solid var(--line)}
.home-post-thumb{display:block;aspect-ratio:16/10;background:#f3f3f3;overflow:hidden}
.home-post-thumb:hover{text-decoration:none}
.home-post-thumb img{width:100%;height:100%;object-fit:cover}
.home-post-no-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#999;font-size:13px}
.home-post-body{min-width:0}
.home-post-title{font-size:22px;line-height:1.35;margin:0 0 10px;font-weight:700}
.home-post-summary{margin:0;color:#555;font-size:15px;line-height:1.75}
.home-pagination{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;padding:30px 0}
.home-pagination .page-numbers{border:1px solid var(--line);padding:7px 12px;min-width:38px;text-align:center}
.home-pagination .page-numbers.current{background:#222;color:#fff;border-color:#222}
@media(max-width:700px){.home-posts{padding-top:22px}.home-posts-header h1{font-size:25px}.home-post-card{grid-template-columns:110px minmax(0,1fr);gap:14px;padding:18px 0}.home-post-thumb{aspect-ratio:4/3}.home-post-title{font-size:18px;margin-bottom:7px}.home-post-summary{font-size:13px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}}

/* v1.7: simpler chapter numbering */
.chapter-kicker{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6b7280;margin-bottom:8px}
.chapter-list a.current{font-weight:700;background:#f7f7f8}

/* v1.8: fixed quick chapter picker */
.floating-chapters{position:fixed;right:14px;top:50%;transform:translateY(-50%);z-index:80;font-family:Arial,Helvetica,sans-serif}
.floating-chapters-toggle{display:flex;align-items:center;gap:6px;border:1px solid #dedede;background:#fff;color:#222;border-radius:999px;padding:9px 12px;box-shadow:0 4px 18px rgba(0,0,0,.10);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.floating-chapters-toggle:hover{background:#f7f7f7}
.floating-chapters-icon{font-size:15px;line-height:1}.floating-chapters-label{white-space:nowrap}
.floating-chapters-panel{position:absolute;right:0;top:50%;transform:translateY(-50%);width:min(320px,calc(100vw - 30px));max-height:min(70vh,560px);overflow:hidden;background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.16)}
.floating-chapters-head{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:12px 12px;border-bottom:1px solid var(--line)}
.floating-chapters-head span{color:var(--muted);font-size:12px}.floating-chapters-close{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;padding:2px 4px;color:#555}
.floating-chapters-search{width:calc(100% - 20px);margin:10px;border:1px solid #ddd;border-radius:6px;padding:9px 10px;font:inherit;font-size:14px}
.floating-chapters-list{max-height:430px;overflow:auto;border-top:1px solid #f1f1f1}
.floating-chapters-list a{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:9px 12px;border-bottom:1px solid #f1f1f1;font-size:13px;line-height:1.45}
.floating-chapters-list a span:first-child{color:#888}.floating-chapters-list a.current{background:#f4f4f4;font-weight:700}
.floating-chapters-list a:hover{text-decoration:none;background:#f8f8f8}
.floating-chapters.is-open .floating-chapters-toggle{visibility:hidden}
@media(max-width:700px){.floating-chapters{right:8px}.floating-chapters-toggle{padding:9px;width:42px;height:42px;justify-content:center}.floating-chapters-label{display:none}.floating-chapters-panel{right:0;width:min(300px,calc(100vw - 18px));max-height:68vh}.floating-chapters-list{max-height:50vh}}

/* v1.9: mobile/iPad chapter drawer inspired by a compact TOC sheet */
body.floating-chapters-open{overflow:hidden}
.floating-chapters{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:999;font-family:Arial,Helvetica,sans-serif}
.floating-chapters-toggle{display:flex;align-items:center;gap:8px;min-height:44px;border:0;background:#3156ee;color:#fff;border-radius:24px 0 0 24px;padding:10px 13px 10px 14px;box-shadow:0 5px 18px rgba(33,58,190,.28);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.floating-chapters-toggle:hover{background:#2949cf}
.floating-chapters-icon{font-size:16px;line-height:1}.floating-chapters-label{white-space:nowrap}
.floating-chapters-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:998}
.floating-chapters-panel{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:min(380px,calc(100vw - 34px));max-height:min(78vh,680px);overflow:hidden;background:#fff;border:1px solid #ddd;border-radius:12px;box-shadow:0 18px 48px rgba(0,0,0,.20);z-index:999}
.floating-chapters-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:17px 18px 12px;border-bottom:0}
.floating-chapters-heading{min-width:0}.floating-chapters-heading strong{display:block;font-size:17px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floating-chapters-heading span{display:block;margin-top:5px;color:#777;font-size:13px}
.floating-chapters-close{border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;padding:0 2px;color:#777}
.floating-chapters-search-wrap{padding:8px 18px 14px}.floating-chapters-search{width:100%;margin:0;border:1px solid #ddd;border-radius:6px;padding:11px 12px;font:inherit;font-size:14px;box-sizing:border-box}
.floating-chapters-list{display:grid;grid-template-columns:1fr 1fr;gap:7px 8px;max-height:480px;overflow:auto;padding:0 18px 18px;border-top:0}
.floating-chapters-list a{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px;align-items:center;padding:10px 9px;border:1px solid #e5e5e5;border-radius:5px;background:#f8f8f8;font-size:12px;line-height:1.3;min-width:0}
.floating-chapters-list a span:first-child{color:#666;font-weight:700}.floating-chapters-list a span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floating-chapters-list a.current{background:#eef2ff;border-color:#3156ee;color:#1f3fc8;font-weight:700}.floating-chapters-list a:hover{text-decoration:none;background:#f1f3f8}
.floating-chapters.is-open .floating-chapters-toggle{visibility:hidden}

@media(max-width:1024px){
  .floating-chapters{right:0}
  .floating-chapters-toggle{min-width:72px;justify-content:center}
  .floating-chapters-panel{position:fixed;left:14px;right:14px;top:50%;transform:translateY(-50%);width:auto;max-height:calc(100% - 28px);border-radius:5px}
  .floating-chapters-head{padding:22px 20px 12px}
  .floating-chapters-heading strong{font-size:18px}
  .floating-chapters-search-wrap{padding:8px 20px 14px}
  .floating-chapters-list{max-height:calc(100vh - 190px);padding:0 20px 20px;gap:8px}
  .floating-chapters-list a{padding:11px 9px;font-size:12px}
}
@media(max-width:520px){
  .floating-chapters-toggle{min-width:68px;padding:9px 10px 9px 12px}
  .floating-chapters-panel{left:12px;right:12px;max-height:calc(100% - 24px)}
  .floating-chapters-head{padding:18px 16px 9px}.floating-chapters-heading strong{font-size:16px}.floating-chapters-heading span{font-size:12px}
  .floating-chapters-search-wrap{padding:7px 16px 12px}
  .floating-chapters-list{padding:0 16px 16px;max-height:calc(100vh - 168px);gap:6px}
  .floating-chapters-list a{grid-template-columns:25px minmax(0,1fr);padding:9px 7px;font-size:11px}
}

/* v2.0: desktop chapter modal centered like FreshStory */
@media (min-width: 901px){
  .floating-chapters-panel{
    position:fixed;
    left:50%;
    right:auto;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(620px,calc(100vw - 80px));
    max-height:min(76vh,720px);
    border-radius:10px;
    box-shadow:0 22px 70px rgba(0,0,0,.28);
  }
  .floating-chapters-head{padding:20px 22px 12px}
  .floating-chapters-heading strong{font-size:18px}
  .floating-chapters-search-wrap{padding:8px 22px 15px}
  .floating-chapters-list{
    grid-template-columns:1fr 1fr;
    gap:8px 10px;
    max-height:500px;
    padding:0 22px 22px;
  }
  .floating-chapters-list a{
    padding:11px 10px;
    font-size:12px;
    border-radius:4px;
  }
}

/* v2.1: minimal Recent Stories homepage */
.home-recent-stories{width:min(1280px,92%);padding:46px 0 50px}
.recent-stories-header{text-align:center;padding:0 0 48px}
.recent-stories-header h1{margin:0 0 14px;font-size:42px;line-height:1.15;font-weight:800;letter-spacing:-.025em;color:#0b1830}
.recent-stories-header p{margin:0;color:#4f6078;font-size:18px;line-height:1.6}
.recent-stories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.recent-story-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e6e8ec;border-radius:14px;background:#fff}
.recent-story-thumb{display:block;width:100%;aspect-ratio:16/6.5;background:#f3f4f6;overflow:hidden}
.recent-story-thumb:hover{text-decoration:none}
.recent-story-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.recent-story-card:hover .recent-story-thumb img{transform:scale(1.02)}
.recent-story-no-image{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:#8b94a3;font-size:13px}
.recent-story-body{display:flex;flex:1;flex-direction:column;padding:24px 24px 25px;min-height:285px}
.recent-story-date{display:block;margin-bottom:14px;color:#496485;font-size:14px;line-height:1.3}
.recent-story-title{margin:0;font-size:30px;line-height:1.32;font-weight:800;letter-spacing:-.02em;color:#07162f}
.recent-story-title a{color:inherit;text-decoration:none}
.recent-story-title a:hover{text-decoration:none;color:#3156ee}
.recent-story-read{display:inline-block;margin-top:auto;padding-top:28px;color:#3156ee;font-size:15px;font-weight:700;text-decoration:none}
.recent-story-read:hover{text-decoration:underline}
.home-recent-stories .home-pagination{padding-top:40px}
@media(max-width:1100px){
  .recent-stories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .recent-story-title{font-size:25px}
  .recent-story-body{min-height:250px}
}
@media(max-width:700px){
  .home-recent-stories{width:min(94%,620px);padding:30px 0 38px}
  .recent-stories-header{padding-bottom:28px}
  .recent-stories-header h1{font-size:32px;margin-bottom:10px}
  .recent-stories-header p{font-size:15px}
  .recent-stories-grid{grid-template-columns:1fr;gap:20px}
  .recent-story-thumb{aspect-ratio:16/8}
  .recent-story-body{min-height:0;padding:18px 18px 20px}
  .recent-story-date{font-size:13px;margin-bottom:10px}
  .recent-story-title{font-size:23px;line-height:1.35}
  .recent-story-read{margin-top:22px;padding-top:0}
}


/* v2.2: desktop floating chapter tab fixed flush-right and vertically centered */
@media (min-width: 901px){
  .floating-chapters{
    position:fixed !important;
    right:0 !important;
    left:auto !important;
    top:50vh !important;
    transform:translateY(-50%) !important;
    z-index:9999;
    pointer-events:none;
  }
  .floating-chapters-toggle,
  .floating-chapters-panel,
  .floating-chapters-backdrop{
    pointer-events:auto;
  }
  .floating-chapters-toggle{
    min-width:0;
    height:54px;
    padding:0 16px 0 14px;
    border-radius:28px 0 0 28px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    box-shadow:0 8px 24px rgba(33,58,190,.30);
  }
  .floating-chapters-icon{font-size:16px}
  .floating-chapters-label{font-size:14px;line-height:1;white-space:nowrap}
  .floating-chapters.is-open .floating-chapters-toggle{visibility:visible;opacity:.22}
  .floating-chapters.is-open .floating-chapters-toggle:hover{opacity:.4}
}
@media (max-width: 900px){
  .floating-chapters{
    right:0 !important;
    top:50vh !important;
    transform:translateY(-50%) !important;
    z-index:9999;
  }
}


/* v2.3: homepage simplified to cards only, matching the supplied reference */
.home-simple-grid{
  width:min(1280px,92%);
  padding:250px 0 54px;
}
.home-simple-grid .recent-stories-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px;
}
.home-simple-grid .recent-story-card{
  border-radius:14px;
  overflow:hidden;
}
.home-simple-grid .recent-story-thumb{
  aspect-ratio:2.48/1;
}
.home-simple-grid .recent-story-body{
  min-height:330px;
  padding:25px 24px 26px;
}
.home-simple-grid .recent-story-title{
  font-size:30px;
  line-height:1.34;
}
.home-simple-grid .home-pagination{padding-top:42px}
@media(max-width:1100px){
  .home-simple-grid{padding-top:150px}
  .home-simple-grid .recent-stories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .home-simple-grid .recent-story-body{min-height:250px}
  .home-simple-grid .recent-story-title{font-size:25px}
}
@media(max-width:700px){
  .home-simple-grid{width:min(94%,620px);padding:48px 0 38px}
  .home-simple-grid .recent-stories-grid{grid-template-columns:1fr;gap:20px}
  .home-simple-grid .recent-story-thumb{aspect-ratio:16/8}
  .home-simple-grid .recent-story-body{min-height:0;padding:18px 18px 20px}
  .home-simple-grid .recent-story-title{font-size:23px;line-height:1.35}
}


/* v2.4: keep current/total chapter count visible on phones */
@media (max-width: 900px){
  .floating-chapters-toggle{
    width:auto !important;
    min-width:76px !important;
    height:44px !important;
    padding:0 12px 0 13px !important;
    gap:8px !important;
    border-radius:23px 0 0 23px !important;
  }
  .floating-chapters-label{
    display:inline-block !important;
    visibility:visible !important;
    opacity:1 !important;
    font-size:13px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  .floating-chapters-icon{
    display:inline-block !important;
    font-size:15px !important;
    line-height:1 !important;
  }
}
@media (max-width: 420px){
  .floating-chapters-toggle{
    min-width:70px !important;
    height:42px !important;
    padding:0 10px 0 11px !important;
    gap:6px !important;
  }
  .floating-chapters-label{font-size:12px !important;}
}


/* v2.5: mobile chapter list opens as bottom sheet */
.floating-chapters-sheet-handle{display:none}
@media (max-width: 1024px){
  .floating-chapters-panel{
    position:fixed !important;
    left:10px !important;
    right:10px !important;
    top:auto !important;
    bottom:10px !important;
    transform:none !important;
    width:auto !important;
    max-height:82vh !important;
    border-radius:18px !important;
    box-shadow:0 -8px 32px rgba(0,0,0,.18) !important;
    animation:story_reader_sheet_up .22s ease-out;
  }
  .floating-chapters-sheet-handle{
    display:block;
    width:46px;
    height:4px;
    border-radius:999px;
    background:#d8dde8;
    margin:12px auto 4px;
  }
  .floating-chapters-head{
    padding:10px 16px 10px !important;
  }
  .floating-chapters-heading strong{
    font-size:16px !important;
    line-height:1.35 !important;
  }
  .floating-chapters-heading span{
    font-size:12px !important;
    margin-top:3px !important;
  }
  .floating-chapters-close{
    font-size:28px !important;
    color:#9aa5b8 !important;
  }
  .floating-chapters-search-wrap{
    padding:6px 16px 12px !important;
  }
  .floating-chapters-search{
    height:44px;
    border-radius:22px !important;
    background:#f3f6fb;
    border:1px solid #edf1f7 !important;
    padding:0 14px !important;
  }
  .floating-chapters-list{
    grid-template-columns:1fr !important;
    gap:0 !important;
    max-height:calc(82vh - 138px) !important;
    padding:0 0 10px !important;
    overflow:auto !important;
  }
  .floating-chapters-list a{
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) !important;
    align-items:center;
    gap:8px !important;
    margin:0 !important;
    padding:14px 16px !important;
    border:0 !important;
    border-radius:0 !important;
    border-top:1px solid #eef1f5 !important;
    background:#fff !important;
    font-size:14px !important;
  }
  .floating-chapters-list a:first-child{
    border-top:0 !important;
  }
  .floating-chapters-list a span:first-child{
    width:28px;
    height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#f1f4f8;
    color:#3156ee;
    font-size:13px;
    font-weight:700;
  }
  .floating-chapters-list a span:last-child{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .floating-chapters-list a.current{
    background:#eef3ff !important;
    color:#3156ee !important;
    font-weight:700 !important;
  }
  .floating-chapters-list a.current span:first-child{
    background:#3156ee !important;
    color:#fff !important;
  }
}
@media (max-width: 520px){
  .floating-chapters-panel{
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
    max-height:84vh !important;
    border-radius:16px !important;
  }
  .floating-chapters-list{
    max-height:calc(84vh - 136px) !important;
  }
  .floating-chapters-toggle{
    min-width:74px !important;
    padding:9px 10px 9px 12px !important;
  }
  .floating-chapters-label{
    display:inline !important;
  }
}
@keyframes story_reader_sheet_up{
  from{transform:translateY(20px);opacity:.75}
  to{transform:translateY(0);opacity:1}
}


/* v2.6: mobile chapter sheet full-width with chapter number + title rows */
@media (max-width: 1024px){
  .floating-chapters-backdrop{background:rgba(25,33,52,.18) !important}
  .floating-chapters-panel{
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
    top:auto !important;
    width:auto !important;
    max-height:84vh !important;
    border:0 !important;
    border-radius:18px !important;
    overflow:hidden !important;
    box-shadow:0 10px 32px rgba(18,25,38,.18) !important;
  }
  .floating-chapters-sheet-handle{
    display:block !important;
    width:42px !important;
    height:4px !important;
    background:#d7dce6 !important;
    border-radius:999px !important;
    margin:11px auto 6px !important;
  }
  .floating-chapters-head{
    padding:6px 14px 8px !important;
    align-items:center !important;
  }
  .floating-chapters-heading strong{
    font-size:14px !important;
    font-weight:700 !important;
    color:#1c2433 !important;
  }
  .floating-chapters-heading span{
    font-size:12px !important;
    color:#8d97aa !important;
  }
  .floating-chapters-close{
    font-size:26px !important;
    color:#a0abc0 !important;
  }
  .floating-chapters-search-wrap{
    padding:8px 14px 12px !important;
  }
  .floating-chapters-search{
    height:44px !important;
    background:#f2f5fa !important;
    border:0 !important;
    border-radius:22px !important;
    box-shadow:none !important;
    color:#44506a !important;
    font-size:14px !important;
  }
  .floating-chapters-search::placeholder{color:#9aa6bb}
  .floating-chapters-list{
    grid-template-columns:1fr !important;
    gap:0 !important;
    padding:0 !important;
    max-height:calc(84vh - 130px) !important;
    overflow:auto !important;
    background:#fff !important;
  }
  .floating-chapters-list a{
    grid-template-columns:34px minmax(0,1fr) !important;
    gap:10px !important;
    padding:14px 14px !important;
    margin:0 !important;
    border:0 !important;
    border-top:1px solid #edf1f5 !important;
    border-radius:0 !important;
    background:#fff !important;
    font-size:13px !important;
    color:#273247 !important;
  }
  .floating-chapters-list a:hover{text-decoration:none;background:#f8fbff !important}
  .floating-chapters-list a span:first-child{
    width:28px !important;
    height:28px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:999px !important;
    background:#f1f4f9 !important;
    color:#4c63ff !important;
    font-size:13px !important;
    font-weight:700 !important;
  }
  .floating-chapters-list a span:last-child{
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:13px !important;
    line-height:1.35 !important;
  }
  .floating-chapters-list a.current{
    background:#eef3ff !important;
    color:#3552f4 !important;
    font-weight:700 !important;
  }
  .floating-chapters-list a.current span:first-child{
    background:#3552f4 !important;
    color:#fff !important;
  }
}
@media (max-width: 520px){
  .floating-chapters-panel{
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
    max-height:86vh !important;
  }
  .floating-chapters-list{max-height:calc(86vh - 130px) !important}
}


/* v2.7: true viewport mobile chapter sheet. Fix transformed ancestor issue. */
@media (max-width: 1024px){
  .floating-chapters{
    position:fixed !important;
    inset:0 !important;
    width:0 !important;
    height:0 !important;
    transform:none !important;
    z-index:99999 !important;
    pointer-events:none !important;
  }
  .floating-chapters-toggle{
    position:fixed !important;
    right:0 !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    z-index:100002 !important;
    pointer-events:auto !important;
  }
  .floating-chapters-backdrop{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100% !important;
    background:rgba(14,22,38,.26) !important;
    z-index:100000 !important;
    pointer-events:auto !important;
  }
  .floating-chapters-panel{
    position:fixed !important;
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
    top:auto !important;
    transform:none !important;
    width:auto !important;
    height:auto !important;
    max-height:min(86%,760px) !important;
    margin:0 !important;
    border:0 !important;
    border-radius:18px !important;
    background:#fff !important;
    overflow:hidden !important;
    z-index:100001 !important;
    box-shadow:0 18px 50px rgba(14,22,38,.24) !important;
    pointer-events:auto !important;
  }
  .floating-chapters.is-open .floating-chapters-toggle{
    visibility:hidden !important;
  }
  .floating-chapters-sheet-handle{
    display:block !important;
    width:40px !important;
    height:4px !important;
    margin:11px auto 6px !important;
    border-radius:999px !important;
    background:#d9dee8 !important;
  }
  .floating-chapters-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 34px !important;
    gap:8px !important;
    align-items:center !important;
    padding:6px 14px 7px !important;
  }
  .floating-chapters-heading{min-width:0 !important}
  .floating-chapters-heading strong{
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:14px !important;
    line-height:1.35 !important;
    font-weight:700 !important;
    color:#172033 !important;
  }
  .floating-chapters-heading span{
    display:block !important;
    margin-top:2px !important;
    font-size:12px !important;
    color:#8b97ad !important;
  }
  .floating-chapters-close{
    width:34px !important;
    height:34px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    background:transparent !important;
    color:#9aa6bb !important;
    font-size:25px !important;
  }
  .floating-chapters-search-wrap{padding:7px 14px 10px !important}
  .floating-chapters-search{
    display:block !important;
    width:100% !important;
    height:44px !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 14px !important;
    border:0 !important;
    border-radius:24px !important;
    outline:none !important;
    background:#f2f5fa !important;
    color:#34415a !important;
    font-size:14px !important;
    box-shadow:none !important;
  }
  .floating-chapters-list{
    display:block !important;
    width:100% !important;
    max-height:calc(86vh - 128px) !important;
    padding:0 !important;
    margin:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    background:#fff !important;
  }
  .floating-chapters-list a{
    display:grid !important;
    grid-template-columns:34px minmax(0,1fr) !important;
    gap:10px !important;
    align-items:center !important;
    width:100% !important;
    box-sizing:border-box !important;
    min-height:56px !important;
    margin:0 !important;
    padding:11px 14px !important;
    border:0 !important;
    border-top:1px solid #edf0f5 !important;
    border-radius:0 !important;
    background:#fff !important;
    color:#293449 !important;
    text-decoration:none !important;
  }
  .floating-chapters-list a span:first-child{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:28px !important;
    height:28px !important;
    border-radius:50% !important;
    background:#f1f4f9 !important;
    color:#3156ee !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1 !important;
  }
  .floating-chapters-list a span:last-child{
    display:block !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:13px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
  }
  .floating-chapters-list a.current{
    background:#edf3ff !important;
    color:#3156ee !important;
  }
  .floating-chapters-list a.current span:first-child{
    background:#3156ee !important;
    color:#fff !important;
  }
  .floating-chapters-list a.current span:last-child{font-weight:700 !important}
}
@media (max-width: 520px){
  .floating-chapters-panel{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    max-height:88% !important;
    border-radius:18px 18px 0 0 !important;
  }
  .floating-chapters-list{max-height:calc(88vh - 128px) !important}
}

/* v3.0.3: two related stories near the end of each reading page */
.story-reader-related{
  margin:42px 0 8px;
  font-family:Arial,Helvetica,sans-serif;
}
.story-reader-related-title{
  margin:0 0 16px;
  color:#07162f;
  font-size:25px;
  line-height:1.25;
  font-weight:800;
}
.story-reader-related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.story-reader-related-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #dfe4eb;
  border-radius:24px;
  background:#fff;
}
.story-reader-related-link{
  display:block;
  color:#07162f;
  text-decoration:none;
}
.story-reader-related-link:hover{text-decoration:none}
.story-reader-related-image{
  width:100%;
  height:208px;
  overflow:hidden;
  background:#f3f5f8;
}
.story-reader-related-image img{
  width:100%;
  height:100%;
  margin:0;
  object-fit:cover;
  transition:transform .22s ease;
}
.story-reader-related-link:hover .story-reader-related-image img{transform:scale(1.025)}
.story-reader-related-placeholder{display:block;width:100%;height:100%;background:#f3f5f8}
.story-reader-related-card h3{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:66px;
  margin:0;
  padding:12px 12px 17px;
  color:#07162f;
  font-size:18px;
  line-height:1.35;
  font-weight:500;
}
.story-reader-related-link:hover h3{color:#3156ee}
@media(max-width:700px){
  .story-reader-related{margin-top:34px}
  .story-reader-related-title{font-size:23px;margin-bottom:14px}
  .story-reader-related-grid{gap:12px}
  .story-reader-related-card{border-radius:18px}
  .story-reader-related-image{height:145px}
  .story-reader-related-card h3{min-height:59px;padding:10px 10px 13px;font-size:15px;line-height:1.3}
}
@media(max-width:430px){
  .story-reader-related-grid{grid-template-columns:1fr}
  .story-reader-related-image{height:190px}
  .story-reader-related-card h3{min-height:0;font-size:16px}
}


/* v3.0.9: header search button and expandable search bar */
.header-actions{position:relative;z-index:1002;display:flex;align-items:center;gap:24px}
.header-search-toggle{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#07162f;font:inherit;font-size:15px;font-weight:700;cursor:pointer;padding:10px 0}
.header-search-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.header-search-toggle:hover{color:#3156ee}
.header-search{position:absolute;left:0;right:0;top:100%;z-index:1001;background:#fff;border-bottom:1px solid #e7eaf0;box-shadow:0 18px 38px rgba(7,22,47,.08);opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.header-search.open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.header-search-inner{padding-top:18px;padding-bottom:20px}
.header-search-form{display:flex;align-items:stretch;gap:10px;max-width:720px;margin-left:auto}
.header-search-input{min-width:0;flex:1;height:46px;border:1px solid #dfe4eb;border-radius:8px;padding:0 14px;color:#07162f;background:#fff;font:inherit;font-size:15px;outline:none}
.header-search-input:focus{border-color:#3156ee;box-shadow:0 0 0 3px rgba(49,86,238,.10)}
.header-search-submit{height:46px;border:0;border-radius:8px;padding:0 20px;background:#07162f;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.header-search-submit:hover{background:#3156ee}
.site-header.search-open .header-inner{background:#fff}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){.header-actions{gap:16px}.header-search-label{display:none}.header-search-toggle{padding:10px 2px}.header-search-inner{width:min(100% - 32px,1100px);padding-top:12px;padding-bottom:14px}.header-search-form{gap:8px}.header-search-input{height:44px;font-size:16px}.header-search-submit{height:44px;padding:0 14px}}

/* v3.0.10: featured thumbnails in search results and article menu items */
.search-results-page{width:min(1000px,92%)}
.search-results-header{padding:4px 0 14px;border-bottom:1px solid var(--line)}
.search-results-header h1{margin:0;font-size:30px;line-height:1.3;color:#07162f}
.search-results-list{display:flex;flex-direction:column}
.search-results-page .search-item{width:100%;display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;align-items:start;padding:22px 0;border-bottom:1px solid var(--line)}
.search-item-thumb{display:block;width:100%;aspect-ratio:16/10;overflow:hidden;border-radius:8px;background:#f3f5f8;text-decoration:none}
.search-item-thumb:hover{text-decoration:none}
.search-item-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.search-item:hover .search-item-thumb img{transform:scale(1.025)}
.search-item-no-image{display:block;width:100%;height:100%;background:#f3f5f8}
.search-item-body{min-width:0}
.search-item-body h2{margin:0 0 8px;font-size:22px;line-height:1.35;color:#07162f}
.search-item-body h2 a{color:inherit;text-decoration:none}
.search-item-body h2 a:hover{color:#3156ee;text-decoration:none}
.search-item-excerpt{color:#555;font-size:14px;line-height:1.7}
.search-item-excerpt p{margin:0}
.search-results-page .navigation.pagination{padding-top:26px}

.main-nav li.menu-item-story-card a{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px;min-width:175px;max-width:270px;padding:5px 0}
.main-nav li.menu-item-story-card a:after{display:none}
.menu-item-thumb{display:block;width:68px;height:48px;overflow:hidden;border-radius:7px;background:#f3f5f8;flex:none}
.menu-item-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.main-nav li.menu-item-story-card a:hover .menu-item-thumb img{transform:scale(1.04)}
.menu-item-thumb-placeholder{display:block;width:100%;height:100%;background:#f3f5f8}
.menu-item-title-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-width:0;line-height:1.35}
.main-nav li.menu-item-story-card a:hover .menu-item-title-text{color:#3156ee}

@media(max-width:900px){
  .main-nav ul{align-items:stretch;gap:18px;flex-wrap:wrap}
  .main-nav li.menu-item-story-card{flex:0 1 calc(50% - 9px)}
  .main-nav li.menu-item-story-card a{max-width:none;width:100%}
}
@media(max-width:700px){
  .search-results-header h1{font-size:25px}
  .search-results-page .search-item{grid-template-columns:112px minmax(0,1fr);gap:13px;padding:17px 0}
  .search-item-thumb{aspect-ratio:4/3;border-radius:7px}
  .search-item-body h2{font-size:17px;margin-bottom:5px}
  .search-item-excerpt{font-size:13px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .main-nav ul{display:block}
  .main-nav li.menu-item-story-card{border-bottom:1px solid #edf0f4}
  .main-nav li.menu-item-story-card a{grid-template-columns:82px minmax(0,1fr);gap:12px;min-width:0;max-width:none;padding:11px 0}
  .menu-item-thumb{width:82px;height:58px;border-radius:7px}
  .menu-item-title-text{font-size:15px;line-height:1.35}
}


/* v3.0.12: desktop primary menu stays visible horizontally in the top header. */
@media (min-width:901px){
  .header-inner{min-height:74px;display:flex;align-items:center;gap:28px}
  .brand{margin-right:0;flex:0 0 auto}
  .main-nav{position:static;z-index:auto;flex:1 1 auto;min-width:0;background:transparent;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:none}
  .main-nav-inner{width:auto;margin:0;padding:0}
  .main-nav .main-menu{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:nowrap;list-style:none;margin:0;padding:0}
  .main-nav .main-menu>li{position:relative;flex:0 0 auto}
  .main-nav .main-menu>li>a{display:block;min-width:0;max-width:none;padding:27px 0 25px;font-size:14px;line-height:1.4;font-weight:700;white-space:nowrap}
  .main-nav .main-menu>li.menu-item-story-card>a{display:block;min-width:0;max-width:none;padding:27px 0 25px}
  .main-nav .main-menu>li.menu-item-story-card>a:after{display:block}
  .main-nav .main-menu>li>a:after{bottom:20px}
  .main-nav .menu-item-thumb{display:none}
  .main-nav .menu-item-title-text{display:block;overflow:visible;-webkit-line-clamp:unset;white-space:nowrap}
  .menu-toggle{display:none!important}
  .menu-backdrop{display:none!important}
  .header-actions{flex:0 0 auto;margin-left:0}

  /* Submenus remain dropdowns while the first row stays horizontal. */
  .main-nav .sub-menu{display:none;position:absolute;left:0;top:100%;z-index:1010;min-width:240px;padding:10px 14px;margin:0;background:#fff;border:1px solid #e7eaf0;border-radius:8px;box-shadow:0 16px 38px rgba(7,22,47,.12)}
  .main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:block}
  .main-nav .sub-menu li{display:block;width:100%}
  .main-nav .sub-menu li a,.main-nav .sub-menu li.menu-item-story-card a{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-width:210px;max-width:310px;padding:7px 0;white-space:normal}
  .main-nav .sub-menu .menu-item-thumb{display:block}
  .main-nav .sub-menu .menu-item-title-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}
  .main-nav .sub-menu li a:after{display:none}
}

/* On tablet/phone the Menu button still opens the list, with article thumbnails. */
@media (max-width:900px){
  .header-inner{position:relative}
  .main-nav{position:absolute;left:0;right:0;top:100%;width:100vw;margin-left:calc(50% - 50vw)}
  .main-nav-inner{width:min(100% - 32px,1100px);margin:0 auto;padding:14px 0 20px}
  .main-nav ul{display:block}
  .main-nav li{border-bottom:1px solid #edf0f4}
  .main-nav li:last-child{border-bottom:0}
  .main-nav li a{padding:12px 0}
  .main-nav li.menu-item-story-card a{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:12px;min-width:0;max-width:none;width:100%;padding:11px 0}
  .main-nav li.menu-item-story-card .menu-item-thumb{display:block;width:82px;height:58px}
}

/* v3.0.14: justify article text without overriding Read More plugin button alignment. */
.chapter-content,
.chapter-content p,
.chapter-content .rmbvn-wrap p{
  text-align:justify !important;
  text-justify:inter-word;
  text-align-last:left !important;
  word-spacing:normal;
  letter-spacing:normal;
}
/* Do not force text-align on .rmbvn-wrap or its button/link.
   The plugin can now honor Left / Center / Right from its own settings. */


/* v3.0.14: featured images inside Catalog / floating chapter menu. */
.floating-chapters-list a{
  grid-template-columns:72px 34px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:center !important;
  min-height:70px !important;
}
.floating-chapters-list a span.floating-chapter-thumb{
  display:block !important;
  width:72px !important;
  height:50px !important;
  border-radius:7px !important;
  overflow:hidden !important;
  background:#f1f3f6 !important;
  color:inherit !important;
  line-height:normal !important;
}
.floating-chapter-thumb .catalog-thumb-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.floating-chapter-thumb .catalog-thumb-placeholder{
  display:block;
  width:100%;
  height:100%;
  background:#f1f3f6;
}
.floating-chapters-list a span.floating-chapter-index{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:28px !important;
  height:28px !important;
  border-radius:50% !important;
  background:#f1f4f9 !important;
  color:#3156ee !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1 !important;
}
.floating-chapters-list a span.floating-chapter-title{
  display:block !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:500 !important;
  color:inherit !important;
}
.floating-chapters-list a.current span.floating-chapter-index{
  background:#3156ee !important;
  color:#fff !important;
}
.floating-chapters-list a.current span.floating-chapter-title{
  font-weight:700 !important;
}

/* Thumbnail support for the normal chapter catalog/TOC as well. */
.chapter-list a{
  display:grid;
  grid-template-columns:72px 34px minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.chapter-catalog-thumb{
  display:block;
  width:72px;
  height:50px;
  overflow:hidden;
  border-radius:7px;
  background:#f1f3f6;
}
.chapter-catalog-thumb .catalog-thumb-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.chapter-catalog-thumb .catalog-thumb-placeholder{
  display:block;
  width:100%;
  height:100%;
  background:#f1f3f6;
}
.chapter-catalog-title{
  min-width:0;
}
@media (max-width:520px){
  .floating-chapters-list a{
    grid-template-columns:62px 30px minmax(0,1fr) !important;
    padding:10px 12px !important;
  }
  .floating-chapters-list a span.floating-chapter-thumb{
    width:62px !important;
    height:44px !important;
    border-radius:6px !important;
  }
  .chapter-list a{
    grid-template-columns:62px 30px minmax(0,1fr);
  }
  .chapter-catalog-thumb{
    width:62px;
    height:44px;
  }
}


/* v3.0.15: category/archive lists opened from the top menu show post thumbnails. */
.category-results-page{
  width:min(1000px,92%);
  padding-top:34px;
}
.category-results-header{
  padding:4px 0 15px;
  border-bottom:1px solid var(--line);
}
.category-results-header h1{
  margin:0;
  color:#07162f;
  font-size:30px;
  line-height:1.3;
}
.category-results-description{
  margin-top:8px;
  color:#687386;
  font-size:14px;
  line-height:1.65;
}
.category-results-description p{
  margin:0;
}
.category-results-list{
  display:flex;
  flex-direction:column;
}
.category-post-item{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:22px;
  align-items:start;
  padding:23px 0;
  border-bottom:1px solid var(--line);
}
.category-post-thumb{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:8px;
  background:#f3f5f8;
  text-decoration:none;
}
.category-post-thumb:hover{
  text-decoration:none;
}
.category-post-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}
.category-post-item:hover .category-post-thumb img{
  transform:scale(1.025);
}
.category-post-no-image{
  display:block;
  width:100%;
  height:100%;
  background:#f3f5f8;
}
.category-post-body{
  min-width:0;
}
.category-post-title{
  margin:0 0 6px;
  color:#07162f;
  font-size:22px;
  line-height:1.35;
}
.category-post-title a{
  color:inherit;
  text-decoration:none;
}
.category-post-title a:hover{
  color:#3156ee;
  text-decoration:none;
}
.category-post-meta{
  margin-bottom:8px;
  color:#8a93a2;
  font-size:12px;
}
.category-post-excerpt{
  color:#555;
  font-size:14px;
  line-height:1.7;
}
.category-post-excerpt p{
  margin:0;
}
.category-pagination{
  padding-top:28px;
}
.category-pagination .nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
}
.category-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:6px 11px;
  border:1px solid var(--line);
  border-radius:6px;
  text-decoration:none;
}
.category-pagination .page-numbers.current{
  background:#07162f;
  border-color:#07162f;
  color:#fff;
}
@media(max-width:700px){
  .category-results-page{
    padding-top:22px;
  }
  .category-results-header h1{
    font-size:25px;
  }
  .category-post-item{
    grid-template-columns:112px minmax(0,1fr);
    gap:13px;
    padding:17px 0;
  }
  .category-post-thumb{
    aspect-ratio:4/3;
    border-radius:7px;
  }
  .category-post-title{
    margin-bottom:5px;
    font-size:17px;
  }
  .category-post-meta{
    margin-bottom:5px;
    font-size:11px;
  }
  .category-post-excerpt{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    font-size:13px;
    line-height:1.55;
  }
}

/* v3.0.16: compact homepage footer from the supplied reference. */
.home-site-footer{
  margin-top:0;
  padding:0;
  border-top:0;
  background:#fff;
  color:#171717;
  font-size:14px;
  line-height:1.4;
}
.home-site-footer-inner{
  min-height:43px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.home-site-footer-copy{white-space:nowrap}
.home-site-footer-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  margin-left:auto;
}
.home-site-footer-nav a{
  color:#171717;
  text-decoration:none;
  white-space:nowrap;
}
.home-site-footer-nav a:hover{text-decoration:underline}
@media(max-width:700px){
  .home-site-footer{font-size:13px}
  .home-site-footer-inner{
    min-height:0;
    padding-top:15px;
    padding-bottom:15px;
    flex-wrap:wrap;
    row-gap:8px;
  }
  .home-site-footer-copy{white-space:normal}
  .home-site-footer-nav{gap:12px}
}
@media(max-width:430px){
  .home-site-footer-inner{display:block;text-align:center}
  .home-site-footer-nav{justify-content:center;margin:6px 0 0}
}
