/*
Theme Name: ExtremePC
Description: ธีมสำหรับเว็บไซต์ข่าวและคู่มือเทคโนโลยี ExtremePC
Version: 1.2.10
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: extremepc
*/
:root{--ink:#141715;--paper:#f5f5ef;--accent:#dbff00;--line:#d9dcd4}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'IBM Plex Sans Thai',sans-serif}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid #739000;outline-offset:4px}.wrap{width:min(1380px,calc(100% - 104px));margin:auto}header{background:#fff}.top{height:88px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:10px;font:700 22px/1 'Space Grotesk',sans-serif;letter-spacing:-1px}.brandpc{color:#7b8e00}.brand small{display:block;font:600 8px/1.8 'Space Grotesk',sans-serif;letter-spacing:2.1px}.mark{display:grid;place-items:center;background:#191c19;color:var(--accent);width:42px;height:42px;font-size:30px;letter-spacing:-3px}.top nav{display:flex;gap:37px;font-size:14px;font-weight:600}.top nav a:hover,.text-link:hover{color:#788d00}.header-link{font-size:13px;font-weight:700;border-bottom:1px solid;padding-bottom:5px}.header-link span{margin-left:20px}.ticker{background:#181b18;color:#d4d9ca;font:500 10px 'Space Grotesk',sans-serif;letter-spacing:1.4px}.ticker .wrap{display:flex;justify-content:space-between;gap:20px;padding:11px 0}.ticker b{color:var(--accent)}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:650px;padding:28px 0 54px;gap:28px}.hero-copy{padding:50px 20px 0 0;display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font:700 11px 'Space Grotesk',sans-serif;letter-spacing:1.7px;display:flex;align-items:center;gap:10px}.eyebrow span{width:8px;height:8px;background:#a4bd00}.hero h1{font-size:clamp(49px,5.1vw,76px);line-height:1.17;letter-spacing:-3px;margin:38px 0 24px}.hero h1 em{font-style:normal;color:#879c00}.dot{color:#9fb600}.hero-copy>p{font-size:17px;line-height:1.9;max-width:465px;color:#555e55}.actions{display:flex;align-items:center;gap:30px;margin-top:25px}.button{display:inline-flex;justify-content:space-between;gap:35px;background:#171a17;color:white;padding:17px 20px;font-weight:600;font-size:14px;transition:transform .2s}.button:hover{transform:translateY(-2px)}.button span{color:var(--accent)}.text-link{font-size:14px;font-weight:600}.text-link span{margin-left:15px}.hero-index{width:100%;margin-top:auto;border-top:1px solid var(--line);padding-top:18px;display:flex;justify-content:space-between;font:600 10px 'Space Grotesk',sans-serif;letter-spacing:1px;color:#697067}.hero-visual{min-height:550px;background:linear-gradient(180deg,rgba(0,0,0,.23),transparent 40%,rgba(0,0,0,.7)),#253026 center/cover;display:flex;flex-direction:column;justify-content:space-between;color:white;padding:25px}.visual-top,.visual-bottom{display:flex;justify-content:space-between;align-items:start;font:700 11px/1.5 'Space Grotesk',sans-serif;letter-spacing:1.2px}.visual-top span:last-child{font-size:32px;color:var(--accent)}.visual-bottom{align-items:end}.visual-bottom span:first-child{font-size:20px}.stories{padding:100px 0 120px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:38px}.section-head h2{font-size:clamp(36px,4vw,56px);letter-spacing:-2px;line-height:1.2;margin:20px 0 10px}.section-head p{color:#697067;margin:0}.story-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:22px}.story{border-top:1px solid #1d211d;transition:transform .2s}.story:hover{transform:translateY(-3px)}.story-image{height:235px;background-size:cover;background-position:center;position:relative}.featured .story-image{height:310px}.tag{position:absolute;top:14px;left:14px;background:var(--accent);padding:8px 10px;font:700 10px 'Space Grotesk',sans-serif}.story-body{padding:22px 0}.meta{font-size:11px;font-weight:700;color:#697067;letter-spacing:.3px}.meta span{padding:0 7px;color:#a3af7c}.story h3{font-size:22px;line-height:1.45;margin:13px 0}.featured h3{font-size:28px}.story p{font-size:14px;line-height:1.8;color:#697067}.read{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;margin-top:30px;font-size:13px;font-weight:600}.guide-band{background:#1a1e1b;color:#fff}.guide-inner,.about-inner{display:grid;grid-template-columns:1fr 1fr;gap:80px;padding:105px 0}.light{color:#c6cec0}.light span{background:var(--accent)}.guide-inner h2{font-size:clamp(40px,5vw,70px);line-height:1.25;letter-spacing:-2px;margin:30px 0}.guide-inner h2 span{color:var(--accent)}.guide-list p,.about-inner p{color:#c3cabe;line-height:1.9;margin:0 0 35px;font-size:16px}.guide-list a{display:flex;gap:25px;border-top:1px solid #4b524a;padding:20px 0;font-weight:600}.guide-list a span{font:500 12px 'Space Grotesk';color:#a4b38f}.guide-list a b{margin-left:auto;color:var(--accent)}.button-light{background:var(--accent);color:#171a17}.button-light span{color:#171a17}footer{background:#111411;color:white}.footer-inner{padding:60px 0;display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:25px;align-items:start}.footer-inner p{margin:0;color:#a2aa9d;font-size:14px}.footer-inner div{display:flex;gap:20px;font-size:13px}.footer-inner>small{grid-column:1/-1;color:#8a9386;font:10px 'Space Grotesk';letter-spacing:1px;border-top:1px solid #3b423a;padding-top:25px}.footer-brand .mark{background:var(--accent);color:#111}.article{max-width:820px;margin:0 auto;padding:80px 24px 120px}.article h1{font-size:clamp(38px,5vw,58px);line-height:1.25;letter-spacing:-2px}.article h2{margin-top:48px;font-size:26px}.article p,.article li{font-size:18px;line-height:1.9;color:#3e493f}.article .lede{font-size:21px;color:#252b25}.article .back{display:inline-block;margin-bottom:36px;font-weight:600;font-size:14px}.article .disclosure{background:#e8eadf;padding:18px;font-size:14px}.article a:not(.back){text-decoration:underline}@media(max-width:900px){.wrap{width:calc(100% - 48px)}.top nav{gap:15px}.hero{grid-template-columns:1fr 1fr;min-height:0}.hero-copy{padding-top:20px}.hero h1{font-size:48px}.hero-visual{min-height:500px}.story-grid{grid-template-columns:1fr 1fr}.featured{grid-column:1/-1}.guide-inner{gap:40px}.footer-inner{grid-template-columns:1fr 1fr}}@media(max-width:650px){.wrap{width:calc(100% - 36px)}.top{height:72px}.top nav{display:none}.ticker .wrap span:nth-of-type(n+2){display:none}.hero{display:flex;flex-direction:column;padding:15px 0 35px}.hero-copy{padding:20px 0 0}.hero h1{font-size:48px;margin:24px 0 12px}.hero-copy>p{font-size:15px}.actions{gap:18px;margin:15px 0 30px}.hero-index{display:none}.hero-visual{min-height:330px}.stories{padding:75px 0}.section-head{display:block}.section-head>.text-link{display:inline-block;margin-top:20px}.story-grid{grid-template-columns:1fr}.featured{grid-column:auto}.story-image,.featured .story-image{height:240px}.story h3,.featured h3{font-size:23px}.guide-inner{grid-template-columns:1fr;gap:20px;padding:75px 0}.guide-inner h2{margin:20px 0}.footer-inner{grid-template-columns:1fr}.footer-inner>small{grid-column:auto}.article{padding-top:50px}}
/* WordPress content and navigation */
.skip-link,.screen-reader-text{position:absolute;left:-9999px}.skip-link:focus{left:12px;top:12px;z-index:100;background:#fff;padding:12px}.top nav ul,.footer-inner nav ul{display:flex;list-style:none;gap:28px;padding:0;margin:0}.custom-logo-link img{width:auto;max-width:220px;max-height:60px}.mobile-menu{display:none}.hero-image{position:relative;background:#252e26;overflow:hidden}.hero-image .hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0007,transparent 45%,#0009)}.hero-image>div{z-index:1}.story-thumb{background:#303a31;overflow:hidden}.story-thumb img{width:100%;height:100%;object-fit:cover}.story-grid .story-image{height:245px}.article-image img{width:100%;height:auto}.article-content img{max-width:100%;height:auto}.article-content a{overflow-wrap:anywhere}.article-meta{font-size:14px!important;color:#697067!important}.pagination{margin-top:40px}.nav-links{display:flex;gap:20px}.search-form{display:flex;gap:8px}.search-form input,.search-form button{font:inherit;padding:10px;border:1px solid #8c9789}.search-form button{background:#171a17;color:#fff;cursor:pointer}.footer-inner nav ul{flex-wrap:wrap}.footer-inner nav a{font-size:13px}.wp-block-image{margin-left:0;margin-right:0}.article-content table{max-width:100%;display:block;overflow-x:auto}@media(max-width:650px){.top>.header-link{display:none}.mobile-menu{display:block;position:relative}.mobile-menu summary{cursor:pointer;font-weight:600}.mobile-menu nav{display:block;position:absolute;z-index:10;right:0;top:35px;width:250px;padding:20px;background:#fff;box-shadow:0 8px 25px #0002}.mobile-menu nav ul{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}.mobile-menu .search-form input{width:135px}.hero-image{min-height:330px}}
/* Editorial refresh */
:root{--ink:#151b19;--paper:#f5f6f0;--accent:#d8fb36;--line:#d9ded7}body{background:var(--paper)}.wrap{width:min(1320px,calc(100% - 104px))}.top{height:82px}.top nav ul{gap:30px}.top nav a{padding:10px 0}.brand{text-transform:uppercase}.mark{background:#171d1a;color:var(--accent);border-radius:3px}.header-search .search-form input{width:145px;background:#f2f4ef;border:0;border-radius:4px 0 0 4px;font-size:13px}.header-search .search-form button{border:0;border-radius:0 4px 4px 0;font-size:13px}.header-search .search-form{gap:0}.ticker{background:#202a24}.ticker .wrap{padding:10px 0}.hero{min-height:640px;gap:45px;padding:32px 0 66px}.hero-copy{padding:54px 0 0}.hero h1{font-size:clamp(48px,5.2vw,76px);line-height:1.2;max-width:650px;letter-spacing:-2.5px;margin:35px 0 22px}.hero-copy>p{max-width:490px;color:#526057}.button{border-radius:4px;padding:17px 22px}.button:hover{background:#313d32}.hero-image{min-height:550px;border-radius:6px;background:#1e3028;isolation:isolate}.hero-image:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#d8fb3614 1px,transparent 1px),linear-gradient(90deg,#d8fb3614 1px,transparent 1px);background-size:48px 48px}.hero-image:after{background:linear-gradient(180deg,#0b1309aa,transparent 45%,#0b1309cc)}.hero-image>div{position:relative}.hero-graphic{position:absolute!important;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1}.hero-orbit{position:absolute;width:min(68%,370px);aspect-ratio:1;border:1px solid #d8fb3666;border-radius:50%;box-shadow:0 0 60px #d8fb3615,inset 0 0 60px #d8fb3610}.orbit-two{width:min(52%,280px);border-style:dashed;opacity:.65}.hero-core{display:flex;flex-direction:column;align-items:center;color:#d8fb36;font:600 10px/1.3 'Space Grotesk',sans-serif;letter-spacing:3px}.hero-core strong{font-size:clamp(85px,10vw,145px);line-height:1;letter-spacing:-10px}.visual-bottom span:first-child{font-size:17px}.visual-bottom span:last-child{font-size:9px}.topics{display:flex;align-items:center;gap:44px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:28px 0}.topics-label{flex:none}.topics h2{font-size:16px;margin:8px 0 0}.topic-links{display:flex;flex-wrap:wrap;gap:8px}.topic-links a{border:1px solid #cbd3c9;border-radius:3px;padding:10px 13px;font-size:13px;font-weight:600;transition:background .2s,border-color .2s}.topic-links a:hover{background:#e5efce;border-color:#8ca44a}.topic-links a span{margin-left:20px}.stories{padding:90px 0 105px}.section-head h2{margin-bottom:12px}.section-search input{min-width:210px}.story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}.story{border:0;background:#fff;border-radius:5px;overflow:hidden;box-shadow:0 1px 0 #dce2d8;transition:transform .2s,box-shadow .2s}.story:hover{transform:translateY(-3px);box-shadow:0 12px 32px #1d2e1b16}.story-link{display:flex;flex-direction:column;height:100%}.story-grid .story-image{height:auto;aspect-ratio:16/10;background:#26392f}.story-thumb img{transition:transform .25s}.story:hover .story-thumb img{transform:scale(1.025)}.tag{background:var(--accent);border-radius:2px;z-index:1}.story-body{display:flex;flex-direction:column;flex:1;padding:23px}.story h3,.featured h3{font-size:21px;line-height:1.5;margin:12px 0 5px}.story p{margin:5px 0;color:#667167}.read{margin-top:auto;padding-top:18px;min-height:54px;align-items:end}.pagination .nav-links,.pagination .page-numbers{display:flex;gap:8px;flex-wrap:wrap}.pagination a,.pagination span.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 13px;border:1px solid #cbd3c9;border-radius:3px}.pagination .current{background:#1c2920;color:#fff}.article{padding-top:70px}.article h1{line-height:1.3}.article-content{overflow-wrap:break-word}.article-content p,.article-content li{line-height:1.95}.disclosure{border-left:4px solid #9caf22}.footer-inner{gap:30px}.search-form input:focus-visible,.search-form button:focus-visible,summary:focus-visible{outline:3px solid #8ba21f;outline-offset:2px}@media(max-width:900px){.wrap{width:calc(100% - 48px)}.header-search{display:none}.hero{gap:24px}.hero h1{font-size:48px}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topics{align-items:flex-start;flex-direction:column;gap:18px}}@media(max-width:650px){.wrap{width:calc(100% - 36px)}.top{height:72px}.hero{gap:20px;padding:15px 0 40px}.hero-copy{padding:20px 0 0}.hero h1{font-size:42px;letter-spacing:-1.6px}.hero-copy>p{font-size:16px}.hero-image{min-height:315px}.actions{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 8px}.actions .button{width:100%}.actions .text-link{padding:8px 0}.topics{padding:25px 0}.topics-label h2{font-size:16px}.topic-links a{padding:10px}.stories{padding:65px 0}.section-search{margin-top:22px}.section-search .search-form input{min-width:0;width:100%}.section-search .search-form label{flex:1}.story-grid{grid-template-columns:1fr}.story-grid .story-image{aspect-ratio:16/9}.story-body{padding:20px}.hero-core strong{font-size:90px}.header-search{display:none}.article{padding:48px 18px 80px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.story,.story-thumb img,.button,.topic-links a{transition:none}}
/* Keep compact controls and hero labels readable at narrow widths. */
.pagination{display:flex;flex-wrap:wrap;gap:8px}.visual-bottom{gap:18px}.visual-bottom span:last-child{text-align:right;max-width:140px}@media(max-width:650px){.visual-bottom{align-items:flex-end}.visual-bottom span:first-child{font-size:14px}.visual-bottom span:last-child{max-width:110px;font-size:8px}}
/* ExtremePC editorial: dark technology shell, light reading surface. */
:root{--ink:#f2f7ed;--paper:#111915;--accent:#d3f732;--line:#34473a}body{background:var(--paper);color:var(--ink)}body>header{background:#17221c;color:#f4f8ee;border-bottom:1px solid #314339}body>header .mark{background:#d3f732;color:#132019}.top{height:80px}.top nav a{color:#e4eee1}.top nav a:hover{color:#d3f732}.header-search .search-form input{background:#24372a;color:#fff}.header-search .search-form input::placeholder{color:#becdbd}.header-search .search-form button{background:#d3f732;color:#132019}.ticker{background:#203126;color:#bacbb9}.ticker b{color:#d3f732}.hero{position:relative;isolation:isolate;gap:42px;padding:34px 0 68px}.hero:before{content:"";position:absolute;z-index:-1;inset:0 -30px;background:radial-gradient(ellipse at 70% 35%,#81c95117,transparent 45%),linear-gradient(90deg,transparent 98%,#c0ef8009 98%),linear-gradient(transparent 98%,#c0ef8009 98%);background-size:auto,52px 52px,52px 52px;pointer-events:none}.hero-copy>p{color:#bccbb9}.hero h1{color:#f5f9ef}.dot{color:#d3f732}.eyebrow{color:#c7e96c}.eyebrow span{background:#d3f732;box-shadow:0 0 12px #d3f73266}.hero-index{color:#a4b6a3;border-color:#3c5040}.hero .button{background:#d3f732;color:#142016;box-shadow:0 0 25px #a1d53b1c}.hero .button span{color:#142016}.hero .button:hover{background:#e2ff63}.hero .text-link{color:#e8f0e4}.hero .text-link:hover{color:#d3f732}.hero-image{background:#1a3324;border:1px solid #3a5943;border-radius:3px}.topics{border-color:#34473a}.topics h2{color:#f2f7ed}.topic-links a{color:#d9e7d5;border-color:#526b55}.topic-links a:hover{color:#142116;background:#d3f732;border-color:#d3f732}.stories .section-head p{color:#b8c9b6}.section-head h1,.section-head h2{color:#f2f7ed}.story{background:#1d2a22;color:#f0f5ed;box-shadow:none;border:1px solid #304437;border-radius:3px}.story:hover{box-shadow:0 14px 30px #050a0750;border-color:#789757}.story-body{padding:22px}.story p{color:#b7c8b5}.story .meta{color:#b5c6b2}.story .meta span{color:#d3f732}.story .read{border-color:#435747;color:#e8f2e4}.story-thumb{background-color:#243c2b;background-image:linear-gradient(135deg,#c1ef7f09 1px,transparent 1px),linear-gradient(45deg,#c1ef7f09 1px,transparent 1px);background-size:25px 25px}.tag{background:#d3f732;color:#142016}.pagination a,.pagination span.page-numbers{border-color:#526a54;color:#ecf4e9}.pagination .current{background:#d3f732;color:#142016;border-color:#d3f732}.search-form input{background:#f4f8f1;color:#17251b}.search-form button{background:#d3f732;color:#142016;border-color:#d3f732;font-weight:700}.mobile-menu nav{background:#203126;color:#f4f8ee}.mobile-menu nav a{color:#f4f8ee}.mobile-menu .search-form input{color:#17251b}.footer-inner{border-top:1px solid #324337}.footer-inner>small{border-color:#34483b}body.single,body.page,body.error404{background:#f5f7f1;color:#19251d}body.single>header,body.page>header,body.error404>header{background:#17221c;color:#f3f8ef}.article{max-width:850px;padding-top:65px}.article .eyebrow{color:#486b36}.article .eyebrow span{background:#8eb529;box-shadow:none}.article h1{font-size:clamp(38px,5vw,62px);line-height:1.27;color:#152219}.article .back{color:#405b43}.article-meta{color:#657368!important;border-bottom:1px solid #d8e1d6;padding-bottom:22px}.article-image{margin:28px 0;overflow:hidden;border-radius:3px}.article-content{max-width:780px}.article-content h2,.article-content h3{color:#1b2b20}.article-content p,.article-content li{color:#394a3d}.article-content a{color:#346535}.article .disclosure{background:#e7efe0;color:#273c29}.epc-review{background:#1a2c20;color:#f3f8ee;border:0;border-left:4px solid #b9dc36;padding:26px;margin:32px 0}.epc-review h2,.epc-review h3{color:#f3f8ee}.epc-review h2{font-size:24px;margin:0 0 22px}.epc-review h3{font-size:14px;color:#c2e66e;margin:16px 0 6px}.epc-review p{color:#d8e5d5}.epc-review h3:first-of-type{margin-top:0}@media(max-width:900px){.hero:before{inset:0 -10px}.top nav ul{gap:16px}}@media(max-width:650px){.top{height:70px}.hero{padding-top:14px}.hero h1{font-size:42px}.hero-copy>p{color:#c7d4c4}.hero .actions{margin-bottom:4px}.hero-image{min-height:315px}.stories{padding:65px 0}.article{padding:45px 18px 70px}.article h1{font-size:37px}.story-grid .story-image{aspect-ratio:16/9}.epc-review{padding:20px}.footer-inner p{color:#b1c0ae}}
.pagination span.page-numbers.current{color:#142016}.story-grid .story-thumb.no-thumb{height:58px;aspect-ratio:auto;background-color:#263c2b;background-image:linear-gradient(90deg,#a6d95d12 1px,transparent 1px),linear-gradient(#a6d95d12 1px,transparent 1px);background-size:32px 32px}

/* UX polish: Thai legibility + small-text sizes. Thai glyphs collide under
   heavy negative tracking, so headings get near-zero letter-spacing. */
.hero h1,.section-head h2,.article h1,.guide-inner h2{letter-spacing:-.5px}
.brand small{font-size:10px;letter-spacing:1.8px}
.visual-bottom span:last-child{font-size:10px}
.footer-inner>small{font-size:11px;letter-spacing:.8px}
.article-meta{color:#4b554c!important}
.hero .text-link,.section-head>.text-link{padding:10px 0}

/* Below 1180px the 8-item menu wraps, so tablets and small laptops get the collapsible menu (which carries the search). */
.top nav a{white-space:nowrap}
@media(min-width:651px) and (max-width:1180px){.top>nav{display:none}.header-search{display:none}.mobile-menu{display:block;position:relative}.mobile-menu summary{cursor:pointer;font-weight:600;padding:12px}.mobile-menu nav{display:block;position:absolute;z-index:10;right:0;top:45px;width:250px;padding:20px;background:#203126;color:#f4f8ee;box-shadow:0 8px 25px #0002}.mobile-menu nav ul{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}.mobile-menu .search-form input{width:135px;color:#17251b}}
.ticker a{color:inherit}.ticker a:hover{color:#d3f732}@media(max-width:650px){.ticker .wrap a:nth-of-type(n+3){display:none}}
/* Post covers are 1200x630 with text near the edges: give the card frame the same ratio so object-fit:cover crops nothing. */
.story-grid .story-thumb:not(.no-thumb){aspect-ratio:1200/630}
/* In-article photos with a source credit (public-domain photos, credits in content/images/credits.json). */
.article-content .article-photo{margin:28px 0}.article-content .article-photo img{display:block;width:100%;height:auto;border-radius:3px}.article-content .article-photo figcaption{margin-top:8px;font-size:13px;line-height:1.6;color:#9fb29c}.article-content .article-photo figcaption a{color:inherit;text-decoration:underline}
