/*
Theme Name: Thông Trí Lý Số – Eastern Portal
Theme URI: https://thongtri.com/
Author: Thông Trí
Description: Cổng tra cứu phong thủy và lý số, danh mục nhiều công cụ, bố cục tạp chí hiện đại.
Version: 3.2.0
Requires PHP: 7.4
Text Domain: thongtri-lyso
*/
:root{--green:#123c33;--deep:#092b26;--gold:#c8a56b;--ivory:#faf8f2;--ink:#1b3831;--muted:#687c73;--line:#e4e8e1}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:#ad8749}.wrap{max-width:1240px;margin:auto;padding:0 24px}.site-top{background:#092923;color:#d3e0d9;font-size:12px;letter-spacing:.7px}.top-flex{display:flex;justify-content:space-between;padding-top:8px;padding-bottom:8px}.site-header{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 3px 18px #123c3314}.header-flex{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:82px}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.brand-seal{display:grid;place-items:center;width:48px;height:48px;border:2px solid var(--gold);border-radius:50%;background:var(--green);color:#edcf8c;font-size:30px}.brand strong{display:block;font-family:Georgia,serif;font-size:20px;line-height:1.2;letter-spacing:.5px;color:var(--green)}.brand em{color:#a98449;font-style:normal}.brand small{display:block;font-size:11px;color:#7e8d85;letter-spacing:1px}.main-nav{display:flex;align-items:center;gap:19px;font-size:13px;font-weight:700}.main-nav a{white-space:nowrap}.nav-toggle{display:none;background:var(--green);color:white;border:0;border-radius:7px;padding:9px 12px}.hero-v2{overflow:hidden;background:radial-gradient(circle at 78% 45%,#316659 0,transparent 37%),linear-gradient(115deg,#0a2c27,#164d40);color:#fff}.hero-layout{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;min-height:470px;gap:30px}.hero-copy{padding:65px 0}.hero-tag,.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:#c8a56b}.hero-copy h1{font:700 clamp(38px,4.5vw,64px)/1.13 Georgia,serif;letter-spacing:-1.3px;margin:20px 0}.hero-copy p{font-size:17px;color:#d8e9df;max-width:600px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn-gold,.btn-ghost{display:inline-block;padding:12px 20px;border-radius:8px;font-weight:700}.btn-gold{background:var(--gold);color:#17382f}.btn-ghost{border:1px solid #9cb9a8;color:#fff}.hero-facts{display:flex;gap:20px;flex-wrap:wrap;color:#bdd1c7;font-size:12px;margin-top:36px}.hero-facts span+span{border-left:1px solid #50786c;padding-left:20px}.hero-visual{display:grid;place-items:center;position:relative}.cosmic-ring{width:min(350px,78vw);height:min(350px,78vw);border:2px solid #bfa36a;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 16px #c8a56b15,0 0 0 45px #c8a56b0b,inset 0 0 0 12px #d9b87b26;position:relative}.cosmic-ring:before{content:'☰  ☱  ☲  ☳  ☴  ☵  ☶  ☷';position:absolute;inset:10px;border:1px dashed #c5a977;border-radius:50%;display:grid;place-items:start center;padding-top:24px;font-size:24px;color:#e3c88f;word-spacing:8px}.cosmic-center{font-size:125px;color:#e4c689;line-height:1;text-align:center}.cosmic-center small{display:block;font-size:10px;letter-spacing:3px;margin-top:12px}.hero-caption{font-size:11px;letter-spacing:2px;color:#d7c28c;margin-top:30px}.quick-panel{position:relative;z-index:3;margin-top:-28px;background:#fff;box-shadow:0 15px 45px #123c3320;border-radius:15px;padding-top:23px;padding-bottom:23px;display:flex;justify-content:space-between;gap:25px;align-items:center}.quick-panel h2{font-size:22px;margin:4px 0}.quick-search{display:flex;flex:1;max-width:590px}.quick-search input{width:100%;min-width:0;padding:13px 15px;border:1px solid #dce4db;border-radius:8px 0 0 8px;font:inherit}.quick-search button{border:0;background:var(--green);color:#fff;font-weight:700;padding:0 22px;border-radius:0 8px 8px 0;white-space:nowrap}.section-v2{padding:70px 0}.section-title{display:flex;justify-content:space-between;align-items:end;gap:35px;margin-bottom:28px}.section-title h2{font:700 34px/1.2 Georgia,serif;margin:8px 0;color:var(--green)}.section-title p{max-width:440px;color:var(--muted);margin:0}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.category-card{padding:28px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:transform .2s,box-shadow .2s}.category-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px #123c3316}.category-symbol{width:56px;height:56px;display:grid;place-items:center;border-radius:14px;background:#f1f3eb;color:#b18c50;font-size:32px}.category-card h3{font-size:20px;margin:18px 0 6px}.category-card p{color:var(--muted);font-size:14px;margin:0;min-height:46px}.category-more{display:block;color:#a68146;font-weight:700;margin-top:18px;font-size:13px}.tools-area{background:#f7f8f4}.tools-section{background:#fff;border:1px solid #e8ece6;border-radius:14px;margin-bottom:22px;scroll-margin-top:110px;overflow:hidden}.tools-head{display:flex;align-items:center;justify-content:space-between;background:#eef3ed;padding:17px 24px;border-bottom:1px solid var(--line)}.tools-head h3{font-size:21px;color:var(--green);margin:0}.tools-head span{font-size:12px;color:#718277}.tools-list{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.tool-link{display:flex;align-items:center;gap:9px;padding:15px 18px;border-right:1px solid #f0f1ed;border-bottom:1px solid #f0f1ed;font-size:14px}.tool-link:hover{background:#fbf8ef}.tool-dot{color:#bd9555}.tool-state{font-size:10px;padding:3px 6px;border-radius:6px;margin-left:auto;white-space:nowrap}.is-ready{background:#e7f3e9;color:#266244}.is-soon{background:#f3f2ef;color:#8b8981}.arrow{color:#a3aaa5}.guide-band{background:#123e34;color:#fff;padding:65px 0}.guide-inner{display:grid;grid-template-columns:1fr 1.5fr;gap:45px;align-items:center}.guide-inner h2{font:700 34px Georgia,serif}.guide-inner p{color:#d4e3db}.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.guide-steps>div{background:#ffffff12;border:1px solid #ffffff25;border-radius:12px;padding:20px}.guide-steps b{font:700 30px Georgia,serif;color:#d4b479;display:block;margin-bottom:16px}.guide-steps strong{display:block}.guide-steps p{font-size:13px}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.article-card{border:1px solid var(--line);border-radius:12px;overflow:hidden}.article-cover{display:grid;place-items:center;height:185px;background:#e8eee8;color:#b18b52;font-size:70px}.article-cover img{width:100%;height:100%;object-fit:cover}.article-content{padding:18px}.article-content small{color:#829086}.article-content h3{font-size:18px;line-height:1.45}.article-content p{color:var(--muted);font-size:14px}.site-footer{background:#092c26;color:#e3eae4;padding:52px 0 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.3fr;gap:32px}.footer-logo{font:700 23px Georgia,serif;color:#e0c18a}.footer-grid h3{font-size:16px;color:#e0c18a}.footer-grid a{display:block;font-size:13px;padding:4px 0;color:#cddcd2}.footer-grid p{font-size:13px;color:#bdcec3}.footer-bottom{border-top:1px solid #ffffff20;margin-top:35px;padding-top:17px;padding-bottom:17px;font-size:12px;color:#a9beb2;display:flex;justify-content:space-between}.footer-bottom a{color:#d4b579}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.entry-content,.site-main{max-width:1180px;margin:40px auto;padding:0 24px}.entry-content img{max-width:100%;height:auto}.sidebar-panel{padding:20px;border:1px solid var(--line)}@media(max-width:1120px){.main-nav{gap:10px;font-size:12px}.brand strong{font-size:17px}}@media(max-width:950px){.nav-toggle{display:block}.main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:18px 24px;box-shadow:0 12px 24px #123c3320;flex-direction:column;align-items:stretch}.main-nav.is-open{display:flex}.hero-layout{grid-template-columns:1fr}.hero-visual{display:none}.hero-copy{padding:55px 0}.tools-list{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.wrap{padding-left:17px;padding-right:17px}.top-flex span:last-child{display:none}.header-flex{min-height:72px}.hero-copy h1{font-size:37px}.quick-panel{display:block}.quick-search{margin-top:15px}.section-v2{padding:44px 0}.section-title{display:block}.section-title h2{font-size:29px}.category-grid,.article-grid,.tools-list,.guide-inner,.guide-steps{grid-template-columns:1fr}.category-card p{min-height:0}.tool-link{padding:13px}.footer-grid{grid-template-columns:1fr}.footer-bottom{gap:15px;flex-wrap:wrap}.guide-inner h2{font-size:29px}}
/* v2.2: form accessibility and editorial rhythm */
:focus-visible{outline:3px solid #d2aa61;outline-offset:3px}.entry-content h2{color:#123c33;line-height:1.3}.entry-content p{max-width:78ch}.entry-content a{text-decoration:underline;text-underline-offset:3px}.ttls a{color:#146a58;font-weight:700}.ttls a:hover{text-decoration:underline}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Pro usability improvements */
:focus-visible{outline:3px solid #cba661;outline-offset:3px}html{scroll-behavior:smooth} .tool-state.is-soon{opacity:.75} .tool-link:hover,.category-card:hover{transform:translateY(-2px)}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
