/* skin as-wapzch · mode light */
[data-color-scheme="as-wapzch"], :root {
  --primary-background:#fdf8f5;
  --secondary-background:#f7ece4;
  --primary-text-color:#1d1310;
  --secondary-text-color:#6f5a4f;
  --tertiary-text-color:#6f5a4f;
  --white-text-color:#ffffff;
  --link-color:#c2410c;
  --color-scheme-bg:#c2410c;
  --color-scheme-bg2:#9d174d;
  --color-scheme-txt:#c2410c;
  --gradient-bg-color:linear-gradient(45deg, #c2410c 0%, #9d174d 64%, #c2410c 100%);
  --gradient-btn-color:linear-gradient(135deg, #9d174d 0%, #c2410c 100%);
  --skin-radius:15px;
  --skin-font:"Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;
  --skin-line-height:1.85;
  --skin-gap:14px;
  --lightest-grey:#ffffff;
  --light-grey:#f1f2f5;
  --medium-grey:#c9ccd3;
  --normal-grey:#5b6270;
  --dark-grey:#14161c;
  --darkest-grey:#0b0d12;
  --white:#ffffff;
}
html,body{background:var(--primary-background)!important;color:var(--primary-text-color)}
#wrapper,#content-wrapper,.content,.main-content,.section,.post-container,.widget{background:transparent}
header#header{background:var(--secondary-background)}
#aside-top,#aside-top-widgets,.aside-top-widgets{background:transparent!important}
#menu-label-outer{background:var(--gradient-bg-color)}
h1,h2,h3,h4,.post-title,.post-title a{color:var(--primary-text-color)}
.nav-list,header#header nav ul{display:flex;flex-wrap:wrap}
.post-body figure,.post-body img{background:transparent}
.post-body figure{margin:18px 0}
body{font-family:var(--skin-font);line-height:var(--skin-line-height)}
h1,h2,h3{letter-spacing:0.14px}
.post-container,.c-widget,.author-profile,.jp-post-author-box{border-radius:var(--skin-radius)}
.btn,.post-meta-label,.label-name{border-radius:calc(var(--skin-radius) * .6)}
.c-widget-title span{border-bottom-color:var(--link-color)}
a{color:var(--link-color)}
.post-title a:hover{color:var(--link-color)}

/* varian layout: magazine (kartu pertama besar) */
body.is-homepage .content{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--skin-gap)}
body.is-homepage .content .post-container:first-child{grid-column:1/-1}
body.is-homepage .content .post-container:first-child img{height:380px;object-fit:cover}
body.is-homepage .content .post-container:first-child .post-title{font-size:1.9rem}
@media(max-width:720px){body.is-homepage .content{grid-template-columns:1fr}}

/* related cards di halaman artikel */
#ms-related-post ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;margin:0;padding:0;list-style:none}
#ms-related-post li{display:flex;flex-direction:column;min-width:0;list-style:none;
  background:var(--secondary-background);border:1px solid var(--light-grey);
  border-radius:var(--skin-radius);overflow:hidden}
#ms-related-post li>div:first-child{aspect-ratio:16/9;overflow:hidden;background:var(--lightest-grey)}
#ms-related-post li img{width:100%;height:100%;object-fit:cover;display:block}
#ms-related-post li>div:last-child{padding:12px 14px 16px;min-width:0}
#ms-related-post li a{color:var(--primary-text-color);text-decoration:none;font-weight:700;
  font-size:1rem;line-height:1.4;display:block;margin-bottom:6px}
#ms-related-post li span{font-size:.82rem;color:var(--secondary-text-color);font-weight:400;
  line-height:1.5}
@media(max-width:720px){#ms-related-post ul{grid-template-columns:1fr 1fr;gap:12px}}

/* popular list (widget "Popular Now") */
#PopularPosts1 .popular-post{display:grid;grid-template-columns:96px 1fr;gap:12px;
  align-items:start;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--light-grey)}
#PopularPosts1 .popular-post img{width:96px;height:72px;object-fit:cover;display:block;
  border-radius:calc(var(--skin-radius) * .6)}
#PopularPosts1 .popular-post a{color:var(--primary-text-color);text-decoration:none;
  font-size:1rem;line-height:1.4}

/* meta byline di kartu: kecil & muted; judul kartu konsisten */
body.is-homepage article.post-container .has-author,
#FeaturedPost1 .has-author{font-size:.86rem;color:var(--secondary-text-color);line-height:1.7}
body.is-homepage article.post-container .has-author *,
#FeaturedPost1 .has-author *{font-size:inherit;color:inherit;font-family:inherit}
body.is-homepage article.post-container .post-title a{font-size:1.06rem;font-weight:700}
#PopularPosts1 .popular-post .has-author{font-size:.8rem}

/* hero "Featured Stories": 2 kolom, gambar mengisi (selektor struktural) */
#FeaturedPost1>div>div:nth-child(2){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:2.2rem;align-items:stretch;background:var(--secondary-background);
  border:1px solid var(--light-grey);border-radius:var(--skin-radius);overflow:hidden}
