:root{--wine:#690014;--wine2:#42000d;--gold:#ffd400;--ink:#18212d;--muted:#667281;--line:#dfe3e8;--paper:#f7f8fa;--shadow:0 18px 48px rgba(25,35,48,.10)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:linear-gradient(#fff,#f5f6f8 60%,#fff)}
.hero{padding:48px max(5vw,28px);display:flex;align-items:center;gap:28px;color:#fff;background:radial-gradient(circle at 85% 18%,rgba(255,212,0,.24),transparent 25%),linear-gradient(120deg,var(--wine2),var(--wine) 72%,#92002a)}
.logo{width:88px;height:88px;background:#650011;position:relative;border:1px solid rgba(255,255,255,.28);box-shadow:0 15px 38px rgba(0,0,0,.28);flex:none}.logo i{position:absolute;width:15px;height:15px;border-radius:50%;background:var(--gold)}.logo i:nth-child(1){left:17px;top:22px}.logo i:nth-child(2){right:15px;top:15px}.logo i:nth-child(3){right:18px;bottom:18px}.logo i:nth-child(4){left:24px;bottom:21px}.logo:before,.logo:after{content:"";position:absolute;height:3px;background:var(--gold);transform-origin:left}.logo:before{width:43px;left:26px;top:31px;transform:rotate(-13deg)}.logo:after{width:42px;left:34px;top:54px;transform:rotate(24deg)}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.74rem;font-weight:900;margin:0 0 8px;opacity:.82}.eyebrow.dark{color:var(--wine)}h1,h2,h3{font-family:Georgia,serif}h1{font-size:clamp(2.1rem,4.2vw,4.4rem);line-height:1.02;margin:0}.hero p:last-child{max-width:900px;line-height:1.6;color:rgba(255,255,255,.84)}main{width:min(1500px,92vw);margin:auto}.selector,.workspace{padding:52px 0}.workspace{border-top:1px solid var(--line)}.heading-row{display:flex;align-items:end;justify-content:space-between;gap:20px}.heading-row h2{font-size:clamp(1.8rem,3vw,2.8rem);margin:0}.help{color:var(--muted);margin:12px 0 22px}.status{padding:8px 13px;border-radius:999px;background:#ecf8f1;color:#176b44;font-weight:800}.article-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.article-card{position:relative;border:1px solid var(--line);background:#fff;border-radius:18px;padding:18px;min-height:235px;cursor:pointer;box-shadow:0 7px 22px rgba(30,40,52,.04);transition:.2s}.article-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.article-card.selected{border-color:var(--wine);box-shadow:0 0 0 3px rgba(105,0,20,.10),var(--shadow)}.article-card input{position:absolute;right:16px;top:16px;width:20px;height:20px;accent-color:var(--wine)}.num{font-size:.72rem;letter-spacing:.11em;text-transform:uppercase;color:var(--wine);font-weight:900}.article-card h3{font-size:1.12rem;line-height:1.25;margin:18px 28px 10px 0}.article-card p{font-size:.88rem;line-height:1.45;color:var(--muted)}.tag{display:inline-block;background:#f0f2f5;border-radius:999px;padding:5px 8px;font-size:.7rem;font-weight:750;color:#4f5b68}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 14px;font-weight:800;color:#56616e;cursor:pointer}.tab.active{background:#eee1e5;border-color:#d5aab4;color:var(--wine)}.layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.75fr);gap:22px;align-items:start}.diagram-card,.details{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.diagram-card{padding:12px}.details{padding:24px;min-height:520px}.details h3{font-size:1.55rem;margin:0 0 12px}.details h4{font-size:.76rem;text-transform:uppercase;letter-spacing:.1em;color:var(--wine);margin:0 0 8px}.block{border-top:1px solid var(--line);padding:16px 0}.block:first-of-type{border-top:0}.block p,.block li{font-size:.91rem;line-height:1.55;color:#4f5a67}.block ul{padding-left:18px;margin:0}.kicker{font-size:.73rem;text-transform:uppercase;letter-spacing:.12em;color:var(--wine);font-weight:900;margin-bottom:12px}.pdfs{display:grid;gap:8px;margin-top:18px}.pdfs a{text-decoration:none;color:var(--ink);font-weight:800;font-size:.85rem;background:#f4f5f7;padding:10px 12px;border-radius:10px;display:flex;justify-content:space-between}.pdfs a:hover{color:var(--wine);background:#eee1e5}.set-shape{stroke-width:3;cursor:pointer;transition:.18s}.set-shape:hover,.set-shape.active{stroke-width:6;filter:drop-shadow(0 8px 10px rgba(0,0,0,.15))}.set-label{font-weight:900;font-size:15px;fill:#202b38;pointer-events:none}.center-label{font-weight:900;font-size:13px;fill:#fff;pointer-events:none}.center-pill{fill:var(--wine);stroke:#fff;stroke-width:2;cursor:pointer}.note{margin:2px 18px 12px;color:var(--muted);font-size:.82rem}.chips{display:flex;flex-wrap:wrap;gap:7px;padding:4px 12px 16px}.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;font-size:.75rem;font-weight:800;cursor:pointer;color:#4f5a67}.chip.active,.chip:hover{background:var(--wine);color:#fff;border-color:var(--wine)}footer{background:#20252c;color:#fff;padding:27px max(4vw,24px);display:flex;justify-content:space-between;gap:20px;font-size:.84rem}footer span{color:#aeb7c1}
@media(max-width:1250px){.article-grid{grid-template-columns:repeat(3,1fr)}.layout{grid-template-columns:1fr}}@media(max-width:760px){.hero{display:block}.logo{margin-bottom:22px}.article-grid{grid-template-columns:1fr}.heading-row{align-items:flex-start;flex-direction:column}.diagram-card{overflow:auto}#venn{min-width:850px}footer{flex-direction:column}}
.ellipse-copy-object{pointer-events:none;overflow:visible}
.ellipse-copy{height:100%;display:flex;flex-direction:column;justify-content:center;color:#17212d;font-size:13px;line-height:1.3;text-align:left;padding:8px 10px;text-shadow:0 1px 0 rgba(255,255,255,.55)}
.ellipse-copy-heading{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;margin-bottom:6px;opacity:.78}
.ellipse-copy ul{margin:0;padding-left:17px}
.ellipse-copy li{margin:0 0 7px}
.ellipse-copy-4,.ellipse-copy-5{font-size:11.5px;line-height:1.25}
.ellipse-copy-4 li,.ellipse-copy-5 li{margin-bottom:5px}
.center-label-small{font-size:10px;font-weight:750}

/* User requirement: the left and right ellipses are always perfectly horizontal (0 degrees).
   Their SVG transform is explicitly set to rotate(0 ...). */
#venn .set-shape { vector-effect: non-scaling-stroke; }

/* Requested geometry: left and right ellipses are explicitly horizontal at 0 degrees in every mode. */
#venn .set-shape { vector-effect: non-scaling-stroke; }

/* Requested geometry: the left and right Venn ellipses are explicitly horizontal at 0 degrees in 2-, 3-, and 4-article views. */
#venn .set-shape { vector-effect: non-scaling-stroke; }

#venn .set-shape{vector-effect:non-scaling-stroke;}

/* Geometry and text containment requested for this version */
#venn .set-shape{vector-effect:non-scaling-stroke}
.ellipse-copy-object{pointer-events:none;overflow:hidden}
.ellipse-copy{box-sizing:border-box;width:100%;height:100%;overflow:hidden;line-height:1.12;padding:3px 5px}
.ellipse-copy ul{margin:2px 0 0 13px;padding:0}
.ellipse-copy li{margin:0 0 2px 0}
.ellipse-copy-heading{font-weight:800;margin-bottom:2px}
.ellipse-copy-4{line-height:1.06}
.ellipse-copy-4 ul{margin-left:11px}

.article-card{min-height:224px}.article-card h3{font-size:1.06rem}.ellipse-copy{padding:3px 5px}.ellipse-copy li{margin:0 0 1px 0}.ellipse-copy-heading{font-size:10.2px}.ellipse-copy-4{line-height:1.02}.ellipse-copy-4 li{margin-bottom:1px}

.ellipse-copy-object{overflow:hidden!important}.ellipse-copy{overflow:hidden!important;box-sizing:border-box}.ellipse-copy-4{line-height:1.0!important}.ellipse-copy-4 li{margin-bottom:0!important}

/* 1821/1819/1818/1797 version: strict ellipse text containment. */
.ellipse-copy-object{overflow:hidden!important}
.ellipse-copy{overflow:hidden!important;box-sizing:border-box;width:100%;height:100%;max-width:100%;padding:3px 5px;line-height:1.05}
.ellipse-copy ul{margin:1px 0 0 12px;padding:0}
.ellipse-copy li{margin:0 0 1px 0;overflow-wrap:anywhere}
.ellipse-copy-heading{margin-bottom:1px}


/* 1813/1812/1811/1810: strict horizontal geometry and text containment */
.ellipse-copy-object{overflow:hidden!important}
.ellipse-copy{
  overflow:hidden!important;
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  padding:3px 5px;
  line-height:1.03;
  overflow-wrap:anywhere;
  word-break:normal;
}
.ellipse-copy-heading{
  font-weight:900;
  font-size:.92em;
  line-height:1.05;
  margin-bottom:2px;
}
.ellipse-copy ul{margin:1px 0 0 11px;padding:0}
.ellipse-copy li{margin:0 0 1px 0}


/* 1873/1863/1861 version: 3-card layout and strict text containment */
.article-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1280px}
.ellipse-copy-object{overflow:hidden!important}
.ellipse-copy{overflow:hidden!important;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;padding:3px 5px;line-height:1.03;overflow-wrap:anywhere}
.ellipse-copy-heading{font-weight:900;font-size:.92em;line-height:1.05;margin-bottom:2px}
.ellipse-copy ul{margin:1px 0 0 11px;padding:0}
.ellipse-copy li{margin:0 0 1px 0}
@media(max-width:1100px){.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.article-grid{grid-template-columns:1fr}}
