:root{
  --ec-bg:#f7f2eb;
  --ec-card:#ffffff;
  --ec-ink:#15171d;
  --ec-muted:#66707c;
  --ec-line:#e4d9cb;
  --ec-soft:#fdfaf6;
  --ec-accent:#f35120;
  --ec-accent-soft:rgba(243,81,32,.08);
  --ec-shadow:0 18px 40px rgba(18,20,26,.06);
}
*{box-sizing:border-box}
html,body{margin:0;max-width:100%;overflow-x:clip;background:var(--ec-bg);color:var(--ec-ink)}
body{
  font-family:var(--wp--preset--font-family--montserrat, "Montserrat"), Arial, sans-serif;
  background-image:linear-gradient(rgba(17,19,25,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(17,19,25,.035) 1px,transparent 1px);
  background-size:48px 48px;
}
a{color:inherit}
img{display:block;max-width:100%}
.ec-page,.ec-shell,.ec-grid,.ec-card,.ec-article,.ec-hero-grid,.ec-facts-grid,.ec-study-row,.ec-related-grid,.ec-link-grid,.ec-forum-grid,.ec-svg-card{min-width:0;max-width:100%}
.ec-shell{width:min(1320px,calc(100% - 28px));margin:0 auto;padding:22px 0 56px}
.ec-crumb{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px;color:#7f8792;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ec-crumb a{text-decoration:none;color:#5d6672}
.ec-labels{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.ec-label{display:inline-flex;align-items:center;min-height:32px;padding:8px 13px;border:1px solid var(--ec-line);border-radius:999px;background:rgba(255,255,255,.6);color:#717986;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.ec-label--accent{border-color:rgba(243,81,32,.25);background:var(--ec-accent-soft);color:var(--ec-accent)}

/* index */
.ec-index-hero,.ec-hero{
  padding:28px;
  border:1px solid var(--ec-line);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.72));
  box-shadow:var(--ec-shadow);
}
.ec-index-hero h1,.ec-hero h1{margin:0;letter-spacing:-.06em;line-height:.96;font-size:clamp(42px,7vw,88px)}
.ec-index-hero p,.ec-hero p,.ec-block p,.ec-section-card p,.ec-subtle{color:var(--ec-muted);font-size:16px;line-height:1.8}
.ec-index-hero-grid,.ec-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:24px;align-items:start}
.ec-index-note,.ec-block,.ec-section-card,.ec-card,.ec-link-card,.ec-related-card,.ec-forum-card{
  border:1px solid var(--ec-line);background:rgba(255,255,255,.82);border-radius:24px;box-shadow:var(--ec-shadow);
}
.ec-index-note{padding:20px}
.ec-kicker{margin-bottom:10px;color:var(--ec-accent);font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.ec-list{display:grid;gap:10px;margin:0;padding-left:18px;color:#404753}
.ec-list li{line-height:1.65}
.ec-searchbox{margin-top:22px;padding:18px;border:1px solid var(--ec-line);border-radius:22px;background:rgba(255,255,255,.75)}
.ec-searchrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.ec-search{width:100%;min-height:54px;padding:0 16px;border:1px solid var(--ec-line);border-radius:16px;background:#fff;color:var(--ec-ink);font-size:15px;outline:none}
.ec-search:focus{border-color:rgba(243,81,32,.5);box-shadow:0 0 0 4px rgba(243,81,32,.10)}
.ec-count{display:flex;align-items:center;justify-content:center;min-height:54px;padding:0 15px;border-radius:16px;border:1px solid var(--ec-line);background:#fff;font-size:12px;font-weight:800;color:#535c66;white-space:nowrap}
.ec-filters{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ec-filter{padding:10px 14px;border:1px solid var(--ec-line);border-radius:999px;background:#fff;color:#5e6772;font-size:11px;font-weight:800;cursor:pointer}
.ec-filter.active,.ec-filter:hover{border-color:rgba(243,81,32,.25);background:var(--ec-accent-soft);color:var(--ec-accent)}
.ec-empty{display:none;margin:18px 0 0;padding:18px 20px;border:1px dashed rgba(243,81,32,.35);border-radius:16px;background:rgba(243,81,32,.04);color:#784c3f;font-weight:700}
.ec-section-group{margin-top:28px}
.ec-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:14px}
.ec-head h2{margin:0;font-size:clamp(26px,3vw,38px);line-height:1;letter-spacing:-.04em}
.ec-head p{margin:8px 0 0;max-width:760px;color:var(--ec-muted);font-size:15px;line-height:1.7}
.ec-head small{color:#7d8590;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.ec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ec-card{display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden;text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.ec-card:hover{transform:translateY(-2px);border-color:rgba(243,81,32,.3);box-shadow:0 22px 44px rgba(18,20,26,.08)}
.ec-card-art{background:#0f1624;padding:12px;border-right:1px solid var(--ec-line)}
.ec-card-art img{width:100%;height:100%;min-height:176px;object-fit:cover;border-radius:16px}
.ec-card-body{padding:18px}
.ec-card-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px}
.ec-card-top b{display:inline-flex;align-items:center;justify-content:center;width:44px;height:28px;border-radius:999px;background:var(--ec-accent-soft);color:var(--ec-accent);font-size:11px;font-weight:900;letter-spacing:.1em}
.ec-card-top span{color:#7a838d;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.ec-card h3{margin:0 0 8px;font-size:26px;line-height:1.08;letter-spacing:-.04em}
.ec-card p{margin:0;color:var(--ec-muted);font-size:14px;line-height:1.75}
.ec-mini-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ec-mini-facts span{display:inline-flex;padding:7px 10px;border-radius:999px;background:#fff7f3;border:1px solid rgba(243,81,32,.14);color:#875444;font-size:11px;font-weight:700}

/* article */
.ec-article{display:grid;gap:24px}
.ec-lead{margin-top:16px;max-width:860px}
.ec-topic-map{margin-top:18px;padding:16px 18px;border:1px solid var(--ec-line);border-radius:20px;background:rgba(255,255,255,.68)}
.ec-topic-map__head{margin-bottom:10px;color:#5f6771;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.ec-chipset{display:flex;flex-wrap:wrap;gap:8px}
.ec-chip{display:inline-flex;padding:9px 11px;border-radius:999px;background:#fff;border:1px solid var(--ec-line);color:#55606d;font-size:11px;font-weight:800}
.ec-svg-card{padding:12px;border:1px solid var(--ec-line);border-radius:26px;background:#0f1624}
.ec-svg-card img{width:100%;height:auto;border-radius:18px}
.ec-ataglance,.ec-study-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ec-block{padding:22px}
.ec-facts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ec-fact-card{min-height:118px;padding:16px;border:1px solid var(--ec-line);border-radius:18px;background:#fff}
.ec-fact-card small{display:block;margin-bottom:8px;color:#89919b;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.ec-fact-card strong{display:block;color:#1b212a;font-size:18px;line-height:1.45}
.ec-sections{display:grid;gap:18px}
.ec-section-card{padding:24px}
.ec-section-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;margin-bottom:12px}
.ec-section-num{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:var(--ec-accent-soft);color:var(--ec-accent);font-size:12px;font-weight:900;letter-spacing:.12em}
.ec-section-card h2,.ec-community h2{margin:0;font-size:clamp(24px,2.6vw,34px);line-height:1.06;letter-spacing:-.04em}
.ec-forum-grid,.ec-related-grid,.ec-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ec-forum-card,.ec-link-card,.ec-related-card{padding:18px;text-decoration:none}
.ec-forum-card p{margin:0 0 12px;color:#3d4550;font-size:15px;line-height:1.8}
.ec-forum-card cite,.ec-link-card span,.ec-related-card small{display:block;color:#7e8792;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ec-forum-card a,.ec-link-card strong,.ec-related-card strong{text-decoration:none}
.ec-link-card strong,.ec-related-card strong{display:block;margin-top:6px;font-size:18px;line-height:1.35;color:#171b21}
.ec-related-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;align-items:center}
.ec-related-card img{width:100%;height:100px;object-fit:cover;border-radius:14px;background:#101827}
.ec-nav-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ec-nav-links a,.ec-nav-links span{display:flex;align-items:center;min-height:58px;padding:0 18px;border:1px solid var(--ec-line);border-radius:16px;background:rgba(255,255,255,.8);font-weight:800;text-decoration:none}
.ec-nav-links a:last-child{text-align:right;justify-content:flex-end}

/* utilities */
.ec-section-card p,.ec-block p,.ec-card p,.ec-head p,.ec-forum-card p{overflow-wrap:anywhere}
@media (max-width:1100px){
  .ec-grid,.ec-forum-grid,.ec-link-grid,.ec-related-grid{grid-template-columns:1fr}
  .ec-card{grid-template-columns:1fr}
  .ec-card-art{border-right:0;border-bottom:1px solid var(--ec-line)}
  .ec-card-art img{min-height:200px}
}
@media (max-width:860px){
  .ec-index-hero-grid,.ec-hero-grid,.ec-ataglance,.ec-study-row{grid-template-columns:1fr}
  .ec-shell{width:calc(100% - 18px)}
  .ec-index-hero,.ec-hero,.ec-block,.ec-section-card,.ec-searchbox{padding:18px}
  .ec-searchrow{grid-template-columns:1fr}
  .ec-facts-grid{grid-template-columns:1fr}
  .ec-head{display:block}
  .ec-nav-links{grid-template-columns:1fr}
  .ec-nav-links a:last-child{text-align:left;justify-content:flex-start}
  .ec-index-hero h1,.ec-hero h1{font-size:clamp(34px,13vw,62px)}
}
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto}
}

/* =========================================================
   DEEP-DIVE CONTENT MODULES
   ========================================================= */
.ec-deep-dive{
  display:grid;
  gap:18px;
}
.ec-deep-intro{
  padding:26px;
  border:1px solid var(--ec-line);
  border-radius:24px;
  background:linear-gradient(145deg,#fff,#fff8f3);
  box-shadow:var(--ec-shadow);
}
.ec-deep-intro h2,.ec-review h2{
  margin:0 0 12px;
  font-size:clamp(26px,3vw,38px);
  line-height:1.06;
  letter-spacing:-.04em;
}
.ec-deep-intro p{
  max-width:980px;
  margin:12px 0 0;
  color:var(--ec-muted);
  font-size:15px;
  line-height:1.82;
}
.ec-deep-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.ec-deep-card{
  position:relative;
  min-height:240px;
  padding:22px;
  overflow:hidden;
  border:1px solid var(--ec-line);
  border-radius:22px;
  background:rgba(255,255,255,.84);
  box-shadow:var(--ec-shadow);
}
.ec-deep-card::after{
  content:"";
  position:absolute;
  right:-44px;
  bottom:-44px;
  width:128px;
  height:128px;
  border:1px solid rgba(243,81,32,.12);
  border-radius:50%;
  box-shadow:0 0 0 22px rgba(243,81,32,.025),0 0 0 44px rgba(243,81,32,.018);
  pointer-events:none;
}
.ec-deep-card small{
  display:block;
  margin-bottom:10px;
  color:var(--ec-accent);
  font-size:9px;
  font-weight:900;
  letter-spacing:.15em;
}
.ec-deep-card h3{
  margin:0 0 12px;
  max-width:560px;
  font-size:22px;
  line-height:1.12;
  letter-spacing:-.03em;
}
.ec-deep-card p{
  position:relative;
  z-index:2;
  margin:0;
  color:var(--ec-muted);
  font-size:14px;
  line-height:1.8;
}
.ec-deep-card--method{border-top:3px solid #f35120}
.ec-deep-card--misconception{border-top:3px solid #9662d8}
.ec-deep-card--compare{border-top:3px solid #4d9f86}
.ec-deep-card--terms{border-top:3px solid #d99c38}
.ec-term-cloud{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}
.ec-term-cloud span{
  display:inline-flex;
  padding:9px 11px;
  border:1px solid var(--ec-line);
  border-radius:999px;
  background:#fff;
  color:#4f5864;
  font-size:11px;
  font-weight:800;
}
.ec-review{padding:24px}
.ec-question-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.ec-question-card{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:12px;
  align-items:start;
  min-height:118px;
  padding:16px;
  border:1px solid var(--ec-line);
  border-radius:18px;
  background:#fff;
}
.ec-question-card b{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--ec-accent-soft);
  color:var(--ec-accent);
  font-size:11px;
  letter-spacing:.08em;
}
.ec-question-card p{
  margin:1px 0 0;
  color:#4e5763;
  font-size:13px;
  line-height:1.7;
}
@media(max-width:760px){
  .ec-deep-grid,.ec-question-grid{grid-template-columns:1fr}
  .ec-deep-intro,.ec-deep-card,.ec-review{padding:18px}
  .ec-deep-card{min-height:0}
}

/* =========================================================
   STORY-LED EDITORIAL ARTICLE LAYER
   ========================================================= */
.ec-article strong{font-weight:850;color:#17191f}
.ec-story{
  overflow:hidden;
  border:1px solid #28303a;
  border-radius:26px;
  background:#151a22;
  color:#fff;
  box-shadow:0 20px 46px rgba(15,19,25,.10);
}
.ec-story-topline{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 20px;
  border-bottom:1px solid rgba(255,255,255,.09);
  color:#9ca6b2;
  font-size:9px;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.ec-story-topline span{color:var(--ec-accent)}
.ec-story-grid{
  display:grid;
  grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);
  gap:28px;
  padding:28px;
}
.ec-story .ec-kicker{color:#ff7b55}
.ec-story h2{
  margin:0;
  color:#fff;
  font-size:clamp(30px,4vw,52px);
  line-height:1;
  letter-spacing:-.05em;
}
.ec-story-copy p{
  margin:0 0 18px;
  color:#c3cad2;
  font-size:15px;
  line-height:1.85;
}
.ec-story-copy .ec-story-lede{
  color:#fff;
  font-size:clamp(20px,2.1vw,28px);
  line-height:1.45;
  letter-spacing:-.02em;
}
.ec-story-copy strong{color:#fff}
.ec-story-source{
  display:inline-flex;
  margin-top:6px;
  padding:10px 13px;
  border:1px solid rgba(243,81,32,.34);
  border-radius:999px;
  color:#ff8a66;
  font-size:10px;
  font-weight:850;
  text-decoration:none;
}
.ec-story-source:hover{background:rgba(243,81,32,.08)}
.ec-facts-block{background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.72))}
.ec-section-card p strong{background:linear-gradient(transparent 72%,rgba(243,81,32,.12) 72%)}
.ec-scan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ec-scan-card{
  min-height:140px;
  padding:17px;
  border:1px solid var(--ec-line);
  border-radius:18px;
  background:#fff;
}
.ec-scan-card strong{display:block;margin-bottom:8px;font-size:16px;line-height:1.3}
.ec-scan-card p{margin:0!important;color:#66707b!important;font-size:12px!important;line-height:1.7!important}
.ec-related-card span{
  display:block;
  margin-top:7px;
  color:#68717c;
  font-size:12px;
  line-height:1.55;
}
.ec-chip{text-decoration:none;transition:border-color .15s ease,color .15s ease,background .15s ease}
.ec-chip:hover{border-color:rgba(243,81,32,.28);background:rgba(243,81,32,.06);color:#a4472b}
@media(max-width:820px){
  .ec-story-grid{grid-template-columns:1fr;padding:20px}
  .ec-story-topline{flex-direction:column;gap:5px}
  .ec-scan-grid{grid-template-columns:1fr}
}

/* =========================================================
   LONG-FORM ENCYCLOPEDIA / LOCAL MEDIA
   ========================================================= */
.ec-hero-art{margin:0;min-width:0}
.ec-media-card{overflow:hidden}
.ec-media-card img{width:100%;height:auto;aspect-ratio:15/8;object-fit:cover}
.ec-media-card--photo{padding:8px;background:#10131a}
.ec-media-card--photo img{aspect-ratio:4/3;object-fit:cover}
.ec-media-credit{display:grid;gap:5px;margin-top:9px;padding:0 4px;color:#747d87;font-size:10px;line-height:1.5}
.ec-media-credit a{color:#9a4b31;font-weight:750;text-decoration:none}
.ec-media-credit a:hover{text-decoration:underline}
.ec-reference{
  overflow:hidden;
  border:1px solid var(--ec-line);
  border-radius:26px;
  background:rgba(255,255,255,.76);
  box-shadow:var(--ec-shadow);
}
.ec-reference-head{padding:26px;border-bottom:1px solid var(--ec-line);background:linear-gradient(145deg,#fff,#fff9f5)}
.ec-reference-head h2{margin:0;font-size:clamp(30px,4vw,48px);line-height:1;letter-spacing:-.05em}
.ec-reference-head p{max-width:900px;margin:13px 0 0;color:var(--ec-muted);font-size:15px;line-height:1.78}
.ec-reference-sections{display:grid}
.ec-reference-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:20px;
  padding:25px 26px;
  border-top:1px solid var(--ec-line);
}
.ec-reference-card:first-child{border-top:0}
.ec-reference-card:nth-child(even){background:rgba(250,247,243,.58)}
.ec-reference-num{
  display:flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:14px;
  background:var(--ec-accent-soft);color:var(--ec-accent);
  font-size:11px;font-weight:900;letter-spacing:.12em
}
.ec-reference-copy h3{margin:1px 0 12px;font-size:clamp(22px,2.5vw,32px);line-height:1.12;letter-spacing:-.035em}
.ec-reference-copy p{max-width:990px;margin:0 0 16px;color:#59636f;font-size:15px;line-height:1.86}
.ec-reference-copy p:last-child{margin-bottom:0}
.ec-reference-copy strong{color:#181c23;font-weight:850;background:linear-gradient(transparent 73%,rgba(243,81,32,.13) 73%)}
.ec-card-art--photo{background:#11151c}
.ec-card-art--photo img{object-fit:cover;object-position:center}
@media(max-width:760px){
  .ec-reference-head{padding:20px}
  .ec-reference-card{grid-template-columns:1fr;gap:11px;padding:20px}
  .ec-reference-num{width:40px;height:40px}
  .ec-media-card img,.ec-media-card--photo img{aspect-ratio:16/10}
}


/* MULTI-IMAGE ARTICLE GALLERIES */
.ec-figure-grid{display:grid;gap:16px;margin-top:2px}
.ec-figure-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ec-figure-grid--single{grid-template-columns:1fr}
.ec-figure-card{padding:16px;border:1px solid var(--ec-line);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:var(--ec-shadow)}
.ec-figure-card .ec-media-card--photo{border-radius:18px;padding:8px;background:#10131a}
.ec-figure-card .ec-media-card--photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
@media(max-width:860px){.ec-figure-grid--two{grid-template-columns:1fr}}

/* =========================================================
   TOPIC-SPECIFIC WIKIMEDIA COMMONS MEDIA
   No category-level image substitution.
   ========================================================= */
.ec-commons-gallery-block{
  overflow:hidden;
  border:1px solid var(--ec-line);
  border-radius:26px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--ec-shadow);
}
.ec-commons-gallery-head{border-bottom:1px solid var(--ec-line)}
.ec-commons-gallery{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:14px;
  padding:18px;
}
.ec-commons-figure{
  grid-column:span 4;
  margin:0;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--ec-line);
  border-radius:18px;
  background:#fff;
}
.ec-commons-figure--wide{grid-column:span 8}
.ec-commons-image-link{display:block;background:#11151c;overflow:hidden}
.ec-commons-figure img{
  display:block;
  width:100%;
  height:260px;
  object-fit:cover;
  transition:transform .25s ease;
}
.ec-commons-figure--wide img{height:360px}
.ec-commons-figure:hover img{transform:scale(1.018)}
.ec-commons-figure figcaption{display:grid;gap:5px;padding:12px 13px;color:#5d6670;font-size:11px;line-height:1.5}
.ec-commons-figure figcaption small{color:#8a919a;font-size:9px;font-weight:750}
.ec-commons-gallery:empty{min-height:160px;background:linear-gradient(90deg,rgba(243,81,32,.04),rgba(255,255,255,.2),rgba(243,81,32,.04));background-size:200% 100%;animation:ec-media-loading 1.7s linear infinite}
.ec-commons-gallery-block--empty{display:none}
@keyframes ec-media-loading{to{background-position:-200% 0}}
@media(max-width:900px){
  .ec-commons-figure,.ec-commons-figure--wide{grid-column:span 6}
  .ec-commons-figure img,.ec-commons-figure--wide img{height:280px}
}
@media(max-width:620px){
  .ec-commons-gallery{grid-template-columns:1fr;padding:12px}
  .ec-commons-figure,.ec-commons-figure--wide{grid-column:auto}
  .ec-commons-figure img,.ec-commons-figure--wide img{height:auto;max-height:440px}
}
