/* Versioned article layout: keep this URL unique so long-lived asset caches cannot serve stale story styles. */
.article-site {
  background: radial-gradient(circle at 12% 12%, rgba(255, 107, 53, .14), transparent 28rem), radial-gradient(circle at 88% 34%, rgba(0, 217, 255, .1), transparent 30rem), #090d1a;
}

.article-site .site-header,
.article-site .site-footer { direction: ltr; }
.article-site .nav-links,
.article-site .header-actions,
.article-site .footer-links { direction: rtl; }
.article-site [dir="ltr"] { unicode-bidi: isolate; }

.article-narrow,
.story-stack { width: min(calc(100% - 2rem), 900px); margin-inline: auto; }
.story-stack { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 6rem; }

.article-index-hero { padding-bottom: 3.5rem; text-align: right; }
.article-index-hero h1,
.article-hero h1 {
  color: #fff;
  font-family: "Mehr Nastaliq", "Poppins", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 1.45;
  margin: 1.1rem 0 .7rem;
}
.article-list-grid { display: grid; gap: 1.25rem; }
.article-teaser {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) 1.35fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
.article-teaser-art { display: block; overflow: hidden; min-height: 230px; border: 8px solid #f4ead7; border-radius: 22px 10px 24px 12px; background: #f4ead7; box-shadow: 7px 9px 0 rgba(255, 107, 53, .3); transform: rotate(-1.2deg); }
.article-teaser-art img { display: block; width: 100%; min-height: 230px; object-fit: cover; }
.article-label,
.story-kicker,
.fact-label { color: #ffb54a; font-weight: 700; letter-spacing: .03em; }
.article-teaser h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.55; margin: .35rem 0 .7rem; }
.article-teaser p,
.article-deck,
.story-card p,
.fact-card > p,
.munshi-tip p,
.article-source p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; line-height: 2.05; }
.article-teaser strong { display: inline-block; color: #7dffb2; margin-top: 1rem; }

.article-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); text-align: right; }
.article-hero .article-narrow { display: flex; direction: rtl; align-items: center; gap: clamp(2rem, 5vw, 5rem); width: min(calc(100% - 2rem), 1180px); }
.article-hero-copy { flex: 0 1 42%; min-width: 0; }
.article-hero .hero-sketch-frame { flex: 1 1 58%; min-width: 0; }
.article-hero h1 { max-width: 12ch; }
.article-back { display: block; width: fit-content; color: rgba(255, 255, 255, .7); margin-bottom: 2.25rem; }
.article-deck { max-width: 760px; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.article-meta span { border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .72); padding: .42rem .8rem; font-size: .85rem; }

