/*
Theme Name: Thư Viện Tiên Hiệp
Version: 1.0.13
Author: TVTH
Text Domain: tvth
Requires PHP: 7.4
*/
:root{--green:#174737;--ink:#102e27;--gold:#a18445;--paper:#faf8f2;--line:#e4dfd4}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:#202722;font:16px/1.65 Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#a18445}img{max-width:100%;height:auto}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;color:var(--ink);line-height:1.25}h1{font-size:36px}h2{font-size:25px}button,input,select{font:inherit}button,.btn{background:var(--green);color:white;border:0;border-radius:7px;padding:9px 18px;cursor:pointer}input,select{border:1px solid var(--line);border-radius:7px;padding:9px;background:white;color:#222}.wrap{max-width:1440px;margin:auto;padding:0 28px}.header{background:#fff;border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;gap:24px;min-height:76px}.brand{width:220px;flex-shrink:0;font:bold 23px Georgia;color:var(--ink)}.brand img{display:block;max-height:64px;width:auto}.nav ul{display:flex;gap:20px;list-style:none;margin:0;padding:0;flex-wrap:wrap}.nav li{position:relative;font-weight:bold;font-size:14px}.nav .sub-menu{display:none;position:absolute;top:100%;left:0;background:white;padding:15px;z-index:5;min-width:180px}.nav li:hover>.sub-menu,.nav li:focus-within>.sub-menu{display:block}.hero{background:linear-gradient(90deg,transparent,#f6f8f2e8 32%,#f6f8f2f0 70%,#ffffff44),url(assets/mountains.webp) left center/auto 100% no-repeat,#dce8e7;text-align:center;padding:36px 20px}.hero h1{margin:0 0 12px;font-style:italic;font-size:38px}.hero p{margin:0 0 16px}.searchform{display:flex;gap:8px;max-width:620px;margin:auto}.searchform input{flex:1;min-width:0}.crumb{font-size:13px;padding:18px 0}.layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.directory{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px}.section-title{border-bottom:1px solid var(--gold);padding-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 16px}.section-title h2{margin:0}.section-title a{font-size:13px}.section-title h2:before{content:'✦ ';color:var(--gold)}.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.home-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.portrait{position:relative;display:block;aspect-ratio:3/4;border-radius:9px;overflow:hidden;background:#dce6df}.portrait img{width:100%;height:100%;object-fit:cover}.portrait .overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#102c29f5);padding:30px 8px 12px;color:white;text-align:center}.overlay strong{display:block;font: bold 19px Georgia}.overlay small{font-size:12px}.book{text-align:center}.book img{aspect-ratio:3/4;object-fit:cover;width:100%;border-radius:8px}.panel{border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff9;margin-bottom:16px}.panel h2,.panel h3{margin:0 0 12px;border-bottom:1px solid var(--line);padding-bottom:10px}.panel h3:before{content:'✦ ';color:var(--gold)}.mini,.review-row{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);align-items:flex-start}.mini img{width:76px;height:58px;object-fit:cover;border-radius:6px}.mini strong{font-size:14px;line-height:1.4;display:block}.review-row img{width:190px;aspect-ratio: 4/3;object-fit:cover;border-radius:8px}.review-row h2{font-size:21px;margin:0 0 5px}.review-row p{margin:6px 0}.meta{font-size:13px;color:#68716b}.stars{color:#e9a126}.filter label{display:block;margin:10px 0}.filter select{width:100%}.filter button{width:100%}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.pagination,.nav-links{text-align:center;margin:25px 0}.page-numbers{display:inline-block;padding:5px 12px;border:1px solid var(--line);border-radius:5px;margin:2px}.page-numbers.current{background:var(--green);color:white}.profile{display:flex;gap:24px;align-items:flex-start;margin-bottom:20px}.profile>img{width:34%;aspect-ratio: 4/3;object-fit:cover;border-radius:12px}.profile h1{font-size:48px;margin:0 0 8px;font-style:italic}.tag{display:inline-block;background:#e1ece5;color:var(--green);border-radius:20px;padding:3px 12px;font-size:13px;margin:3px}.article{min-width:0}.article h1{margin-top:0}.article .cover{width:100%;max-height:400px;object-fit:cover;border-radius:10px;margin:12px 0}.article-content{font-size:17px;overflow-wrap:anywhere}.article-content h2{border-bottom:1px solid var(--line);padding-bottom:8px;margin-top:28px}.article-content img{border-radius:7px}.article-content table{border-collapse:collapse;width:100%}.article-content td,.article-content th{border:1px solid var(--line);padding:8px}.toc{background:#f0f3ed;border:1px solid var(--line);border-radius:8px;padding:14px 20px;margin:18px 0}.toc a{display:block}.footer{margin-top:40px;background:linear-gradient(90deg,#103d35 65%,#103d3566),url(assets/footer.webp) right center/auto 100% no-repeat,#103d35;color:#fff;padding:32px 0 14px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}.footer h3{color:white;margin:0 0 10px}.footer a{display:block}.copyright{border-top:1px solid #ffffff33;margin-top:20px;padding-top:12px;font-size:13px}.knowledge{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mobile-toggle{display:none}.empty{padding:30px;background:#fff;border:1px dashed var(--line)}.dark{--paper:#172620;--ink:#e6efe7;--line:#40554b;color:#e4e9e5}.dark .panel,.dark .header,.dark .toc{background:#23372e}.dark .hero{color:#173b31}.dark .hero h1{color:#173b31}@media(max-width:1000px){.layout{grid-template-columns:minmax(0,1fr) 250px}.grid,.home-grid{grid-template-columns:repeat(3,1fr)}.nav{flex-wrap:wrap}.directory{grid-template-columns:180px 1fr}}@media(max-width:700px){.wrap{padding:0 14px}.layout,.directory{display:block}.grid,.home-grid{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:28px}.nav{justify-content:space-between;gap:8px}.mobile-toggle{display:block}.nav nav{display:none;width:100%}.nav nav.open{display:block}.nav ul{display:block}.nav li{padding:8px}.nav .sub-menu{position:static}.profile h1{font-size:32px}.review-row img{width:110px}.review-row h2{font-size:17px}.footgrid,.knowledge{grid-template-columns:repeat(2,1fr)}.article-content{font-size:16px}.toolbar{flex-wrap:wrap}.filter{margin-bottom:18px}}
/* Header v1.0.3 — reference artwork */
.header{position:relative;background:#f7f6f1 url(assets/header-background.svg) center/100% 100% no-repeat;border-bottom:1px solid #e2e5df;z-index:20}.header .nav{max-width:1480px;min-height:80px;padding:0 26px;gap:0;flex-wrap:nowrap}.header .brand{width:clamp(190px,22vw,350px);padding-right:24px;border-right:1px solid #d6d9d3;display:flex;align-items:center;justify-content:flex-start}.header .brand img{width:100%;max-width:300px;max-height:66px;object-fit:contain;object-position:left center}.header .nav nav{flex:1;min-width:0;margin-left:clamp(12px,2.5vw,36px)}.header .nav nav>ul{display:flex;align-items:center;justify-content:flex-start;gap:clamp(2px,1vw,15px);flex-wrap:nowrap}.header .nav li{font-family:Georgia,'Times New Roman',serif;font-size:clamp(13px,1.12vw,17px);font-weight:700;white-space:nowrap;padding:0}.header .nav nav>ul>li>a{display:flex;align-items:center;gap:5px;padding:8px clamp(7px,.9vw,15px);border-radius:6px;line-height:1.4;color:#18201e}.header .nav nav>ul>li.current-menu-item>a,.header .nav nav>ul>li.current-menu-ancestor>a,.header .nav nav>ul>li.current-menu-parent>a,.header .nav nav>ul>li>a:hover{background:#214a3d;color:#fff}.header .menu-item-has-children>a:after,.header .tvth-dropdown>a:after{content:'';width:12px;height:12px;background:currentColor;mask:url(assets/chevron-down.svg) center/contain no-repeat;-webkit-mask:url(assets/chevron-down.svg) center/contain no-repeat}.header .nav .sub-menu{padding:8px;border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 20px #1232;min-width:180px}.header .sub-menu a{display:block;padding:7px 10px}.header-actions{display:flex;align-items:center;gap:clamp(10px,1.6vw,24px);margin-left:auto;padding-left:16px}.header .header-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:32px;padding:0;background:transparent;color:#101b20;border:0;border-radius:0;flex-shrink:0}.header-icon img{width:23px;height:23px;display:block}.header .mobile-toggle{display:none}.header-search{padding-top:10px;padding-bottom:14px}.header-search[hidden]{display:none}.dark .header{background:#23372e}.dark .header .nav nav>ul>li>a,.dark .header .header-icon{color:#edf4ee}.dark .header-icon img{filter:invert(1)}.dark .header .brand img{background:#f7f6f1;border-radius:4px}.dark .header .sub-menu{background:#23372e}
@media(max-width:1100px){.header .nav{min-height:68px;padding:0 16px}.header .brand{width:205px;padding-right:12px}.header .nav nav{margin-left:10px}.header .nav nav>ul{gap:2px}.header .nav nav>ul>li>a{padding:7px}.header-actions{gap:10px;padding-left:8px}}
@media(max-width:950px){.header .nav{flex-wrap:wrap;justify-content:space-between;min-height:64px}.header .brand{border:0;width:200px;padding:5px 0}.header .brand img{max-height:54px}.header .mobile-toggle{display:inline-flex}.header .nav nav{display:none;order:3;flex:0 0 100%;margin:0;padding:8px 0}.header .nav nav.open{display:block}.header .nav nav>ul{display:flex;flex-direction:column;align-items:stretch}.header .nav .sub-menu{position:static;box-shadow:none}.header .nav li{font-size:15px}.header .nav nav>ul>li>a{padding:10px}.header-actions{gap:12px}}
@media(max-width:370px){.header .brand{width:155px}.header-actions{gap:7px}.header .header-icon{width:22px}.header .header-icon img{width:20px}}
/* Header logo and background correction */
.header{background:#f7f6f1;isolation:isolate;}
.header:before{content:'';position:absolute;inset:0 auto 0 0;width:115px;background:url(assets/header-background.svg) left center/auto 100% no-repeat;pointer-events:none;z-index:-1;mask-image:linear-gradient(to right,#000,transparent);}
.header .brand{width:clamp(215px,19vw,285px);}
.header .brand img{width:auto;height:auto;max-width:100%;max-height:44px;object-fit:contain;image-rendering:auto;}
.header .brand .custom-logo{max-height:58px;}
.dark .header{background:#23372e;}.dark .header:before{display:none;}
@media(max-width:950px){.header .brand{width:200px;}}
@media(max-width:370px){.header .brand{width:155px;}}
/* Homepage hero — full supplied artwork, reference typography and search */
.hero.home-hero{background:#dce8ed url(assets/hero-background.webp) center center/cover no-repeat;min-height:clamp(250px,25vw,390px);display:flex;align-items:center;justify-content:center;padding:30px 16px;color:#182520;}
.home-hero-inner{width:min(100%,760px);margin:auto;}
.home-hero h1,.dark .home-hero h1{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-style:italic;font-size:clamp(27px,2.65vw,43px);line-height:1.18;letter-spacing:-.025em;color:#102e27;margin:0 0 15px;text-shadow:0 1px 2px #fff9;}
.home-hero p{font-size:clamp(12px,1.12vw,16px);line-height:1.55;margin:0 0 23px;color:#17211e;}
.home-hero .hero-search{display:flex;align-items:center;gap:10px;width:100%;max-width:710px;padding:4px 5px 4px 20px;background:#faf9f4;border:1px solid #b8c3b8;border-radius:999px;box-shadow:0 2px 8px #193d3026;}
.hero-search img{flex:none;width:24px;height:24px;}.home-hero .hero-search input{border:0;background:transparent;border-radius:0;padding:8px 0;min-width:0;width:100%;font-size:14px;outline-offset:2px;}.home-hero .hero-search button{flex:none;border-radius:999px;background:#214a3d;padding:9px 26px;font-size:14px;line-height:1.4;white-space:nowrap;}
.hero-popular{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:#192b24;}.hero-popular a{background:#f8f8f2e6;border-radius:999px;padding:3px 12px;line-height:1.5;}.hero-popular a:hover{background:#214a3d;color:white;}
@media(max-width:700px){.hero.home-hero{min-height:280px;background-position:center;background-size:cover;padding:24px 14px;}.home-hero-inner{background:#f8faf4b8;border-radius:12px;padding:14px 10px;}.home-hero h1{font-size:clamp(22px,5.5vw,30px);}.home-hero p{margin-bottom:15px;}.hero-break{display:none;}.home-hero .hero-search{padding-left:10px;gap:6px;}.home-hero .hero-search input{font-size:12px;}.home-hero .hero-search button{padding:9px 13px;font-size:12px;}.hero-search img{width:19px;height:19px;}.hero-popular{gap:5px;font-size:11px;}.hero-popular a{padding:3px 8px;}}

/* Homepage reference sections v1.0.10 */
.tvth-home h2,.tvth-home h3,.tvth-home .overlay strong{font-family:"Times New Roman",Georgia,serif;letter-spacing:normal;font-variant-ligatures:none;}
.tvth-home .home-heading{margin:24px 0 16px;padding-bottom:9px;position:relative;border-color:#c6b995;}
.home-heading:after{content:"";position:absolute;bottom:-2px;left:0;width:42px;height:3px;background:var(--green);border-radius:50%;}
.tvth-home .home-heading h2:before,.tvth-home .knowledge-card h3:before{content:none;}
.home-heading h2,.home-heading a,.knowledge-card a{display:flex;align-items:center;gap:9px;}
.home-heading h2{font-size:26px;}.home-icon{display:block;width:30px;height:28px;object-fit:contain;flex:none;}.home-heading a .home-icon,.knowledge-card a .home-icon{width:18px;height:18px;}
.tvth-home .home-grid{gap:12px;align-items:start;}.tvth-home .home-grid .empty{grid-column:1/-1;}
.tvth-home .home-characters .portrait{aspect-ratio: 0.70;}.tvth-home .portrait img{display:block;object-position:center;}.tvth-home .overlay{padding:35px 5px 10px;}.tvth-home .overlay strong{font-size:clamp(14px,1.25vw,19px);line-height:1.15;overflow-wrap:normal;}.tvth-home .overlay small{display:block;font-size:11px;line-height:1.3;margin-top:5px;}
.tvth-home .home-books .book img{display:block;aspect-ratio: 0.72;}.home-books .book strong{display:block;font-size:14px;line-height:1.35;margin-top:7px;}
.home-sidebar{padding-top:24px;}.home-reviews{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;}.home-review-cover{display:block;position:relative;overflow:hidden;border-radius:8px;aspect-ratio:2.15;}.home-review-cover img{display:block;width:100%;height:100%;object-fit:cover;}.home-review-cover h3{position:absolute;bottom:0;left:0;right:0;margin:0;padding:32px 12px 10px;color:white;background:linear-gradient(transparent,#102c29e8);font-size:21px;line-height:1.2;}.review-label{position:absolute;top:10px;left:10px;background:#94804b;color:white;padding:3px 9px;border-radius:4px;font-size:12px;}.home-review-lead p{font-size:13px;line-height:1.55;margin:6px 0;}.home-review-lead .meta{margin-top:5px;}.home-review-list article{display:grid;grid-template-columns:35% 1fr;gap:12px;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:10px;}.home-review-list img{display:block;width:100%;aspect-ratio:1.7;object-fit:cover;border-radius:6px;}.home-review-list h3{font-size:16px;line-height:1.3;margin:0 0 8px;}
.tvth-home .knowledge-card{display:flex;align-items:flex-start;gap:14px;background:#f5f2e9;padding:16px;}.knowledge-card>.home-icon{width:48px;height:38px;}.tvth-home .knowledge-card h3{font-size:19px;margin:0 0 9px;padding-bottom:8px;}.knowledge-card p{font-size:14px;line-height:1.55;margin:0 0 8px;}.knowledge-card a{font-size:13px;font-weight:600;gap:5px;}.dark .tvth-home .knowledge-card{background:#23372e;}.dark .home-heading a .home-icon,.dark .knowledge-card a .home-icon{filter:brightness(0) invert(1);}
@media(max-width:1000px){.home-reviews{grid-template-columns:1fr;}.tvth-home .home-knowledge{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:700px){.home-heading h2{font-size:21px;}.home-heading a{font-size:11px;}.tvth-home .home-grid{gap:10px;}.tvth-home .overlay strong{font-size:17px;}.tvth-home .knowledge-card{padding:12px;gap:9px;}.knowledge-card>.home-icon{width:32px;height:28px;}.tvth-home .knowledge-card h3{font-size:16px;}.knowledge-card p{font-size:13px;}}@media(max-width:400px){.tvth-home .home-knowledge{grid-template-columns:1fr;}}
/* Homepage sidebar — v1.0.10 */
.home-sidebar .panel{padding:12px;margin-bottom:18px;background:#faf9f5;border:1px solid var(--line);border-radius:10px}.home-sidebar .sidebar-heading{display:flex;align-items:center;gap:8px;font:700 21px/1.3 'Times New Roman',serif;margin:0 0 8px;padding:0 0 10px;border-bottom:1px solid #cbbd99;white-space:nowrap}.home-sidebar .sidebar-heading:before{content:none}.sidebar-heading .home-icon:first-child{width:25px;height:25px;flex:none}.sidebar-heading .home-icon:last-child{width:45px;height:12px;margin-left:auto;min-width:0;flex-shrink:1}.latest-item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.latest-item:last-child,.rank-item:last-child{border-bottom:0}.latest-item>img{width:82px;height:55px;object-fit:cover;border-radius:5px;flex:none}.latest-item>span{min-width:0}.latest-item strong,.rank-name strong{display:block;font:700 15px/1.3 'Times New Roman',serif}.latest-item time{display:flex;align-items:center;gap:5px;font-size:11px;color:inherit;margin-top:5px}.latest-item time svg{width:13px;height:13px}.rank-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}.rank-tabs button{padding:7px 2px;font:700 13px/1.3 'Times New Roman',serif;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:5px}.rank-tabs button[aria-selected=true]{background:var(--green);color:#fff}.rank-list[hidden]{display:none!important}.rank-item{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.rank-number{width:21px;flex:none;text-align:center;font-weight:700;font-size:15px}.rank-number .home-icon{width:21px;height:21px;display:block}.rank-avatar{width:43px;height:43px;flex:none}.rank-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.rank-name{flex:1;min-width:0;overflow-wrap:anywhere}.rank-name small{display:block;font-size:11px;line-height:1.3;margin-top:3px}.rank-views{display:flex;align-items:center;gap:2px;font-size:11px;white-space:nowrap;flex:none}.rank-views .home-icon{width:13px;height:15px}.dark .home-sidebar .panel{background:#23372e}@media(max-width:1000px) and (min-width:701px){.home-sidebar .sidebar-heading{font-size:18px;gap:5px}.sidebar-heading .home-icon:last-child{width:25px}.rank-item{gap:5px}.rank-avatar{width:34px;height:34px}.latest-item>img{width:65px;height:49px}}

/* v1.0.10: homepage sidebar and links */
.tvth-home .home-heading>a{font-weight:700;gap:7px}.tvth-home .home-heading>a .home-icon{width:20px;height:20px;flex:none}
.home-sidebar .sidebar-heading .home-icon:last-child{width:59px;height:16px;flex:0 1 59px;min-width:25px}.home-sidebar .sidebar-heading>span{min-width:0;white-space:normal}
.home-sidebar .latest-item>img{width:82px;height:55px;display:block;object-fit:cover;object-position:50% 40%;border-radius:5px;flex:0 0 82px;margin:0;padding:0;border:0}
.home-sidebar .rank-avatar{width:43px;height:43px;flex:0 0 43px;overflow:hidden;border-radius:50%;display:block}.home-sidebar .rank-avatar img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;display:block;margin:0;padding:0;border:0;border-radius:50%}
.home-sidebar .rank-number{width:26px;flex:0 0 26px;font-size:16px;font-weight:700}.home-sidebar .rank-number .home-icon{width:26px;height:26px;margin:auto}.home-sidebar .rank-views{font-size:13px;font-weight:700;gap:3px}.home-sidebar .rank-views .home-icon{width:19px;height:19px}
@media(max-width:1000px) and (min-width:701px){.home-sidebar .latest-item>img{width:65px;height:49px;flex-basis:65px}.home-sidebar .rank-avatar{width:34px;height:34px;flex-basis:34px}.home-sidebar .sidebar-heading .home-icon:last-child{width:38px;flex-basis:38px}.home-sidebar .rank-number{width:24px;flex-basis:24px}.home-sidebar .rank-number .home-icon{width:24px;height:24px}}

/* v1.0.10: full-width illustrated footer */
.footer.tvth-footer{background:#153a34 url('assets/footer-background.webp') center center/100% 100% no-repeat;color:#fff;padding:20px 0 0;margin-top:36px;font:14px/1.45 Arial,sans-serif}
.tvth-footer .wrap{width:92%;max-width:1380px;margin:0 auto}
.tvth-footer .footgrid{display:grid;grid-template-columns:2.05fr .95fr .9fr 1.1fr;gap:32px;align-items:start;padding:0 13% 14px 0}
.tvth-footer .tvth-footer-logo{display:inline-block;line-height:0;margin-bottom:8px}
.tvth-footer-logo img{display:block;width:200px;max-width:100%;height:auto;object-fit:contain}
.tvth-footer-brand p{margin:0 0 10px;color:#fff;max-width:400px;font-size:14px;line-height:1.5}
.tvth-footer .tvth-footer-social{display:flex;gap:10px;align-items:center}
.tvth-footer-social img{display:block;width:32px;height:32px}
.tvth-footer .tvth-footer-column h3{font:700 17px/1.3 Georgia,'Times New Roman',serif;color:#fff;margin:3px 0 9px}
.tvth-footer-column ul{list-style:none;margin:0;padding:0}
.tvth-footer-column li{list-style:none;margin:0 0 3px;padding:0}
.tvth-footer .tvth-footer-column a{display:inline;color:#fff;font-size:14px;line-height:1.45}
.tvth-footer a:hover{color:#ead7a3}
.tvth-footer .copyright{border-top:1px solid rgba(255,255,255,.23);margin:0;padding:10px 0 12px;font-size:12px;color:#fff}
@media(max-width:900px){.tvth-footer .footgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-right:0}.footer.tvth-footer{background-size:cover;background-position:right center}}
@media(max-width:480px){.tvth-footer .footgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tvth-footer-brand{grid-column:1/-1}.footer.tvth-footer{background-image:linear-gradient(90deg,rgba(15,48,42,.86),rgba(15,48,42,.6)),url('assets/footer-background.webp');background-size:cover}.tvth-footer .copyright{font-size:11px}}
/* v1.0.10: HD footer artwork, preserve image proportions */
.footer.tvth-footer{background-size:cover;background-position:right center;background-repeat:no-repeat;background-color:#062d28}
.tvth-footer-logo img{width:220px;height:auto;max-width:100%;object-fit:contain}
@media(max-width:900px){.footer.tvth-footer{background-position:right bottom}}

/* v1.0.10: illustrated knowledge section */
.home-knowledge-section{position:relative;isolation:isolate;padding-bottom:28px;}
.home-knowledge-section::before,.home-knowledge-section::after{content:"";position:absolute;bottom:0;width:clamp(110px,15vw,230px);height:clamp(76px,10.3vw,158px);background-repeat:no-repeat;background-size:contain;pointer-events:none;z-index:2;opacity:.78;}
.home-knowledge-section::before{left:calc(-1 * min(28px, 4vw));background-image:url('assets/knowledge-mountain-left.svg');background-position:left bottom;}
.home-knowledge-section::after{right:calc(-1 * min(28px, 4vw));background-image:url('assets/knowledge-mountain-right.svg');background-position:right bottom;}
.tvth-home .home-knowledge{position:relative;gap:14px;align-items:stretch;}
.tvth-home .knowledge-card{margin:0;min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:14px 16px;background:linear-gradient(125deg,#f6f3e9,#f1eee5);border-radius:9px;}
.tvth-home .knowledge-card>div{display:flex;flex-direction:column;min-width:0;}
.tvth-home .knowledge-card h3{font-size:18px;padding:0 0 7px;margin:0 0 8px;}
.tvth-home .knowledge-card p{margin:0 0 8px;line-height:1.5;}
.tvth-home .knowledge-card a{margin-top:auto;align-self:flex-start;font-weight:700;position:relative;z-index:3;}
.dark .tvth-home .knowledge-card{background:#23372e;}
.dark .home-knowledge-section::before,.dark .home-knowledge-section::after{opacity:.25;}
.tvth-home+.footer.tvth-footer{margin-top:0;}
@media(max-width:700px){.home-knowledge-section{padding-bottom:20px;}.home-knowledge-section::before,.home-knowledge-section::after{width:100px;height:69px;opacity:.45;}.home-knowledge-section::before{left:-14px;}.home-knowledge-section::after{right:-14px;}.tvth-home .knowledge-card{grid-template-columns:32px minmax(0,1fr);gap:9px;padding:12px;}.tvth-home .knowledge-card h3{font-size:16px;}}
.tvth-home .knowledge-card>div,.tvth-home .knowledge-card>.home-icon{position:relative;z-index:3;}

/* Full-bleed mountain corners; content remains inside the original wrap. */
.home-knowledge-section{width:100%;overflow:hidden;display:flow-root;padding-bottom:24px;}
.home-knowledge-section::before,.home-knowledge-section::after{bottom:0;width:clamp(100px,12vw,185px);height:clamp(90px,11vw,170px);opacity:.85;z-index:2;}
.home-knowledge-section::before{left:0;}
.home-knowledge-section::after{right:0;}
.tvth-home .knowledge-card{grid-template-rows:1fr;}
.tvth-home .knowledge-card>div{height:100%;}
@media(max-width:700px){.home-knowledge-section{padding-bottom:18px;}.home-knowledge-section::before,.home-knowledge-section::after{width:80px;height:74px;opacity:.45;}}
.dark .home-knowledge-section::before,.dark .home-knowledge-section::after{opacity:.25;}

/* v1.0.13: compact inline ranking counter */
.home-sidebar .rank-item .rank-views{display:inline-flex;align-items:center;justify-content:flex-end;align-self:center;flex:0 0 auto;width:auto;margin:0 0 0 auto;gap:3px;padding:0;font:700 13px/19px Arial,sans-serif;white-space:nowrap;}
.home-sidebar .rank-item .rank-views .home-icon{display:block;flex:0 0 19px;width:19px;height:19px;max-width:none;margin:0;padding:0;object-fit:contain;align-self:center;}
.home-sidebar .rank-item .rank-view-count{display:block;width:auto;min-width:0;height:19px;margin:0;padding:0;font:inherit;line-height:19px;text-align:right;font-variant-numeric:tabular-nums;align-self:center;}
