/*
Theme Name: Hallyu Light
Description: Mobile-first Hallyu K Star prototype.
Version: 0.1.22
Text Domain: hallyu-light
*/
:root{color-scheme:dark;--bg:#202124;--text:#eee;--pink:#ed1665;--muted:#b6b6b8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:"Noto Sans Thai",Tahoma,Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}button,input{font:inherit}.wrap{width:min(100% - 32px,1440px);margin:auto}.site-header{background:linear-gradient(110deg,#ed0756,#ed3b42);border-top:3px solid #e72a8b}.header-inner{min-height:90px;display:flex;align-items:center;justify-content:space-between}.brand img{width:96px;height:auto}.brand-text{font-weight:900;line-height:.9;font-size:22px}.tools{display:flex;gap:18px}.tools button{border:0;background:none;color:white;font-size:22px;cursor:pointer}.main-nav{display:none}.search-box{display:none;padding:0 0 15px}.search-box.open{display:block}.search-box input{width:100%;padding:10px;color:#222}.home{padding-top:48px}.grid{display:grid;grid-template-columns:1fr;gap:25px}.card-image{position:relative;aspect-ratio:1200/630;background:#343436;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover}.category{background:var(--pink);color:#fff;display:inline-block;padding:3px 12px;border-radius:3px;font-size:14px;font-weight:bold}.card-image .category{position:absolute;right:10px;bottom:0}.card h2{font-size:23px;line-height:1.4;font-weight:500;margin:9px 0 0}.meta{font-size:13px;color:var(--muted);margin-top:12px}.article{max-width:850px;padding-top:16px}.article h1{font-size:27px;line-height:1.3;margin:10px 0 20px}.hero{margin:22px 0 18px;aspect-ratio:1200/630;background:#303034}.hero img{width:100%;height:100%;object-fit:cover}.content{color:#d6d6d8;font-size:16px;line-height:1.9;overflow-wrap:anywhere}.content h2,.content h3{color:#eee;line-height:1.4}.content iframe{max-width:100%}.related{margin-top:48px}.section-label{background:var(--pink);color:#fff;display:inline-block;padding:5px 12px;margin-bottom:18px}.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.related h3{font-size:15px;line-height:1.45;margin:8px 0}.footer{margin-top:70px;padding:30px 0;color:var(--muted);border-top:1px solid #444}.skip{position:absolute;left:-9999px}.skip:focus{left:0;top:0;background:white;color:black;z-index:100}.pagination{margin:28px 0}.nav-menu{list-style:none;padding:0;margin:0;display:flex;gap:20px}.screen-reader-text{position:absolute;left:-9999px}@media(min-width:768px){.header-inner{min-height:100px}.main-nav{display:block}.grid{grid-template-columns:repeat(3,1fr)}.grid .card:first-child{grid-column:span 2}.article h1{font-size:38px}.content{font-size:18px}.related-grid{grid-template-columns:repeat(3,1fr)}}

.load-more-wrap{text-align:center;margin:40px 0}.load-more{background:#ed1665;color:#fff;border:0;border-radius:24px;padding:11px 36px;font-weight:700;cursor:pointer}.load-more:disabled{opacity:.65;cursor:wait}.load-more:focus-visible{outline:3px solid white;outline-offset:3px}#load-more-status{color:#bbb;font-size:14px}

/* Links within article content */
.single-post .article .content a { color: #ed1665; text-decoration: underline; text-underline-offset: 0.15em; }

/* Homepage: one news stream, responsive feature area */
.home-featured {display:grid;grid-template-columns:1fr;gap:25px}
.home-latest-heading {font-size:24px;line-height:1.4;border-left:5px solid #ed1665;padding-left:12px;margin:38px 0 18px}
.home .card-image img {object-fit:contain}
.home .home-latest .card:first-child {grid-column:auto}
@media (min-width:768px) {
 .home-featured,.home .home-latest {grid-template-columns:repeat(2,minmax(0,1fr))}
 .home .home-latest .card:first-child {grid-column:auto}
}
@media (min-width:1024px) {
 .home {padding-top:32px}
 .home-featured {grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:auto auto;column-gap:25px;row-gap:20px;align-items:start}
 .home-featured .card:first-child {grid-column:1;grid-row:1 / span 2}
 .home-featured .card:not(:first-child) {grid-column:2}
 .home-featured .card:first-child h2 {font-size:28px;font-weight:700;line-height:1.35}
 .home-featured .card:not(:first-child) h2 {font-size:20px;line-height:1.35}
 .home .home-latest {grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Capsule labels on post images */
.card-image .category { border-radius: 9999px; }

/* Editorial links, headings and capsule labels */
.single-post .article .content a { color: #ED1665; text-decoration: underline; text-underline-offset: 0.15em; }
.single-post .article .content h2,
.single-post .article .content h3 { color: #FFBFD9; }
.card-image .category { left: 10px; right: auto; bottom: 10px; border-radius: 9999px; }
.single-post .article > .category { border-radius: 9999px; }
.single-post .related .section-label { border-radius: 9999px; }
.home-latest-heading { display: inline-block; background: #ED1665; color: #fff; border-left: 0; border-radius: 9999px; padding: 5px 16px; }

/* Standard WordPress pages */
.standard-page { padding-top: 32px; }
.standard-page h1 { margin-top: 0; overflow-wrap: anywhere; }
.standard-page .page-featured-image { margin: 22px 0; }
.standard-page .page-featured-image img { width: 100%; height: auto; }
.standard-page .content a { color: #ED1665; text-decoration: underline; text-underline-offset: 0.15em; }
.standard-page .content h2, .standard-page .content h3 { color: #FFBFD9; }
.standard-page .content img, .standard-page .content video { max-width: 100%; height: auto; }
.standard-page .content iframe { max-width: 100%; }

/* Responsive site footer */
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-social-links a:hover, .footer-social-links a:focus-visible { color: #fff; text-decoration: underline; }
.footer-copyright { text-align: right; margin-left: auto; }
@media (max-width: 767px) { .footer-inner { flex-direction: column; } .footer-copyright { text-align: left; margin-left: 0; } }

/* Article contrast: legible labels and links on dark backgrounds. */
.single-post .article > .category,
.single-post .related .section-label { background-color: #C90050; color: #FFFFFF; }
.single-post .article .content a { color: #FF7CAB; text-decoration: underline; text-underline-offset: 0.15em; }

/* Consistent accessible contrast for pink labels and buttons. */
.category, .section-label, .home-latest-heading, .load-more { background-color: #C90050; color: #FFFFFF; }

/* Article share controls */
.share-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:22px 0;border-top:1px solid #555;border-bottom:1px solid #555;padding:12px 0}
.share-label{color:#c8c8cc;font-size:15px;font-weight:700;margin-right:4px}
.share-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;color:#fff;cursor:pointer;padding:10px}
.share-button svg{width:24px;height:24px;fill:currentColor}
.share-facebook{background:#0866ff}.share-x{background:#000}.share-line{background:#007d00}.share-copy{background:#666b75}
.share-button:hover{filter:brightness(1.15)}.share-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.share-status{font-size:13px;color:#eee}
@media(max-width:350px){.share-bar{gap:8px}.share-label{flex-basis:100%}}

/* Responsive footer */
.footer{background:#191a1d;padding:36px 0;color:#ccc}
.footer-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:30px}
.footer-brand img{width:120px;height:auto}
.footer-heading{color:#fff;font-size:18px;line-height:1.4;margin:0 0 14px}
.footer-heading:after{content:"";display:block;width:36px;height:3px;margin-top:8px;background:#ed1665}
.footer-page-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.footer-page-links a{color:#eee;padding:3px 0}
.footer-icons{display:flex;flex-wrap:wrap;gap:8px}
.footer-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:#fff}
.footer-icon svg{width:30px;height:30px}
.footer-page-links a:hover,.footer-page-links a:focus-visible{color:#ff7cab;text-decoration:underline}
.footer-icon:focus-visible,.footer-brand a:focus-visible{outline:3px solid #fff;outline-offset:2px}
.footer-copyright{border-top:1px solid #555;padding-top:18px;color:#bbb;margin:0;text-align:left}
@media(min-width:768px){.footer-layout{grid-template-columns:1fr 1fr;column-gap:60px;row-gap:24px}.footer-brand{grid-column:1;grid-row:1}.footer-follow{grid-column:1;grid-row:2 / span 2}.footer-about{grid-column:2;grid-row:1 / span 2}.footer-copyright{grid-column:2;grid-row:3;align-self:end}}

/* Tighter footer navigation on desktop. */
@media(min-width:768px){.footer-page-links{gap:2px}.footer-page-links a{line-height:1.4;padding:2px 0}}

/* Compact footer navigation */
.footer{padding:24px 0}
.footer-compact{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 24px}
.footer-group{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px}
.footer-pill{margin:0;padding:4px 12px;border-radius:9999px;background:#c90050;color:#fff;font-size:14px;line-height:1.5;white-space:nowrap}
.footer-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
.footer-nav a{color:#eee;font-size:14px;line-height:1.4;white-space:nowrap;padding:5px 8px}
.footer-nav a+a{border-left:1px solid #999}
.footer-nav a:hover,.footer-nav a:focus-visible{color:#ff7cab;text-decoration:underline}
.footer-icons{gap:0;justify-content:center}
.footer-icon{width:44px;height:44px;color:#fff}
.footer-icon svg{width:23px;height:23px;fill:currentColor}
.footer-icon:hover{color:#ff7cab}
.footer-copyright{border:0;padding:0;margin:0;color:#bbb;font-size:14px;white-space:nowrap;text-align:center}
@media(min-width:1200px){.footer-compact{justify-content:space-between;flex-wrap:nowrap;gap:8px}.footer-group{flex-wrap:nowrap;gap:5px}.footer-nav{flex-wrap:nowrap}.footer-nav a{padding-left:6px;padding-right:6px}.footer-icon{width:38px}}
@media(max-width:767px){.footer-compact{flex-direction:column;gap:12px}.footer-copyright{margin:0;text-align:center}}

/* Mobile dropdown uses the same primary menu as desktop. */
.header-inner{position:relative}
.tools{align-items:center}
.tools .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px}
.mobile-menu-toggle svg{width:24px;height:24px;fill:currentColor}
.mobile-menu{position:absolute;z-index:30;top:100%;right:0;width:min(240px,calc(100vw - 32px));max-height:calc(100vh - 110px);overflow-y:auto;padding:6px 0;background:#c90050;color:#fff;border-radius:0 0 10px 10px;box-shadow:0 8px 20px #0005}
.mobile-menu[hidden]{display:none}
.mobile-menu-list,.mobile-menu-list .sub-menu{list-style:none;margin:0;padding:0}
.mobile-menu-list a{display:block;padding:10px 18px;min-height:44px;line-height:24px;font-size:16px;font-weight:700;color:#fff}
.mobile-menu-list .sub-menu a{padding-left:32px;font-weight:400}
.mobile-menu-list a:hover,.mobile-menu-list a:focus-visible{background:#99003d;outline:2px solid #fff;outline-offset:-3px}
.mobile-menu-toggle:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(min-width:768px){.tools .mobile-menu-toggle{display:none}.mobile-menu{display:none}}

/* Article cover above the headline with a subtle fade into the page. */
.single-post .article > .hero{position:relative;overflow:hidden;margin:0 0 18px}
.single-post .article > .hero::after{content:"";position:absolute;inset:auto 0 0;height:15%;background:linear-gradient(to bottom,transparent,var(--bg));pointer-events:none}

/* Center article and related posts on wider screens. */
@media (min-width:768px){.single-post .article{margin-left:auto;margin-right:auto}}

/* Center standard pages on wider screens. */
@media (min-width:768px){.standard-page{margin-left:auto;margin-right:auto}}

/* Advertisement slots */
.hallyu-ad{min-width:0;margin:24px 0;min-height:280px;overflow-wrap:anywhere}
.hallyu-ad-home{margin:0;min-height:280px}
.hallyu-ad-label{display:block;color:#bbb;font-size:12px;line-height:1.4;margin-bottom:8px}
.hallyu-ad ins.adsbygoogle{max-width:100%}

/* Recommended article cards */
.next-articles{display:grid;gap:16px}
.next-card{min-width:0;border:1px solid #555;border-radius:10px;overflow:hidden}
.next-card-link{display:block;color:inherit}
.next-card-image{aspect-ratio:1200/630;background:#303034;overflow:hidden}
.next-card-image img{width:100%;height:100%;object-fit:contain}
.next-card-copy{padding:12px}
.related .next-card h3{font-size:18px;line-height:1.4;margin:0 0 6px}
.next-card-copy p{color:#d6d6d8;font-size:15px;line-height:1.55;margin:0;overflow-wrap:anywhere}
.next-card-link:hover h3{text-decoration:underline}
.next-card-link:focus-visible{outline:3px solid #fff;outline-offset:-3px}
#related-load-status{color:#bbb;font-size:14px}
@media(min-width:768px){.next-card-link{display:grid;grid-template-columns:minmax(0,36%) minmax(0,1fr);align-items:center;gap:8px}.next-card-copy{padding:14px}}