#FeaturedPost1>div>div:nth-child(2)>div:first-child{margin:0;min-width:0}
#FeaturedPost1>div>div:nth-child(2)>div:first-child img{width:100%;height:100%;min-height:26rem;
  max-height:36rem;object-fit:cover;display:block;border-radius:0}
#FeaturedPost1>div>div:nth-child(2)>div:last-child{padding:2.2rem 2.4rem;min-width:0}
@media(max-width:820px){#FeaturedPost1>div>div:nth-child(2){grid-template-columns:1fr;gap:0}
  #FeaturedPost1>div>div:nth-child(2)>div:first-child img{min-height:0;max-height:none;aspect-ratio:16/9}}

/* popular list (widget "Popular Now"): thumbnail kiri, teks rapat */
#PopularPosts1 .popular-post{display:grid;grid-template-columns:9.6rem 1fr;gap:1.2rem;
  align-items:start;padding:0 0 1.4rem;margin:0 0 1.4rem;
  border-bottom:1px solid var(--light-grey);line-height:1.5}
#PopularPosts1 .popular-post>div{display:block;min-width:0}
#PopularPosts1 .popular-post img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
  border-radius:calc(var(--skin-radius) * .6);display:block}
#PopularPosts1 .popular-post a{font-family:var(--ui-font);font-size:1.5rem;font-weight:600;
  line-height:1.45;color:var(--primary-text-color);text-decoration:none}
#PopularPosts1 .popular-post .has-author{font-size:1.25rem;line-height:1.6}

/* ==== tipografi seimbang (basis html 62.5% -> 1rem = 10px) ==== */
:root{--ui-font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
h1,h2,h3,h4,h5,.post-title,.title,.title span,#ms-related-post h2,#ToC-title{font-family:var(--ui-font)}
h1{font-size:3.2rem;line-height:1.22;font-weight:800;letter-spacing:-.02em;margin:0 0 1rem}
.post-body h2{font-size:2.2rem;line-height:1.32;font-weight:700;letter-spacing:-.01em;margin:2.4rem 0 .9rem}
.post-body h3{font-size:1.8rem;line-height:1.38;font-weight:700;margin:1.8rem 0 .6rem}
.post-body p{font-size:1.8rem;line-height:1.85}
.widget>.title,.widget .title{margin:0 0 1.4rem}
.widget>.title span,.widget .title span{font-size:2rem;font-weight:800;letter-spacing:-.01em}
#ms-related-post h2{font-size:2rem;font-weight:800;letter-spacing:-.01em;margin:0 0 1.6rem}
body.is-homepage article.post-container .post-title a{font-family:var(--ui-font);font-size:1.6rem;
  font-weight:700;line-height:1.36;letter-spacing:-.008em}
#FeaturedPost1 .post-title{font-family:var(--ui-font);font-size:2.4rem;font-weight:800;
  line-height:1.28;letter-spacing:-.018em}
#PopularPosts1 .popular-post a{font-family:var(--ui-font);font-size:1.5rem;font-weight:600;line-height:1.38}
#ms-related-post li a{font-family:var(--ui-font);font-size:1.55rem;font-weight:700;line-height:1.38}
body.is-homepage article.post-container .has-author,
#FeaturedPost1 .has-author,#PopularPosts1 .popular-post .has-author,
#ms-related-post li span{font-size:1.3rem;line-height:1.6}

/* breadcrumb: panah ikon diganti pemisah teks */
[itemtype*="BreadcrumbList"] .icon-arrow-down{display:none}
[itemtype*="BreadcrumbList"] [itemprop="itemListElement"]+[itemprop="itemListElement"]::before{
  content:"›";margin:0 .4rem;color:var(--secondary-text-color)}
[itemtype*="BreadcrumbList"]{line-height:1.5;flex-wrap:wrap;align-items:center}
[itemtype*="BreadcrumbList"] [itemprop="itemListElement"]:last-child{max-width:52ch;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
[itemtype*="BreadcrumbList"] [itemprop="itemListElement"]:last-child [itemprop="name"]{font-size:1.3rem}

/* kartu home/kategori: judul + meta jangan menempel ke tepi */
body.is-homepage article.post-container .post-title a{color:var(--primary-text-color);text-decoration:none}
body.is-homepage article.post-container .post-title a:hover{color:var(--link-color)}

/* newline di judul DB jangan jadi baris kosong */
body.is-homepage article.post-container .post-title,#PopularPosts1 .popular-post,
#ms-related-post li,#FeaturedPost1 .post-title{white-space:normal}

/* home/kategori: breadcrumb sidebar disembunyikan (H1 sudah jelas) + H1 lebih tegas */
body.is-homepage [itemtype*="BreadcrumbList"]{display:none}
body.is-homepage h1{font-size:2.4rem;font-weight:800;letter-spacing:-.02em}
