/* BuyEverything Knowledge Studio V13 — scoped to prevent legacy page regressions. */
.be-ai-guide, .ai-story-page { --ai-navy:#10213b;--ai-ink:#152d4d;--ai-blue:#195ba2;--ai-gold:#e7b547;--ai-soft:#f2f6fb; }
.be-ai-guide {box-sizing:border-box;margin:14px 0 34px;padding:24px 22px 26px;border-radius:25px;background:linear-gradient(144deg,#f7faff 5%,#fff 75%);border:1px solid #dfE8f4;box-shadow:0 8px 30px rgba(20,42,70,.05);font-family:system-ui,-apple-system,'Noto Sans Thai',Tahoma,sans-serif;color:var(--ai-ink)}
.be-ai-guide *, .ai-story-page *{box-sizing:border-box}
.be-ai-guide__intro{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:19px}
.be-ai-guide__eyebrow,.ai-story__kicker{font-size:11px;letter-spacing:.15em;font-weight:900;color:#2165a8;text-transform:uppercase}
.be-ai-guide__intro h2{margin:5px 0 3px;color:#132b4a;font-size:clamp(19px,2.4vw,28px);line-height:1.35;font-weight:850}
.be-ai-guide__intro p{margin:0!important;font-size:13px!important;line-height:1.7;color:#64738a!important}
.be-ai-guide__count{border:1px solid #d7e4f3;background:white;border-radius:999px;padding:7px 12px;white-space:nowrap;font-size:11px;font-weight:750;color:#275784}
.be-ai-guide__grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.be-ai-guide__card{min-width:0;overflow:hidden;border-radius:16px;border:1px solid #dee6ef;background:#fff;box-shadow:0 6px 18px rgba(16,35,63,.045);display:flex;flex-direction:column;transition:transform .18s,border-color .18s}
.be-ai-guide__card:hover{transform:translateY(-3px);border-color:#b6c9df}
.be-ai-guide__visual{display:block;aspect-ratio:2/1;overflow:hidden;background:linear-gradient(125deg,#c2d5ef,#f7f9fc);border-bottom:1px solid #edf1f7}
.be-ai-guide__visual img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s}
.be-ai-guide__card:hover .be-ai-guide__visual img{transform:scale(1.045)}
.be-ai-guide__cardbody{padding:13px 13px 14px;display:flex;flex-direction:column;flex:1;gap:5px}
.be-ai-guide__meta{display:flex;justify-content:space-between;gap:6px;color:#60758a;font-size:10px;font-weight:700}
.be-ai-guide__meta span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#1b5a9e}
.be-ai-guide__card h3{font-size:14px!important;line-height:1.5!important;color:#142d4f!important;font-weight:850!important;margin:3px 0 1px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.be-ai-guide__card h3 a{color:inherit;text-decoration:none}
.be-ai-guide__cardbody p{margin:0 0 7px!important;font-size:12px!important;line-height:1.65!important;color:#68778a!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.be-ai-guide__more{margin-top:auto;color:#1b5c9c;text-decoration:none!important;font-weight:850;font-size:12px}
.be-ai-guide__more span{margin-left:3px}
.be-ai-guide--standalone{max-width:1180px;margin:24px auto;padding:0 18px}
@media(max-width:1020px){.be-ai-guide__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.be-ai-guide{padding:19px 13px;border-radius:18px}.be-ai-guide__intro{flex-direction:column;align-items:start;gap:9px}.be-ai-guide__grid{grid-template-columns:minmax(0,1fr);gap:11px}.be-ai-guide__card{display:grid;grid-template-columns:37% minmax(0,1fr);min-height:126px}.be-ai-guide__visual{height:100%;min-height:126px;aspect-ratio:auto}.be-ai-guide__cardbody{padding:10px}.be-ai-guide__cardbody p{display:none}.be-ai-guide__card h3{font-size:13px!important;-webkit-line-clamp:3}.be-ai-guide__intro h2{font-size:21px}}
/* Published article page */
.ai-story-page{margin:0;background:#f5f8fc;color:var(--ai-ink);font-family:system-ui,-apple-system,'Noto Sans Thai',Tahoma,sans-serif;line-height:1.78}
.ai-story-page a{color:#1a5699}.ai-story-wrap{width:min(1140px,calc(100% - 36px));margin:auto}
.ai-story-nav{background:white;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:4}.ai-story-nav .ai-story-wrap{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:15px}.ai-story-brand{display:flex;gap:11px;align-items:center;text-decoration:none!important;color:#122641!important;font-size:clamp(15px,2vw,24px);letter-spacing:-.03em}.ai-story-brand img{object-fit:contain}.ai-story-nav nav{display:flex;gap:22px}.ai-story-nav nav a{text-decoration:none;font-weight:750;font-size:13px;color:#254366}
.ai-story-main{padding-top:25px;padding-bottom:65px}.ai-story-crumb{display:flex;gap:11px;align-items:center;font-size:12px;color:#667b93;margin-bottom:19px}.ai-story-crumb a{text-decoration:none;color:#65788e}.ai-story{background:white;border:1px solid #e2e9f3;border-radius:23px;box-shadow:0 10px 38px rgba(30,55,85,.06);overflow:hidden}.ai-story__lead{padding:clamp(22px,5vw,50px) clamp(20px,5vw,72px) 25px}.ai-story__lead h1{font-size:clamp(27px,4vw,46px);line-height:1.35;color:#112847;letter-spacing:-.025em;margin:12px 0;font-weight:850}.ai-story__summary{color:#54708b;font-size:16px;margin:0 0 14px}.ai-story__byline{font-size:12px;color:#667892;border-top:1px solid #eef2f8;padding-top:14px}.ai-story__cover{margin:0 22px}.ai-story__cover img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;display:block;border-radius:17px}.ai-story__cover figcaption{text-align:center;color:#8b98a7;font-size:11px;margin-top:7px}.ai-story__content{padding:16px clamp(20px,7vw,105px) 37px}.ai-story__intro{font-size:18px;font-weight:650;color:#314c6e;line-height:1.9}.ai-story__chapter{padding:18px 0;border-top:1px solid #eef1f5}.ai-story__chapter h2,.ai-story__faq h2,.ai-story__conclusion h2{font-size:clamp(20px,2vw,27px);color:#152b46;line-height:1.45;margin:4px 0 14px}.ai-story__chapter p,.ai-story__chapter li,.ai-story__faq p{font-size:15px;color:#3e526a;line-height:2}.ai-story__chapter ul{background:#f5f8fc;padding:15px 20px 15px 38px;border-left:3px solid var(--ai-gold);border-radius:9px}.ai-story__faq{padding-top:24px;border-top:1px solid #e8eef4}.ai-story__faq details{border:1px solid #e1e9f4;padding:13px 17px;margin:9px 0;border-radius:12px}.ai-story__faq summary{cursor:pointer;font-weight:800;color:#21466e}.ai-story__faq details p{margin-bottom:1px}.ai-story__conclusion{padding-top:21px}.ai-story__cta{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#112a47;color:white;padding:24px clamp(20px,6vw,70px)}.ai-story__cta span{color:#e7bd65;font-size:12px;font-weight:800}.ai-story__cta h2{margin:0;color:white;font-size:23px}.ai-story__cta p{color:#cfdaeb;margin:2px 0 0;font-size:13px}.ai-story__cta>a{border-radius:100px;background:#f2c360;color:#122440!important;text-decoration:none;font-weight:800;padding:12px 19px;white-space:nowrap}.ai-story__related{padding:30px 0}.ai-story__related>h2{font-size:22px;color:#1a3656}.ai-story__related .be-ai-guide__card{min-height:200px}
@media(max-width:700px){.ai-story-nav .ai-story-wrap{min-height:64px}.ai-story-brand img{width:36px;height:36px}.ai-story-nav nav{gap:9px}.ai-story-nav nav a{font-size:11px}.ai-story__lead{padding:24px 19px 18px}.ai-story__cover{margin:0 10px}.ai-story__cover img{border-radius:10px}.ai-story__content{padding:12px 20px 28px}.ai-story__cta{flex-direction:column;align-items:flex-start}.ai-story__cta>a{width:100%;text-align:center}}

/* V13.10 · Three contextual focus-keyword self-links, embedded within the article body. */
.ai-story__keyword-reference{margin:18px 0 22px;color:#3e526a;font-size:15px;line-height:2}
.ai-story__keyword-reference .ai-story__keyword-link{font-weight:800;color:#18558e;text-decoration:underline;text-decoration-color:rgba(24,85,142,.28);text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
.ai-story__keyword-reference .ai-story__keyword-link:hover,.ai-story__keyword-reference .ai-story__keyword-link:focus-visible{color:#0b3d73;text-decoration-color:currentColor}
@media(max-width:700px){.ai-story__keyword-reference{margin:14px 0 18px;font-size:14px}}