.sketch-frame { position: relative; margin: 2.1rem 0 0; border: clamp(7px, 1vw, 12px) solid #f5ead5; border-radius: 18px 9px 22px 12px; background: #f5ead5; box-shadow: 10px 13px 0 rgba(8, 10, 28, .18), 0 28px 70px rgba(0, 0, 0, .35); transform: rotate(-.45deg); isolation: isolate; }
.sketch-frame::before,
.sketch-frame::after { content: ""; position: absolute; z-index: 3; width: 82px; height: 24px; background: rgba(255, 214, 124, .74); box-shadow: 0 2px 4px rgba(39, 25, 8, .12); pointer-events: none; }
.sketch-frame::before { top: -17px; right: 7%; transform: rotate(5deg); }
.sketch-frame::after { bottom: -16px; left: 8%; transform: rotate(-4deg); }
.sketch-frame picture,
.sketch-frame img { display: block; width: 100%; }
.sketch-frame img { border-radius: 10px 4px 13px 5px; }
.hero-sketch-frame { margin: 0; }
.hero-sketch-frame figcaption { position: absolute; z-index: 2; right: clamp(.6rem, 3vw, 2.2rem); bottom: clamp(.6rem, 3vw, 2rem); display: grid; width: min(390px, calc(100% - 1.2rem)); border: 2px solid #141821; border-radius: 7px 14px 6px 12px; background: rgba(249, 238, 216, .96); color: #1a1b22; padding: clamp(.8rem, 2.5vw, 1.35rem); box-shadow: 6px 7px 0 rgba(255, 107, 53, .78); transform: rotate(.8deg); }
.hero-sketch-frame figcaption strong { color: #c93d23; font: 900 clamp(2.2rem, 6vw, 4.3rem)/1 "Poppins", sans-serif; }
.hero-sketch-frame figcaption span { font-weight: 700; }
.section-sketch-frame { margin: 1.6rem 0 2.2rem; box-shadow: 8px 10px 0 rgba(8, 10, 28, .16), 0 22px 48px rgba(0, 0, 0, .24); }

.story-card,
.fact-card,
.munshi-tip,
.article-source,
.story-finale { position: relative; overflow: hidden; border: 2px solid rgba(255, 255, 255, .17); border-radius: clamp(24px, 4vw, 38px); padding: clamp(1.5rem, 5vw, 3.4rem); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.story-card { min-height: 590px; background: linear-gradient(145deg, #192036, #0a0e1c); }
.story-card-number { position: absolute; top: 1.2rem; left: 1.5rem; color: rgba(255, 255, 255, .1); font: 800 clamp(4rem, 12vw, 8rem)/1 "Poppins", sans-serif; }
.story-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: rgba(67, 233, 123, .12); font-size: 2.1rem; margin-bottom: 1.4rem; }
.story-card h2,
.fact-card h2,
.munshi-tip h2,
.article-source h2,
.story-finale h2 { color: #fff; font-family: "Mehr Nastaliq", "Poppins", sans-serif; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.55; margin: .25rem 0 1rem; }
.logic-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.2rem; margin: 2rem 0; padding: 1.4rem; border: 2px solid rgba(125, 255, 178, .18); border-radius: 22px; background: rgba(67, 233, 123, .09); }
.logic-row strong { color: #7dffb2; font: 800 clamp(1.7rem, 4vw, 2.7rem)/1 "Poppins", sans-serif; }
.story-callout,
.difference-pill { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 1.5rem 0; border: 2px solid rgba(16, 21, 41, .18); border-radius: 20px; padding: 1.1rem 1.25rem; background: #fff; color: #101529; }
.story-callout strong,
.difference-pill strong { font-size: 1.25rem; }
.story-warning { border-right: 4px solid #ff775f; padding-right: 1rem; }

.fact-card { background: linear-gradient(135deg, #ff713f, #d93b45); text-align: center; }
.fact-card .fact-label { width: fit-content; margin-inline: auto; border-radius: 999px; background: rgba(20, 20, 40, .25); color: #fff; padding: .35rem .85rem; }
.fact-card > p { color: rgba(255, 255, 255, .94); }
.unit-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin: 2rem 0; direction: ltr; }
.unit-compare > div:not(.unit-arrow) { display: grid; align-content: center; min-width: 0; min-height: 220px; border: 3px solid rgba(255, 255, 255, .28); border-radius: 25px; background: #11182c; padding: clamp(1rem, 3vw, 1.5rem); box-shadow: 0 14px 28px rgba(25, 10, 18, .24); }
.unit-value { display: flex; align-items: baseline; justify-content: center; gap: .5rem; white-space: nowrap; unicode-bidi: isolate; }
.unit-value strong { font: 800 clamp(3.2rem, 9vw, 6.2rem)/1 "Poppins", sans-serif; }
.unit-value span { color: rgba(255, 255, 255, .72); font: 600 1rem/1 "Poppins", sans-serif; }
.unit-compare p { display: block; margin: 1.2rem 0 0; color: #fff; line-height: 1.7; direction: rtl; }
.unit-compare p b { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; margin-left: .25rem; border-radius: 50%; font-family: "Poppins", sans-serif; }
.unit-good { border-color: rgba(125, 255, 178, .7) !important; }
.unit-bad { border-color: rgba(255, 131, 109, .8) !important; }
.unit-good strong,
.unit-good p b { color: #7dffb2; }
.unit-bad strong,
.unit-bad p b { color: #ff836d; }
.unit-arrow { align-self: center; color: #fff; font-size: 2rem; }

.story-card-money { background: linear-gradient(145deg, #18233d, #0b1020); }
.cost-grid,
.tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.7rem; }
.cost-panel,
.tariff-column { min-width: 0; border: 2px solid rgba(255, 255, 255, .18); border-radius: 25px; padding: clamp(1.2rem, 3vw, 2rem); background: rgba(255, 255, 255, .06); }
.protected-panel,
.protected-tariff { border-color: rgba(125, 255, 178, .48); background: linear-gradient(160deg, rgba(67, 233, 123, .16), rgba(255, 255, 255, .04)); }
.unprotected-panel,
.unprotected-tariff { border-color: rgba(255, 131, 109, .55); background: linear-gradient(160deg, rgba(255, 107, 53, .19), rgba(255, 255, 255, .04)); }
.cost-badge { display: inline-block; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .1); padding: .4rem .8rem; }
.cost-panel h3 { display: block; color: #fff; font: 800 clamp(2.7rem, 7vw, 4.8rem)/1.1 "Poppins", sans-serif; margin: 1.2rem 0; white-space: nowrap; unicode-bidi: isolate; }
.cost-panel dl { display: grid; gap: .85rem; margin: 0 0 1.5rem; }
.cost-panel dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(0, 0, 0, .14); padding: .8rem; }
.cost-panel dt,
.cost-panel dd { display: block; min-width: 0; margin: 0; }
.cost-panel dd,
.rate { color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; white-space: nowrap; unicode-bidi: isolate; }
.rate { display: block; margin: .5rem 0; font-size: 1.25rem; }
.cost-summary { display: grid; gap: .25rem; margin-top: 1.25rem; border-top: 2px solid rgba(255, 255, 255, .18); padding-top: 1.1rem; }
.cost-caption { display: block; color: rgba(255, 255, 255, .68); margin: 0; }
.cost-total { display: block; color: #fff; font: 800 clamp(2.1rem, 5vw, 3.4rem)/1.25 "Poppins", sans-serif; margin: 0; white-space: nowrap; unicode-bidi: isolate; }
.difference-pill { background: linear-gradient(100deg, #fff0b5, #ffbe5c); margin-top: 1.25rem; }
.fine-print { color: rgba(255, 255, 255, .64) !important; font-size: .86rem !important; margin-top: 1rem; }

.fact-timeline { background: linear-gradient(145deg, #5a4bd7, #302467); }
.status-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; list-style: none; margin-top: 2rem; direction: ltr; }
.status-timeline li { position: relative; display: grid; align-content: center; min-width: 0; min-height: 145px; border: 2px solid rgba(255, 255, 255, .18); border-radius: 20px; background: rgba(8, 10, 28, .3); padding: 1rem; direction: rtl; }
.status-timeline li:not(:last-child)::after { content: "→"; position: absolute; left: -.68rem; top: 50%; z-index: 2; transform: translateY(-50%); color: #fff; }
.status-timeline strong { color: #fff; }
.status-timeline span { color: rgba(255, 255, 255, .72); font-size: .85rem; }

.story-card-rates { background: linear-gradient(145deg, #102a32, #09151f); }
.tariff-column h3 { color: #fff; font-size: 1.55rem; margin-bottom: 1rem; }
.tariff-column > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .14); font-family: "Poppins", sans-serif; }
.tariff-column strong { color: #fff; unicode-bidi: isolate; }
.story-summary { margin-top: 1.5rem; }
.bill-formula { background: linear-gradient(145deg, #cc3d71, #6a215c); }
.charge-formula { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem; margin: 2rem 0; }
.charge-formula span { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(8, 10, 28, .38); color: #fff; padding: .7rem 1rem; font-family: "Poppins", sans-serif; }
.charge-formula b { font-size: 1.5rem; }
.story-card-meter { background: linear-gradient(145deg, #233d36, #0b1f23); }
.meter-example { margin-top: 2rem; border: 2px solid rgba(255, 255, 255, .16); border-radius: 25px; background: rgba(4, 14, 18, .46); padding: clamp(1.2rem, 4vw, 2rem); }
.meter-example > div:not(.meter-progress) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.meter-example strong { color: #fff; font: 800 clamp(1.7rem, 4vw, 2.5rem)/1.2 "Poppins", sans-serif; }
.meter-progress { position: relative; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin: 1.6rem 0; direction: ltr; }
.meter-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #43e97b, #ffd36e); }
.meter-progress i { position: absolute; top: 50%; right: .55rem; transform: translateY(-50%); color: #fff; font: 700 .78rem/1 "Poppins", sans-serif; }

.munshi-tip { display: grid; grid-template-columns: 130px 1fr; gap: 2rem; align-items: start; background: linear-gradient(135deg, #fff5dd, #ffd481); color: #17172b; }
.tip-logo { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 30px; background: rgba(255, 255, 255, .62); }
.munshi-tip h2,
.munshi-tip p,
.munshi-tip li { color: #17172b; }
.munshi-tip .story-kicker { color: #9d3d18; }
.munshi-tip ul { margin: 1rem 1.4rem 1.5rem 0; }
.munshi-tip li { margin: .45rem 0; }
.article-source { background: rgba(255, 255, 255, .06); }
.article-source h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.source-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.source-links a { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #7dffb2; padding: .6rem .9rem; }
.story-finale { min-height: 430px; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, #ff6b35, #6c45e6); }
.story-finale p { color: rgba(255, 255, 255, .84); font-size: 1.35rem; }
.story-finale h2 { font-size: clamp(3rem, 9vw, 6.5rem); margin: 0; }
.story-finale strong { color: #fff; font-size: 1.6rem; }
.story-finale span { color: #fff; font: 700 clamp(.95rem, 2vw, 1.2rem)/1.5 "Poppins", sans-serif; margin-top: .5rem; }

@media (max-width: 980px) {
  .article-hero .article-narrow { display: grid; gap: 2.5rem; }
  .article-hero-copy { display: contents; }
  .article-hero-copy .article-back { order: 1; margin-bottom: -1rem; }
  .article-hero-copy .eyebrow { order: 2; width: fit-content; }
  .article-hero-copy h1 { order: 3; margin-block: -.5rem; }
  .article-hero .hero-sketch-frame { order: 4; width: 100%; }
  .article-hero-copy .article-deck { order: 5; }
  .article-hero-copy .article-meta { order: 6; margin-top: -1rem; }
}

@media (max-width: 760px) {
  .article-teaser,
  .cost-grid,
  .tariff-grid,
  .munshi-tip { grid-template-columns: 1fr; }
  .article-teaser-art,
  .article-teaser-art img { min-height: 160px; }
  .story-card { min-height: 0; }
  .sketch-frame { border-width: 6px; margin-inline: -.35rem; transform: none; }
  .hero-sketch-frame figcaption { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 6px; box-shadow: none; transform: none; }
  .unit-compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
  .unit-compare > div:not(.unit-arrow) { min-height: 190px; padding: .9rem .6rem; }
  .unit-arrow { display: none; }
  .unit-value { display: grid; gap: .25rem; }
  .unit-value strong { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .unit-compare p { font-size: .88rem; line-height: 1.65; }
  .cost-panel dl div { grid-template-columns: 1fr; }
  .cost-panel dd { justify-self: start; }
  .status-timeline { grid-template-columns: 1fr; }
  .status-timeline li { min-height: 110px; }
  .status-timeline li:not(:last-child)::after { content: "↓"; top: auto; bottom: -1rem; left: 50%; transform: translateX(-50%); }
  .tip-logo { width: 88px; height: 88px; border-radius: 24px; }
  .tip-logo img { width: 70px; height: 70px; }
}
