/* AI STORY · LUXE EDITORIAL V2
   Scoped to public AI articles; no changes to image files or image dimensions.
   Loaded after ai-journal-premium.css so the journal grid elsewhere is untouched.
*/
.ai-story-page {
  --sl-navy:#16253e;
  --sl-deep:#101c30;
  --sl-rose:#783151;
  --sl-gold:#d9ad73;
  --sl-paper:#fffdf9;
  --sl-border:#e9dfd4;
  --sl-muted:#697588;
  color:var(--sl-navy);
  background:#f6f2ed;
  font-feature-settings:"kern";
}
.ai-story-page .container { max-width:1240px; width:min(1240px,calc(100% - 36px)); }
.ai-story-page .ai-story-topbar {
  background:linear-gradient(110deg,#111d33 0%,#27314c 74%,#342740 100%);
  border-bottom:2px solid #c29b63;
}
.ai-story-page .ai-story-topbar-inner{min-height:76px;}
.ai-story-page .ai-story-brand img{width:54px;height:54px;}
.ai-story-page .ai-story-brand b{font-size:14px;letter-spacing:-.01em}
.ai-story-page .ai-story-brand small{letter-spacing:1.65px;color:#e5c48e}
.ai-story-page .ai-story-topbar nav a{
  border:1px solid #ffffff34;background:#ffffff08;
  border-radius:9px;padding:9px 13px;transition:background .16s,border-color .16s;
}
.ai-story-page .ai-story-topbar nav a:hover{background:#ffffff16;border-color:#ffffff77}
.ai-story-page .ai-story-topbar nav a.ai-story-nav-contact {
  color:#231c2b;background:#e8c58c;border-color:#e8c58c;
}
.ai-story-page .ai-story-main {
  padding:21px 0 clamp(42px,5vw,70px);
  background:radial-gradient(ellipse at 98% 5%,#f1e4e7 0,transparent 35%),
    linear-gradient(180deg,#faf7f3 0%,#f5f1ea 100%);
}
.ai-story-page .ai-story-breadcrumb{font-size:11px;margin:0 0 15px;color:#797786;}
.ai-story-page .ai-story-breadcrumb a{color:#703b5a;}
.ai-story-page .ai-story-breadcrumb a:hover{text-decoration:underline;text-underline-offset:3px;}

/* The cover is a controlled, compact editorial masthead. */
.ai-story-page .ai-story-hero-head {
  position:relative;overflow:hidden;max-width:none;
  margin:0 0 14px;padding:clamp(22px,3.4vw,42px) clamp(22px,3.7vw,49px) 25px;
  text-align:left;border-radius:18px;
  background:radial-gradient(ellipse at 92% 2%,#7c477062 0%,transparent 44%),
    linear-gradient(128deg,#17253e 0%,#222d48 61%,#29233d 100%);
  border:1px solid #6c5970;box-shadow:0 14px 35px #19213c1b;
}
.ai-story-page .ai-story-hero-head::before{
  content:"";position:absolute;inset:0 0 auto;height:4px;
  background:linear-gradient(90deg,#cc9959 0%,#f7dca7 34%,#b94c7e 72%,#cc9959 100%);
}
.ai-story-page .ai-story-hero-head::after{
  content:"";pointer-events:none;position:absolute;right:-80px;top:-140px;
  width:290px;height:290px;border:1px solid #ffffff18;border-radius:50%;
  box-shadow:0 0 0 38px #ffffff08,0 0 0 76px #ffffff04;
}
.ai-story-page .ai-story-coverline{
  display:flex;justify-content:space-between;align-items:center;gap:9px 18px;flex-wrap:wrap;
  border-bottom:1px solid #ffffff2a;padding-bottom:12px;margin-bottom:19px;
  color:#e6c28c;font-size:10px;letter-spacing:1.5px;font-weight:900;
  position:relative;z-index:1;
}
.ai-story-page .ai-story-issue span{color:#ffbfd7;padding:0 5px;}
.ai-story-page .ai-story-cover-date{color:#c8cbda;font-weight:600;letter-spacing:1px;}
.ai-story-page .ai-story-overline{display:block;color:#e8c58a;font-size:10px;letter-spacing:1.7px;position:relative;z-index:1;}
.ai-story-page .ai-story-overline span{color:#fdbad0;}
.ai-story-page .ai-story-hero-head h1{
  max-width:1100px;font-size:clamp(28px,3.3vw,45px);line-height:1.39;
  letter-spacing:-.022em;color:#fffdf6;margin:10px 0 13px;
  font-weight:900;position:relative;z-index:1;text-wrap:pretty;
}
.ai-story-page .ai-story-hero-head>p{
  max-width:900px;margin:0 0 19px;color:#e0e0e9;
  line-height:1.84;font-size:clamp(13.5px,1.13vw,15px);
  position:relative;z-index:1;text-wrap:pretty;
}
.ai-story-page .ai-story-byline{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;
  gap:7px 16px;border-top:1px solid #ffffff2c;
  padding-top:13px;color:#e8e4e8;text-align:left;
  font-size:11px;line-height:1.65;position:relative;z-index:1;
}
.ai-story-page .ai-story-byline time{
  display:inline-block;padding:5px 10px;border:1px solid #ffffff46;
  border-radius:99px;color:#f4d7a9;white-space:nowrap;font-weight:800;
}

/* Original 2048×1024 media: 100% width, intrinsic 2:1, contain, no cropping. */
.ai-story-page .ai-story-hero-image{
  width:100%;margin:0 0 10px;border-radius:16px;
  border:1px solid #e3d8d0;overflow:hidden;
  box-shadow:0 9px 23px #23304e16;
  background:#202239;
}
.ai-story-page .ai-story-hero-image img{
  display:block;width:100%;height:auto;aspect-ratio:2 / 1;object-fit:contain;
}
.ai-story-page .ai-story-hero-image figcaption{
  padding:8px 13px;background:#17233ce8;color:#f7dba6;
  font-size:9px;letter-spacing:1.35px;
}
.ai-story-page .ai-story-feature-strip{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  border:1px solid #e7d9c8;border-radius:11px;
  background:linear-gradient(90deg,#fffdf8,#f8f1e8);margin:0 0 21px;
  overflow:hidden;
}
.ai-story-page .ai-story-feature-strip span{
  min-width:0;display:flex;align-items:center;gap:10px;
  padding:13px clamp(10px,1.5vw,20px);
  font-size:12px;line-height:1.55;font-weight:700;color:#485269;
}
.ai-story-page .ai-story-feature-strip span+span{border-left:1px solid #e8dccf;}
.ai-story-page .ai-story-feature-strip b{color:#99436d;letter-spacing:.5px;white-space:nowrap;font-size:10px;}

/* Reading column and calm, high-contrast typographic rhythm. */
.ai-story-page .ai-story-columns{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(252px,285px);
  align-items:start;gap:19px;
}
.ai-story-page .ai-story-article{
  min-width:0;padding:clamp(20px,2.85vw,37px);
  border:1px solid #e4dbd7;border-radius:16px;
  background:#fffefb;box-shadow:0 8px 28px #1b284a0a;
}
.ai-story-page .ai-story-article-kicker{
  font-size:10px;letter-spacing:1.15px;color:#8e3865;
  margin:0 0 20px;padding:0 0 15px;
  border-bottom:1px solid #e8dfd9;
  font-weight:900;overflow-wrap:anywhere;
}
.ai-story-page .ai-story-copy{
  font-size:15.4px;line-height:1.89;
  color:#303c50;overflow-wrap:anywhere;
}
.ai-story-page .ai-story-copy h2{
  color:#1b2b46;border-left:4px solid #c99e62;
  background:linear-gradient(90deg,#f8f1e8 0%,#fcfaf7 100%);
  border-radius:0 10px 10px 0;
  margin:31px 0 15px;padding:12px 17px;
  font-size:clamp(20px,2.15vw,26px);line-height:1.53;
  font-weight:900;text-wrap:pretty;
}
.ai-story-page .ai-story-copy h2:first-child{margin-top:3px;}
.ai-story-page .ai-story-copy h3{
  color:#823757;font-size:clamp(17px,1.7vw,20px);
  line-height:1.62;margin:24px 0 10px;font-weight:900;
}
.ai-story-page .ai-story-copy h4{color:#33405b;font-size:16px;margin:21px 0 9px;}
.ai-story-page .ai-story-copy p{margin:0 0 15px;}
.ai-story-page .ai-story-copy ul,.ai-story-page .ai-story-copy ol{
  padding-left:clamp(18px,2.8vw,26px);margin:10px 0 19px;
}
.ai-story-page .ai-story-copy li{margin:6px 0;padding-left:4px;}
.ai-story-page .ai-story-copy li::marker{color:#a87548;font-weight:900;}
.ai-story-page .ai-story-copy blockquote{
  border-left:4px solid #bc9157;background:#f9f2e8;
  color:#604959;border-radius:0 12px 12px 0;
  margin:18px 0 22px;padding:15px 19px;font-weight:600;
}
.ai-story-page .ai-story-copy table{
  display:block;max-width:100%;overflow:auto;
  margin:21px 0 26px;border-collapse:separate;border-spacing:0;
  border:1px solid #e3d9d6;border-radius:11px;
  box-shadow:0 3px 10px #26355409;font-size:12.5px;
  scrollbar-color:#d8bea5 #f4ede5;
}
.ai-story-page .ai-story-copy th,.ai-story-page .ai-story-copy td{
  padding:11px 13px;border:0;border-right:1px solid #e7ded9;
  border-bottom:1px solid #e7ded9;min-width:120px;
  vertical-align:top;text-align:left;line-height:1.65;
}
.ai-story-page .ai-story-copy th{background:#24314c;color:#fff6e7;font-weight:800;}
.ai-story-page .ai-story-copy tr:nth-child(even) td{background:#fcf8f3;}
.ai-story-page .ai-story-copy tr:last-child td{border-bottom:0;}

.ai-story-page .ai-story-copy .ai-story-table-scroll{
  max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;
  border:1px solid #e3d9d6;border-radius:11px;
  margin:21px 0 26px;box-shadow:0 3px 10px #26355409;
  scrollbar-color:#d8bea5 #f4ede5;
}
.ai-story-page .ai-story-copy .ai-story-table-scroll:focus-visible{
  outline:2px solid #8d4568;outline-offset:3px;
}
.ai-story-page .ai-story-copy .ai-story-table-scroll table{
  display:table;width:100%;min-width:540px;
  border:0;border-radius:0;box-shadow:none;
  border-collapse:separate;border-spacing:0;margin:0;
  overflow:visible;
}

.ai-story-page .ai-story-copy strong{color:#713652;}
.ai-story-page .ai-story-copy .ai-story-keyword a{
  color:#70284e;font-weight:900;
  text-decoration:underline;text-decoration-color:#d0aa71;
  text-decoration-thickness:2px;text-underline-offset:4px;
  text-decoration-skip-ink:auto;
  border-radius:3px;transition:color .16s,text-decoration-color .16s;
}
.ai-story-page .ai-story-copy .ai-story-keyword a:hover{
  color:#aa3e72;text-decoration-color:#a53c6e;
}
.ai-story-page .ai-story-copy .ai-story-keyword a:focus-visible{
  outline:2px solid #77335f;outline-offset:4px;
}

.ai-story-page .ai-story-aside{position:sticky;top:17px;min-width:0;}
.ai-story-page .ai-story-aside-card{
  position:relative;overflow:hidden;padding:25px 22px 23px;
  border-radius:15px;border:1px solid #b7a486;
  background:radial-gradient(circle at 100% 0%,#8b4e7160,transparent 55%),
    linear-gradient(142deg,#1d2d49,#22243d 86%);
  box-shadow:0 11px 25px #1b244022;
}
.ai-story-page .ai-story-aside-card::before{
  content:"";display:block;height:3px;position:absolute;
  top:0;left:0;right:0;background:linear-gradient(90deg,#d7a565,#f4d5a1,#bd4b81);
}
.ai-story-page .ai-story-aside-card>span{
  color:#e9c38d;font-size:10px;letter-spacing:1.6px;
}
.ai-story-page .ai-story-aside-card h2{
  font-size:clamp(24px,2.2vw,29px);line-height:1.4;
  margin:12px 0 9px;color:#fffdf8;
}
.ai-story-page .ai-story-aside-card h2 em{color:#f7d8aa;}
.ai-story-page .ai-story-aside-card p,.ai-story-page .ai-story-aside-card li{
  color:#e5e2e8;font-size:12.5px;line-height:1.85;
}
.ai-story-page .ai-story-aside-card ol{
  counter-reset:buySteps;list-style:none;padding:0;margin:16px 0 19px;
}
.ai-story-page .ai-story-aside-card li{
  display:flex;gap:11px;align-items:start;margin:0;padding:9px 0;
  border-top:1px solid #ffffff24;
}
.ai-story-page .ai-story-aside-card li::before{
  counter-increment:buySteps;content:"0" counter(buySteps);
  color:#f0c989;font-size:10px;letter-spacing:1px;font-weight:900;
}
.ai-story-page .ai-story-aside-card a{
  display:flex;justify-content:center;align-items:center;
  min-height:43px;padding:10px 10px;background:#f1d39b;
  border:1px solid #f1d39b;border-radius:9px;
  font-size:12px;line-height:1.4;transition:background .16s;
}
.ai-story-page .ai-story-aside-card a:hover{background:#ffe8bb;}
.ai-story-page .ai-story-aside-card a.ai-story-call{background:transparent;color:#fff;border-color:#ffffff85;}
.ai-story-page .ai-story-aside-card a.ai-story-call:hover{background:#ffffff16;}
.ai-story-page .ai-story-note{
  margin:24px 0 0;padding:15px 18px;border-radius:10px;
  background:#fbf5eb;border:1px solid #e9d8bd;
  color:#66575a;font-size:12px;line-height:1.75;
}
.ai-story-page .ai-story-note strong{color:#714732;}
.ai-story-page .ai-story-share{
  margin:27px 0 0;padding:22px;
  border:1px solid #e5d9d0;border-radius:12px;
  background:linear-gradient(120deg,#fffaf2,#f7eee8);
}
.ai-story-page .ai-story-share>div:first-child span{color:#8e4264;font-size:10px;}
.ai-story-page .ai-story-share h2{
  font-size:clamp(20px,2.3vw,24px);line-height:1.5;margin:7px 0 15px;
}
.ai-story-page .ai-story-share-actions{gap:8px;}
.ai-story-page .ai-story-share-actions button,.ai-story-page .ai-story-share-actions a{
  min-height:40px;font-size:11.5px;border-radius:8px;
  padding:9px 12px;border-color:#d6c7c5;background:#fff;
}
.ai-story-page .ai-story-share-actions button:first-child{background:#24314b;border-color:#24314b;}
.ai-story-page .ai-story-share>p{margin:9px 0 0;}
.ai-story-page .ai-story-related{margin-top:39px;padding-top:20px;border-top:1px solid #e5d8d3;}
.ai-story-page .ai-story-related-head span{color:#995579;font-size:10px;}
.ai-story-page .ai-story-related-head h2{font-size:clamp(22px,2.5vw,28px);margin:8px 0 16px;}
.ai-story-page .ai-story-related .ai-journal-grid{gap:15px;}
.ai-story-page .ai-story-related .ai-journal-card{border-radius:12px;}

@media(max-width:950px){
  .ai-story-page .ai-story-columns{grid-template-columns:minmax(0,1fr);gap:17px;}
  .ai-story-page .ai-story-aside{position:static;}
  .ai-story-page .ai-story-aside-card{max-width:none;}
  .ai-story-page .ai-story-aside-card ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
  .ai-story-page .ai-story-aside-card li{border-bottom:1px solid #ffffff24;}
}
@media(max-width:700px){
  .ai-story-page .ai-story-feature-strip{grid-template-columns:1fr;}
  .ai-story-page .ai-story-feature-strip span{padding:9px 14px;font-size:11px;}
  .ai-story-page .ai-story-feature-strip span+span{border-left:0;border-top:1px solid #e8dccf;}
}
@media(max-width:630px){
  .ai-story-page .container{width:calc(100% - 28px);}
  .ai-story-page .ai-story-main{padding:16px 0 42px;}
  .ai-story-page .ai-story-breadcrumb{margin-bottom:12px;gap:7px;font-size:10.5px;}
  .ai-story-page .ai-story-hero-head{padding:20px 19px 18px;border-radius:13px;margin-bottom:12px;}
  .ai-story-page .ai-story-coverline{padding-bottom:10px;margin-bottom:14px;font-size:9px;}
  .ai-story-page .ai-story-hero-head h1{font-size:clamp(24px,6.5vw,31px);line-height:1.46;}
  .ai-story-page .ai-story-hero-head>p{font-size:13.5px;line-height:1.75;}
  .ai-story-page .ai-story-byline{font-size:10.5px;}
  .ai-story-page .ai-story-hero-image{border-radius:11px;}
  .ai-story-page .ai-story-hero-image figcaption{font-size:8px;padding:6px 9px;}
  .ai-story-page .ai-story-article{padding:20px 17px;border-radius:12px;}
  .ai-story-page .ai-story-article-kicker{font-size:9px;margin-bottom:15px;}
  .ai-story-page .ai-story-copy{font-size:15px;line-height:1.89;}
  .ai-story-page .ai-story-copy h2{font-size:21px;padding:10px 12px;margin:25px 0 12px;}
  .ai-story-page .ai-story-copy h3{font-size:18px;margin:22px 0 10px;}
  .ai-story-page .ai-story-aside-card ol{grid-template-columns:1fr;gap:0;}
  .ai-story-page .ai-story-aside-card li{border-bottom:0;}
  .ai-story-page .ai-story-share{padding:17px 15px;}
  .ai-story-page .ai-story-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .ai-story-page .ai-story-share-actions button,.ai-story-page .ai-story-share-actions a{width:100%;}
  .ai-story-page .ai-story-related{margin-top:29px;}
}
@media(max-width:360px){
  .ai-story-page .container{width:calc(100% - 24px);}
  .ai-story-page .ai-story-hero-head{padding-inline:16px;}
  .ai-story-page .ai-story-hero-head h1{font-size:23.5px;}
  .ai-story-page .ai-story-cover-date{display:none;}
  .ai-story-page .ai-story-article{padding:17px 14px;}
  .ai-story-page .ai-story-share-actions{grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce){
  .ai-story-page .ai-story-copy .ai-story-keyword a,
  .ai-story-page .ai-story-topbar nav a,
  .ai-story-page .ai-story-aside-card a{transition:none;}
}
