/* ===== T08 Warm Earth / Organic ===== */
:root {
  --xxf-primary: #c2410c;
  --xxf-accent: #fb923c;
  --xxf-surface: #fef7ed;
  --xxf-ink: #431407;
  --xxf-muted: #9a7b6a;
  --xxf-line: rgba(67,20,7,.1);
  --xxf-card: #fffbf5;
  --xxf-radius: 16px;
  --xxf-shadow: 0 4px 20px rgba(67,20,7,.06);
  --xxf-max: 1200px;
  --xxf-radius-sm: 10px;
  --xxf-radius-lg: 24px;
  --xxf-transition: .3s cubic-bezier(.4,0,.2,1);
}

/* === Reset & Base === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;font-size:16px}
body{
  font-family:'Georgia','Noto Serif SC','Source Han Serif SC',serif;
  background:var(--xxf-surface);
  color:var(--xxf-ink);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:break-word;
}
a{color:var(--xxf-primary);text-decoration:none;transition:color var(--xxf-transition)}
a:hover{color:var(--xxf-accent)}
img{display:block;max-width:100%;height:auto}
ul,ol{list-style:none}

/* === Skip Link === */
.skip-link{position:absolute;left:-9999px;background:var(--xxf-primary);color:#fff;padding:.5rem 1rem;border-radius:var(--xxf-radius-sm);z-index:9999}
.skip-link:focus{left:1rem;top:1rem}

/* === Shell / Container === */
.site-shell{max-width:var(--xxf-max);margin:0 auto;padding:0 1.25rem}
.xxf-wrap{max-width:var(--xxf-max);margin:0 auto;padding:0 1.25rem}

/* === SEO Runtime Garbage Cleanup === */
body[class*="template-"] :is(.site-shell,.xxf-wrap,.site-header,.header-inner,.brand-row,.site-nav,.site-topline,.section,.section-head,.hero,.hero-grid,.hero-card,.hero-body,.hero-side,.panel,.layout-two,.grid-channels,.channel-card,.news-list,.sidebar-card,.pagination,.article-main,.article-body,.article-nav,.site-footer,.footer-grid,.footer-links,.copyright,.rank-list,.tag-cloud) > :where(font,ins,small,sup,time,tt,var,area,map,bdo,dfn):not([class]) { display: none !important; }
body[class*="template-"] :is(.site-brand,.brand-mark,.site-search,.eyebrow,.hero-title,.hero-desc,.hero-media,.more,.meta,.footer-grid strong,.footer-links a) :where(font,ins,small,sup,time,tt,var,area,map,bdo,dfn):not([class]) { display: none !important; }

/* === Header === */
.site-header{
  background:var(--xxf-card);
  border-bottom:1px solid var(--xxf-line);
  box-shadow:var(--xxf-shadow);
  position:sticky;top:0;z-index:100;
}
.header-inner{padding:1rem 0}

.brand-row{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:1rem;padding-bottom:.75rem;
}
.site-brand{
  display:flex;align-items:center;gap:.6rem;
  font-size:1.35rem;font-weight:700;color:var(--xxf-ink);
}
.site-brand:hover{color:var(--xxf-primary)}
.brand-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:12px;
  background:linear-gradient(135deg,var(--xxf-primary),var(--xxf-accent));
  color:#fff;font-size:.85rem;font-weight:800;
  letter-spacing:-.02em;
}
.site-search{
  display:flex;align-items:stretch;
  border:1.5px solid var(--xxf-line);border-radius:var(--xxf-radius);
  overflow:hidden;background:#fff;max-width:320px;width:100%;
  transition:border-color var(--xxf-transition);
}
.site-search:focus-within{border-color:var(--xxf-accent)}
.site-search input{
  flex:1;border:none;outline:none;padding:.55rem 1rem;
  font-size:.9rem;font-family:inherit;background:transparent;color:var(--xxf-ink);
}
.site-search input::placeholder{color:var(--xxf-muted)}
.site-search button{
  border:none;cursor:pointer;padding:.55rem 1rem;
  background:var(--xxf-primary);color:#fff;font-size:.85rem;
  font-family:inherit;font-weight:600;transition:background var(--xxf-transition);
}
.site-search button:hover{background:var(--xxf-accent)}

