/*
Theme Name: TekaTeki — Tech Pulse
Theme URI: https://tekateki.org/
Description: Technology & Innovation editorial WordPress theme with featured stories and a 3x4 latest stories grid. No demo import required.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tekateki
*/
:root{--bg:#09090d;--panel:#11111a;--panel-2:#171724;--line:rgba(255,255,255,.08);--text:#f6f7fb;--muted:#b8bbca;--soft:#9095ab;--pink:#ff2e93;--pink-2:#ff4fa8;--cyan:#38e8ff;--violet:#904bff;--card-radius:22px;--shadow:0 24px 80px rgba(0,0,0,.32);--wrap:1320px;--font:"Noto Sans Thai",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font);background:radial-gradient(circle at top right, rgba(144,75,255,.18), transparent 24%),radial-gradient(circle at top left, rgba(255,46,147,.14), transparent 20%),var(--bg);color:var(--text);font-size:16px;line-height:1.7}a{color:inherit;text-decoration:none}a:hover{color:var(--cyan)}img{display:block;max-width:100%;height:auto}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(56,232,255,.7);outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{line-height:1.15;letter-spacing:-.02em}.skip-link{position:absolute;left:-999px;top:auto}.skip-link:focus{left:24px;top:16px;z-index:999;background:#fff;color:#111;padding:10px 14px;border-radius:8px}.wrap{width:min(calc(100% - 48px),var(--wrap));margin:auto}.site-header{position:sticky;top:0;z-index:40;background:rgba(9,9,13,.85);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06)}.masthead{display:flex;align-items:center;gap:24px;min-height:84px}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand-mark{width:56px;height:56px;border-radius:18px;background:linear-gradient(145deg,var(--pink),var(--violet) 55%,var(--cyan));display:grid;place-items:center;color:#fff;font:900 22px/1 Arial,sans-serif;box-shadow:0 12px 40px rgba(255,46,147,.25)}.brand-copy{min-width:0}.brand-copy b{display:block;font-size:33px;line-height:1;font-weight:900;letter-spacing:-.05em}.brand-copy span{display:block;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-top:6px}.site-tagline{margin-left:auto;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);display:none}.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.action-btn,.menu-toggle{width:46px;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.02);color:#fff;display:grid;place-items:center}.menu-toggle{width:auto;padding:0 18px;gap:10px;display:inline-flex}.menu-toggle .bars{display:grid;gap:4px}.menu-toggle .bars i{display:block;width:16px;height:2px;background:#fff;border-radius:2px}.main-nav{display:flex;align-items:center;gap:0;overflow:auto;white-space:nowrap;min-height:58px;border-top:1px solid rgba(255,255,255,.06)}.main-nav a{padding:0 18px;color:#f8f8fb;font-weight:700;font-size:15px;flex:none}.main-nav a+a::before{content:"/";margin-right:18px;color:rgba(255,255,255,.28)}.main-nav a.current,.main-nav a:hover{color:var(--cyan)}.main-nav a:last-child{margin-left:auto;color:var(--pink-2);padding-right:0}.main-nav a:last-child::before{color:rgba(255,255,255,.28)}.panel{display:none;border-top:1px solid rgba(255,255,255,.06);padding:18px 0 22px}.panel.is-open{display:block}.menu-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.menu-panel a{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.04);font-weight:700}.menu-panel a:hover{background:rgba(255,255,255,.08)}.search-form{display:flex;gap:10px;max-width:720px}.search-form input{flex:1;min-width:0;padding:14px 16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:14px}.search-form button{padding:14px 18px;border:0;background:linear-gradient(90deg,var(--pink),var(--violet));color:#fff;border-radius:14px;font-weight:700}.home-main{padding:36px 0 72px}.section{margin-top:54px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}.kicker{display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--cyan);margin-bottom:12px}.kicker::before{content:"";width:32px;height:3px;border-radius:999px;background:linear-gradient(90deg,var(--pink),var(--cyan))}.section h1,.section h2{font-size:clamp(29px,4.2vw,52px);font-weight:900}.section .muted,.section-head>a{font-size:14px;color:var(--muted)}.hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) 360px;gap:28px;align-items:start}.hero-card{position:relative;border-radius:28px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.07)}.hero-media{aspect-ratio:16/9;background:linear-gradient(135deg,#1a1730,#24112d 45%,#0f2332)}.hero-media img{width:100%;height:100%;object-fit:cover}.hero-placeholder{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,rgba(56,232,255,.18),transparent 22%),repeating-linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.05) 1px,transparent 1px,transparent 28px),linear-gradient(135deg,#1b1024,#0d1d2d)}.hero-placeholder span{font-size:72px;font-weight:900;letter-spacing:-.05em;background:linear-gradient(90deg,var(--pink),var(--cyan));-webkit-background-clip:text;background-clip:text;color:transparent}.hero-overlay{position:absolute;inset:auto 0 0 0;padding:26px 28px 24px;background:linear-gradient(180deg,rgba(5,5,9,0),rgba(5,5,9,.92) 38%,rgba(5,5,9,.98))}.hero-label{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,46,147,.16);border:1px solid rgba(255,46,147,.28);font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#fff;font-weight:800;margin-bottom:14px}.hero-title{font-size:clamp(26px,3vw,44px);line-height:1.1;font-weight:900;max-width:92%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hero-excerpt{margin-top:12px;max-width:720px;font-size:16px;color:#d7dae6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hero-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:13px;color:var(--muted)}.hero-meta .dot{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.32)}.cta-link{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:11px 16px;border-radius:999px;background:linear-gradient(90deg,var(--pink),var(--violet));font-size:14px;font-weight:800;box-shadow:0 10px 30px rgba(255,46,147,.2)}.top-list{border-radius:24px;padding:20px 22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(8px)}.top-list-head{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}.top-list-head h3{font-size:32px;line-height:1;font-weight:900;color:#fff}.top-list-head span{font-size:13px;color:var(--muted)}.top-item{padding:18px 0;border-bottom:1px solid var(--line)}.top-item:last-child{padding-bottom:0;border-bottom:0}.top-link{display:grid;grid-template-columns:36px minmax(0,1fr) 76px;gap:12px;align-items:start}.top-num{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(56,232,255,.28);color:var(--cyan);font-weight:800;font-size:12px;line-height:1}.top-copy h4{font-size:24px;line-height:1.2;font-weight:800;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.top-copy time,.story time,.meta-line{font-size:12px;color:var(--muted);display:block;margin-top:10px}.top-thumb{width:76px;height:76px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.06)}.top-thumb img{width:100%;height:100%;object-fit:cover}.latest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}.story{min-width:0}.story-link{display:block}.story-media{aspect-ratio:16/10;border-radius:20px;overflow:hidden;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.story-media img{width:100%;height:100%;object-fit:cover}.story-placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#16162a,#0c2231)}.story-placeholder span{font-size:40px;font-weight:900;background:linear-gradient(90deg,var(--pink),var(--cyan));-webkit-background-clip:text;background-clip:text;color:transparent}.story-copy{padding:14px 4px 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--pink-2)}.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(90deg,var(--pink),var(--cyan))}.story-title{margin-top:10px;font-size:26px;font-weight:800;line-height:1.22;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.story-excerpt{margin-top:10px;font-size:15px;color:#d0d3df;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.story:hover .story-title,.top-link:hover h4,.hero-card:hover .hero-title{color:var(--cyan)}.split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.mini-panel{padding:22px;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}.mini-panel h3{font-size:24px;font-weight:900;margin-bottom:6px}.mini-panel p{font-size:15px;color:var(--muted)}.empty{padding:34px;border-radius:24px;background:rgba(255,255,255,.03);border:1px dashed rgba(255,255,255,.14);text-align:center;color:var(--muted)}.archive-shell,.single-shell{padding:44px 0 70px}.archive-head{margin-bottom:26px}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}.single-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px}.article-card{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:28px;box-shadow:var(--shadow)}.article-cover{border-radius:22px;overflow:hidden;margin-bottom:24px;background:rgba(255,255,255,.04)}.article-cover img{width:100%;height:auto}.article-head .eyebrow{margin-bottom:10px}.article-head h1{font-size:clamp(30px,4vw,54px);font-weight:900;line-height:1.1}.article-head .meta-line{margin-top:14px}.article-body{font-size:18px;color:#edf0f7}.article-body p,.article-body ul,.article-body ol,.article-body h2,.article-body h3{margin:0 0 1.2em}.article-body h2,.article-body h3{line-height:1.22}.article-body a{color:var(--cyan)}.side-box{padding:20px;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}.side-box h3{font-size:18px;font-weight:900;margin-bottom:10px}.side-box ul{list-style:none;padding:0;margin:0}.side-box li+li{margin-top:10px}.pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.page-numbers{min-width:42px;height:42px;display:grid;place-items:center;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03)}.page-numbers.current,.page-numbers:hover{background:linear-gradient(90deg,var(--pink),var(--violet));border-color:transparent;color:#fff}.site-footer{margin-top:70px;padding:34px 0 48px;border-top:1px solid rgba(255,255,255,.08)}.footer-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:20px}.footer-brand .brand-mark{width:48px;height:48px;border-radius:16px}.footer-brand .brand-copy b{font-size:26px}.footer-brand .brand-copy span{font-size:11px}.footer-note{margin-top:14px;color:var(--muted);max-width:320px}.footer-col h4{font-size:15px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;margin-bottom:12px;color:var(--cyan)}.footer-col a,.footer-col p{display:block;color:#d5d8e5;font-size:14px;margin-bottom:8px}.footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:28px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08);font-size:13px;color:var(--soft)}.not-found{text-align:center;padding:80px 0 96px}.not-found h1{font-size:54px}.comment-respond,.comments-area{margin-top:40px}.screen-reader-text{position:absolute;left:-999px}#menu-icon{font-size:18px}
@media(max-width:1150px){.hero-grid{grid-template-columns:1fr}.top-list{padding:20px}.top-link{grid-template-columns:36px minmax(0,1fr) 64px}.top-thumb{width:64px;height:64px}.site-tagline{display:none}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.wrap{width:min(calc(100% - 28px),var(--wrap))}.masthead{min-height:72px}.brand-mark{width:48px;height:48px;border-radius:15px;font-size:20px}.brand-copy b{font-size:26px}.brand-copy span{font-size:10px}.main-nav{min-height:50px}.main-nav a{font-size:14px;padding:0 14px}.main-nav a+a::before{margin-right:14px}.hero-overlay{padding:20px 18px 18px}.hero-title{max-width:none;font-size:30px}.hero-excerpt{font-size:15px}.top-list-head h3{font-size:26px}.top-copy h4{font-size:20px}.latest-grid,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.split-grid,.single-grid{grid-template-columns:1fr}.footer-grid{gap:24px}}
@media(max-width:560px){body{font-size:15px}.masthead{gap:12px}.brand-copy b{font-size:23px}.header-actions{gap:8px}.action-btn,.menu-toggle{width:42px;height:42px}.menu-toggle{padding:0 14px}.main-nav{gap:0;min-height:46px;font-size:13px}.main-nav a{padding:0 12px}.main-nav a+a::before{margin-right:12px}.menu-panel{grid-template-columns:1fr 1fr}.home-main{padding:24px 0 48px}.section{margin-top:40px}.section h1,.section h2{font-size:30px}.kicker{font-size:11px;margin-bottom:10px}.hero-card{border-radius:22px}.hero-media{aspect-ratio:4/3}.hero-overlay{position:static;background:linear-gradient(180deg,rgba(5,5,9,.0),rgba(5,5,9,.96));padding:18px}.hero-title{font-size:28px}.hero-excerpt{-webkit-line-clamp:3}.top-link{grid-template-columns:30px minmax(0,1fr) 56px;gap:10px}.top-num{width:26px;height:26px;font-size:11px}.top-thumb{width:56px;height:56px;border-radius:12px}.top-copy h4{font-size:17px}.latest-grid,.archive-grid{grid-template-columns:1fr}.story-title{font-size:23px}.story-excerpt{font-size:14px}.article-card{padding:20px;border-radius:22px}.article-head h1{font-size:34px}.article-body{font-size:17px}.site-footer{margin-top:46px}.footer-grid{grid-template-columns:1fr}}
@media(max-width:360px){.brand-copy b{font-size:21px}.brand-copy span{font-size:9px}.hero-title{font-size:24px}.story-title{font-size:20px}}
/* Compact editorial presentation */
.brand-logo{max-width:200px;max-height:52px;width:auto;object-fit:contain}.hero-media{height:clamp(260px,28vw,340px);aspect-ratio:auto}.hero-title{font-size:clamp(22px,2.3vw,30px);line-height:1.35}.section h1,.section h2{font-size:clamp(22px,2.4vw,30px)}.section .hero-title{font-size:clamp(22px,2.3vw,30px)}.story-title{font-size:20px;line-height:1.4}.top-copy h4{font-size:18px;line-height:1.4}.top-link{grid-template-columns:minmax(0,1fr) 76px}.hero-card{min-width:0}.menu-toggle{flex-shrink:0}.hero-overlay{padding:20px 24px}.home-main>.section:first-child{margin-top:0}.brand-copy b{overflow-wrap:anywhere}.story-media{border-radius:12px}.story,.top-list{min-width:0}.section-head{flex-wrap:wrap}.site-header [hidden]{display:none!important}@media(max-width:820px){.top-link{grid-template-columns:minmax(0,1fr) 64px}}@media(max-width:560px){.hero-media{height:190px}.section .hero-title{font-size:22px}.hero-overlay{padding:16px}.story-title{font-size:16px}.top-link{grid-template-columns:minmax(0,1fr) 56px}.top-copy h4{font-size:16px}.latest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.brand-mark{width:38px;height:38px;flex-shrink:0}.brand-copy b{font-size:19px}.brand-copy span{font-size:8px;letter-spacing:.06em}.menu-toggle{padding:0;width:40px}.menu-toggle #menu-icon{display:none}.header-actions{gap:5px}.masthead{gap:8px}.brand{gap:8px}}

/* Featured image: square frame, original image proportions, no text overlay. */
.hero-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;border-radius:18px;box-shadow:none;background:#11111a}
.hero-card .hero-link{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;min-width:0}
.hero-card .hero-media{width:100%;max-width:340px;height:auto;aspect-ratio:1/1;min-width:0;align-self:center;justify-self:center;background:#0d0d14;overflow:hidden}
.hero-card .hero-media img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.hero-card .hero-overlay{position:static;inset:auto;background:none;padding:20px 22px;min-width:0}
.hero-card .hero-label{margin-bottom:10px;font-size:10px;padding:5px 10px}
.section .hero-card .hero-title{font-size:clamp(20px,2vw,27px);line-height:1.4;max-width:none;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero-card .hero-meta{margin-top:12px;font-size:12px;gap:8px}.hero-card .cta-link{margin-top:14px;padding:8px 15px;font-size:13px}.hero-card .hero-excerpt{display:none}
@media(max-width:600px){.hero-card,.hero-card .hero-link{grid-template-columns:minmax(0,1fr)}.hero-card .hero-media{max-width:300px;margin-top:12px}.hero-card .hero-overlay{padding:16px 18px 20px}.section .hero-card .hero-title{font-size:22px;line-height:1.4}}