/* Nav */
.site-nav ul{
  display:flex;align-items:center;gap:.25rem;
  padding-top:.5rem;overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.site-nav ul::-webkit-scrollbar{display:none}
.site-nav a{
  display:inline-block;padding:.45rem .9rem;
  font-size:.9rem;color:var(--xxf-muted);white-space:nowrap;
  border-radius:var(--xxf-radius-sm);
  transition:all var(--xxf-transition);font-weight:500;
}
.site-nav a:hover,.site-nav a.active{
  color:var(--xxf-primary);background:rgba(194,65,12,.07);
}

/* === Topline === */
.site-topline{
  background:rgba(194,65,12,.04);border-bottom:1px solid var(--xxf-line);
  font-size:.8rem;color:var(--xxf-muted);padding:.4rem 0;
}
.site-topline .site-shell{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.site-topline a{color:var(--xxf-muted)}
.site-topline a:hover{color:var(--xxf-primary)}

/* === Section Heads === */
.section{padding:2.5rem 0}
.section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:1.25rem;padding-bottom:.75rem;
  border-bottom:2px solid var(--xxf-line);
}
.section-head h1,
.section-head h2{
  font-size:1.2rem;font-weight:700;color:var(--xxf-ink);
  position:relative;padding-left:.75rem;
}
.section-head h1::before,
.section-head h2::before{
  content:'';position:absolute;left:0;top:3px;bottom:3px;
  width:4px;border-radius:2px;
  background:linear-gradient(180deg,var(--xxf-primary),var(--xxf-accent));
}
.section-head .more{
  font-size:.85rem;color:var(--xxf-muted);font-weight:500;
  padding:.3rem .8rem;border-radius:var(--xxf-radius-sm);
  border:1px solid var(--xxf-line);transition:all var(--xxf-transition);
}
.section-head .more:hover{
  color:var(--xxf-primary);border-color:var(--xxf-primary);
  background:rgba(194,65,12,.04);
}

/* === Eyebrow === */
.eyebrow{
  display:inline-block;font-size:.75rem;font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;
  color:var(--xxf-primary);
  background:rgba(194,65,12,.08);
  padding:.2rem .7rem;border-radius:20px;
  margin-bottom:.5rem;
}

/* === Hero === */
.hero{padding:2rem 0 2.5rem}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:1.5rem;align-items:start;
}
.hero-card{
  background:var(--xxf-card);border-radius:var(--xxf-radius-lg);
  overflow:hidden;box-shadow:var(--xxf-shadow);
  transition:transform var(--xxf-transition),box-shadow var(--xxf-transition);
}
.hero-card:hover{transform:translateY(-3px);box-shadow:0 8px 30px rgba(67,20,7,.1)}
.hero-media{display:block;overflow:hidden}
.hero-media img{
  width:100%;aspect-ratio:16/9;object-fit:cover;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-card:hover .hero-media img{transform:scale(1.03)}
.hero-body{padding:1.5rem}
.hero-title{
  font-size:1.6rem;line-height:1.35;font-weight:700;margin-bottom:.5rem;
}
.hero-title a{color:var(--xxf-ink)}
.hero-title a:hover{color:var(--xxf-primary)}
.hero-desc{
  font-size:.95rem;color:var(--xxf-muted);line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

/* Hero sidebar */
.hero-side{display:flex;flex-direction:column;gap:1.25rem}
.panel{
  background:var(--xxf-card);border-radius:var(--xxf-radius);
  padding:1.25rem;box-shadow:var(--xxf-shadow);
}

/* === Rank List === */
.rank-list{counter-reset:rank;list-style:none}
.rank-list li{
  counter-increment:rank;
  padding:.55rem 0;border-bottom:1px solid var(--xxf-line);
  font-size:.9rem;
}
.rank-list li:last-child{border-bottom:none;padding-bottom:0}
.rank-list li::before{
  content:counter(rank);
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:7px;
  background:rgba(194,65,12,.08);color:var(--xxf-primary);
  font-size:.75rem;font-weight:700;margin-right:.6rem;
  flex-shrink:0;
}
.rank-list li:nth-child(-n+3)::before{
  background:var(--xxf-primary);color:#fff;
}
.rank-list a{color:var(--xxf-ink)}
.rank-list a:hover{color:var(--xxf-primary)}
.rank-list li a{
  display:inline;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* === Tag Cloud === */
.tag-cloud{display:flex;flex-wrap:wrap;gap:.45rem}
.tag-cloud a{
  display:inline-block;padding:.3rem .75rem;
  font-size:.8rem;color:var(--xxf-muted);
  background:rgba(194,65,12,.05);
  border:1px solid var(--xxf-line);
  border-radius:20px;
  transition:all var(--xxf-transition);
}
.tag-cloud a:hover{
  color:var(--xxf-primary);border-color:var(--xxf-accent);
  background:rgba(194,65,12,.1);
}

/* === Channel Grid === */
.grid-channels{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:1rem;
}
.channel-card{
  background:var(--xxf-card);border-radius:var(--xxf-radius);
  padding:1.25rem;box-shadow:var(--xxf-shadow);
  border:1px solid var(--xxf-line);
  transition:all var(--xxf-transition);
}
.channel-card:hover{
  border-color:var(--xxf-accent);
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(67,20,7,.08);
}
.channel-card h3{font-size:1rem;margin:.4rem 0 .3rem;color:var(--xxf-ink)}
.channel-card h3 a{color:var(--xxf-ink)}
.channel-card h3 a:hover{color:var(--xxf-primary)}
.channel-card p{font-size:.82rem;color:var(--xxf-muted);line-height:1.6}

/* === Layout Two (Main + Sidebar) === */
.layout-two{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:1.5rem;align-items:start;
}

/* === News List === */
.news-list{list-style:none}
.news-list li{
  border-bottom:1px solid var(--xxf-line);padding:.85rem 0;
}
.news-list li:last-child{border-bottom:none}
.news-list li a{
  display:flex;gap:1rem;align-items:center;
  color:var(--xxf-ink);transition:all var(--xxf-transition);
}
.news-list li a:hover{color:var(--xxf-primary)}
.news-list img{
  width:140px;height:100px;object-fit:cover;
  border-radius:var(--xxf-radius-sm);flex-shrink:0;
}
.news-list span{flex:1;min-width:0}
.news-list h2{
  font-size:1rem;font-weight:600;line-height:1.5;margin-bottom:.3rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.news-list p{
  font-size:.85rem;color:var(--xxf-muted);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.news-list .meta{
  display:block;font-size:.78rem;color:var(--xxf-muted);
  font-style:normal;margin-top:.3rem;
}

/* === Sidebar === */
.sidebar-card{
  position:sticky;top:100px;
  display:flex;flex-direction:column;gap:1.25rem;
}

/* === Pagination === */
.pagination{
  display:flex;flex-wrap:wrap;gap:.4rem;
  padding:1.5rem 0 0;justify-content:center;
}
.pagination a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 .6rem;
  font-size:.88rem;color:var(--xxf-ink);
  background:var(--xxf-card);border:1px solid var(--xxf-line);
  border-radius:var(--xxf-radius-sm);
  transition:all var(--xxf-transition);font-weight:500;
}
.pagination a:hover{
  background:var(--xxf-primary);color:#fff;
  border-color:var(--xxf-primary);
}

/* === Article (Show page) === */
.article-main{min-width:0}
.article-title{
  font-size:1.75rem;line-height:1.4;font-weight:700;
  margin-bottom:.75rem;color:var(--xxf-ink);
}
.article-main .meta{
  display:flex;flex-wrap:wrap;gap:.75rem;
  font-size:.85rem;color:var(--xxf-muted);
  padding-bottom:1rem;margin-bottom:1.5rem;
  border-bottom:1px solid var(--xxf-line);
}
.article-body{
  font-size:1.05rem;line-height:1.85;color:var(--xxf-ink);
  padding-bottom:1.5rem;
}
.article-body p{margin-bottom:1rem}
.article-body img{border-radius:var(--xxf-radius);margin:1rem 0}
.article-body h2,.article-body h3,.article-body h4{
  margin:1.5rem 0 .75rem;font-weight:700;color:var(--xxf-ink);
}
.article-body ul,.article-body ol{
  padding-left:1.5rem;margin-bottom:1rem;
}
.article-body ul{list-style:disc}
.article-body ol{list-style:decimal}
.article-body a{color:var(--xxf-primary);text-decoration:underline;text-underline-offset:3px}

/* Article Nav */
.article-nav{
  display:flex;flex-direction:column;gap:.6rem;
  padding:1.5rem 0 0;border-top:1px solid var(--xxf-line);
}
.article-nav a{
  font-size:.9rem;color:var(--xxf-ink);
  padding:.6rem 1rem;background:var(--xxf-card);
  border-radius:var(--xxf-radius-sm);
  border:1px solid var(--xxf-line);
  transition:all var(--xxf-transition);
}
.article-nav a:hover{
  color:var(--xxf-primary);border-color:var(--xxf-accent);
  background:rgba(194,65,12,.04);
}

/* === Footer === */
.site-footer{
  background:var(--xxf-ink);color:rgba(255,255,255,.7);
  margin-top:3rem;font-size:.88rem;
}
.footer-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:2rem;padding:2.5rem 0;
}
.footer-grid strong{
  display:block;font-size:1.1rem;color:#fff;margin-bottom:.5rem;
}
.footer-grid p{line-height:1.7;max-width:400px}
.footer-links{display:flex;flex-wrap:wrap;gap:.5rem;align-content:start}
.footer-links a{
  color:rgba(255,255,255,.65);
  padding:.35rem .8rem;border-radius:20px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:.82rem;transition:all var(--xxf-transition);
}
.footer-links a:hover{
  color:#fff;background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.2);
}
.copyright{
  padding:1rem 0;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;font-size:.8rem;
  color:rgba(255,255,255,.45);
}
.copyright a{color:rgba(255,255,255,.6)}
.copyright a:hover{color:#fff}

/* === Responsive === */
@media(max-width:1024px){
  .hero-grid{grid-template-columns:1fr}
  .hero-side{flex-direction:row;flex-wrap:wrap}
  .hero-side .panel{flex:1;min-width:260px}
  .layout-two{grid-template-columns:1fr}
  .sidebar-card{position:static}
  .grid-channels{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
}
@media(max-width:768px){
  .brand-row{flex-direction:column;align-items:stretch}
  .site-search{max-width:100%}
  .site-nav ul{gap:0}
  .site-nav a{padding:.4rem .6rem;font-size:.82rem}
  .hero-title{font-size:1.3rem}
  .footer-grid{grid-template-columns:1fr}
  .grid-channels{grid-template-columns:repeat(2,1fr)}
  .news-list img{width:110px;height:80px}
  .article-title{font-size:1.35rem}
}
@media(max-width:480px){
  .grid-channels{grid-template-columns:1fr}
  .hero-side{flex-direction:column}
  .news-list li a{flex-direction:column;align-items:stretch}
  .news-list img{width:100%;height:180px}
  .pagination a{min-width:34px;height:34px;font-size:.82rem}
}
