/* DREALT Knowledge Guides v0.8.123 — larger type, aligned cards, richer modal */
.knowledge-disclaimer{margin:0 0 28px;padding:18px 20px;border:1px solid #315170;border-radius:16px;background:linear-gradient(145deg,#0c1c2f,#091725)}
.knowledge-disclaimer strong{display:block;margin-bottom:7px;color:#e5f2ff;font-size:17px}.knowledge-disclaimer p{margin:0;color:#b4c5d6;line-height:1.78;font-size:16px;word-break:keep-all;text-wrap:pretty}
.knowledge-section{margin:42px 0 54px}.knowledge-section .learning-head{margin-bottom:20px}.knowledge-section .learning-head h2{text-wrap:balance;word-break:keep-all}.knowledge-section .learning-head p{margin:6px 0 0;color:#a8bad0;font-size:16px;line-height:1.72;word-break:keep-all;text-wrap:pretty}
.term-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:38px;align-items:stretch}
.term-detail-card{position:relative;height:100%;border:1px solid #365978;border-radius:19px;background:linear-gradient(145deg,#10243b 0%,#0a192b 76%);overflow:hidden;min-width:0;box-shadow:0 8px 26px rgba(0,0,0,.13);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
.term-detail-card:hover,.term-detail-card:focus-within{transform:translateY(-2px);border-color:#5f8fb8;box-shadow:0 13px 32px rgba(0,0,0,.24);background:linear-gradient(145deg,#142c47,#0b1d31)}
.term-detail-card summary{list-style:none;cursor:pointer;padding:23px 24px 22px;min-height:230px;height:100%;box-sizing:border-box}.term-detail-card summary::-webkit-details-marker{display:none}.term-detail-card summary>div{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:0!important;height:100%;min-height:100%}.term-detail-card summary>div>div{display:flex!important;flex:1 1 auto;flex-direction:column;align-items:flex-start!important;width:100%;min-width:0}
.knowledge-term-chip{display:inline-flex!important;place-items:unset!important;align-items:center;min-height:0!important;max-width:100%;padding:7px 11px!important;margin:0 0 14px;border:1px solid #48779f!important;border-radius:999px!important;background:#0a1d31!important;color:#8ed0ff!important;font-size:13.5px!important;font-weight:900!important;line-height:1.28!important;text-align:left!important;white-space:normal;word-break:keep-all}
.term-detail-card summary b{display:block;color:#f5f9ff;font-size:20px!important;line-height:1.46;letter-spacing:-.015em;word-break:keep-all;text-wrap:balance}.term-detail-card summary p{margin:9px 0 0!important;color:#b5c7d8!important;font-size:16px!important;line-height:1.72!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;text-wrap:pretty}
.detail-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;margin-top:auto!important;padding:11px 15px!important;border:1px solid #527ca5!important;border-radius:11px!important;background:#12304f!important;color:#f2f8ff!important;font-size:14.5px!important;font-weight:900!important;line-height:1.1!important;transition:background .15s,border-color .15s}.detail-toggle::after{content:'↗'!important;font-size:14px}.term-detail-card summary:hover .detail-toggle{background:#1a4167!important;border-color:#80add2!important;transform:none!important}
.term-detail-card.knowledge-modal-ready>.term-detail-body,.term-detail-card.knowledge-modal-ready[open]>.term-detail-body{display:none!important}
.knowledge-list{margin:13px 0 0;padding-left:22px;color:#bdccda;font-size:16px;line-height:1.82}.knowledge-note{margin:15px 0 0;padding:14px 16px;border:1px solid #3a5d7a;border-radius:13px;background:#091a2b}.knowledge-note strong{display:block;color:#9bd3ff;font-size:15px}.knowledge-note p{margin:6px 0 0!important;color:#bdccda!important;font-size:15.5px!important;line-height:1.75!important;word-break:keep-all}.knowledge-table td,.knowledge-table th{vertical-align:top}.knowledge-build-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}.knowledge-build-map article{padding:14px;border:1px solid #31516d;border-radius:14px;background:#0b1929}.knowledge-build-map b{display:block;margin-bottom:6px;font-size:15px}.knowledge-build-map span{color:#b5c5d5;font-size:14px;line-height:1.68}.knowledge-build-map .required b{color:#ffb458}.knowledge-build-map .conditional b{color:#8bc8ff}.knowledge-build-map .optional b{color:#9ed7ae}.knowledge-prompt-box{margin:34px 0;padding:20px;border:1px solid #3b5d7f;border-radius:18px;background:linear-gradient(145deg,#102039,#0a1727)}.knowledge-prompt-box h2{margin:4px 0 8px}.knowledge-prompt-box>div>p{color:#b2c2d3;line-height:1.75;font-size:16px}.knowledge-prompt-box textarea{width:100%;min-height:390px;margin:12px 0;padding:15px;border:1px solid #395d82;border-radius:12px;background:#061321;color:#dfeeff;font:14px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical}.knowledge-copy-btn{margin-top:0}.knowledge-copy-status{min-height:20px;margin:8px 0 0;color:#8ed7a1;font-size:14px;font-weight:800}.knowledge-section .guide-table-wrap{margin:0 0 18px}.term-detail-body a{color:#8cc9ff}.term-detail-body strong{color:#e5f0ff}
body.knowledge-modal-open{overflow:hidden}.knowledge-modal-overlay{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(1,8,16,.78);backdrop-filter:blur(8px)}.knowledge-modal-overlay[hidden]{display:none}.knowledge-modal{position:relative;width:min(1060px,100%);max-height:min(91vh,940px);overflow:auto;overscroll-behavior:contain;border:1px solid #4d759a;border-radius:23px;background:linear-gradient(155deg,#10263f 0%,#081522 72%);box-shadow:0 30px 100px rgba(0,0,0,.58);color:#e2edf8}.knowledge-modal-close{position:sticky;float:right;top:14px;right:14px;z-index:5;width:46px;height:46px;border:1px solid #567995;border-radius:13px;background:#0a1b2d;color:#edf7ff;font-size:27px;line-height:1;cursor:pointer}.knowledge-modal-close:hover{background:#173653;border-color:#83b0d5}.knowledge-modal-head{padding:34px 82px 27px 34px;border-bottom:1px solid #2b4b68;background:linear-gradient(180deg,rgba(42,91,136,.25),rgba(8,21,34,0))}.knowledge-modal-eyebrow{display:block;margin-bottom:11px;color:#8bcaff;font-size:14px;font-weight:900;letter-spacing:.025em}.knowledge-modal-chip{display:inline-flex;padding:7px 11px;margin-bottom:12px;border:1px solid #4979a2;border-radius:999px;background:#0c2239;color:#9ad7ff;font-size:13.5px;font-weight:900;word-break:keep-all}.knowledge-modal-head h2{margin:0;color:#f7fbff;font-size:31px;line-height:1.34;letter-spacing:-.025em;word-break:keep-all;text-wrap:balance}.knowledge-modal-lead{margin:11px 0 0;color:#bfd0df;font-size:17px;line-height:1.78;word-break:keep-all;text-wrap:pretty}.knowledge-modal-content{padding:28px 34px 34px}.knowledge-modal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 28px}.knowledge-modal-summary article{padding:18px 18px;border:1px solid #385f7e;border-radius:16px;background:#0a1c2e}.knowledge-modal-summary small{display:block;margin-bottom:8px;color:#8bcaff;font-size:15px;font-weight:900}.knowledge-modal-summary p{margin:0;color:#d0dce7;font-size:15.5px;line-height:1.78;word-break:keep-all;text-wrap:pretty}.knowledge-modal-section{margin-top:27px;padding-top:27px;border-top:1px solid #294863}.knowledge-modal-section:first-of-type{margin-top:0;padding-top:0;border-top:0}.knowledge-modal-section h3,.knowledge-modal-sidecard h3{margin:0 0 13px;color:#f2f7fd;font-size:20px;line-height:1.4}.knowledge-modal-bodycopy{color:#c8d5e1;font-size:16.5px;line-height:1.84;word-break:keep-all;text-wrap:pretty}.knowledge-modal-bodycopy>p:first-child{margin-top:0}.knowledge-modal-bodycopy .guide-table-wrap{overflow-x:auto}.knowledge-modal-bodycopy table{min-width:560px}.knowledge-modal-workflow{display:grid;gap:10px;counter-reset:kstep}.knowledge-modal-workflow li{list-style:none;position:relative;padding:14px 16px 14px 54px;border:1px solid #345a78;border-radius:14px;background:#0a1a2b;color:#cbd8e4;font-size:15.5px;line-height:1.72;word-break:keep-all}.knowledge-modal-workflow li::before{counter-increment:kstep;content:counter(kstep);position:absolute;left:15px;top:14px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#153b60;color:#a8dcff;font-size:13px;font-weight:900}.knowledge-modal-questions{display:flex;flex-wrap:wrap;gap:9px}.knowledge-modal-questions span{padding:9px 12px;border:1px solid #385f80;border-radius:999px;background:#0b2137;color:#d2e6f7;font-size:14px;line-height:1.45;word-break:keep-all}.knowledge-modal-bottom-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:14px;margin-top:27px;padding-top:27px;border-top:1px solid #294863}.knowledge-modal-sidecard{padding:18px;border:1px solid #385f7e;border-radius:16px;background:#0a1b2d}.knowledge-modal-related{display:flex;flex-wrap:wrap;gap:9px}.knowledge-modal-related button{border:1px solid #477092;border-radius:999px;padding:9px 12px;background:#0d2740;color:#d7ecfc;font-size:14px;font-weight:800;cursor:pointer}.knowledge-modal-related button:hover{background:#1a4265;border-color:#77a5cc}.knowledge-modal-recommendations{display:block}.knowledge-modal-recommendations[hidden]{display:none}.knowledge-recommend-placeholder{margin:0;color:#b9c9d7;font-size:15px;line-height:1.72;word-break:keep-all}.knowledge-recommend-placeholder strong{display:block;margin-bottom:6px;color:#93d0ff}.knowledge-modal-recommendations a{display:block;margin-top:8px;color:#98d6ff;font-size:15px}.knowledge-modal-footnote{margin:25px 0 0;padding:14px 16px;border-radius:13px;background:#081522;color:#9eb0c1;font-size:14px;line-height:1.72;word-break:keep-all}.guide-finder-hit{animation:knowledgeHit .9s ease}@keyframes knowledgeHit{0%,100%{box-shadow:0 8px 26px rgba(0,0,0,.12)}40%{box-shadow:0 0 0 3px rgba(91,169,231,.32),0 12px 30px rgba(0,0,0,.22)}}
/* Copyright guide */
.copyright-quick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0 34px}.copyright-quick article{padding:16px;border:1px solid #365c7b;border-radius:15px;background:#0b1d30}.copyright-quick b{display:block;margin-bottom:7px;color:#9cd5ff;font-size:15px}.copyright-quick p{margin:0;color:#becddd;font-size:14.5px;line-height:1.7;word-break:keep-all}.copyright-alert{margin:22px 0;padding:18px 20px;border:1px solid #7b5f38;border-radius:16px;background:linear-gradient(145deg,#2b2114,#121c29)}.copyright-alert strong{display:block;margin-bottom:7px;color:#ffd28b;font-size:18px}.copyright-alert p{margin:0;color:#d6c6aa;font-size:16px;line-height:1.75}.copyright-license-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden}.copyright-license-table th,.copyright-license-table td{padding:13px 14px;border-right:1px solid #2e4d68;border-bottom:1px solid #2e4d68;text-align:left;color:#c5d2df;font-size:15px;line-height:1.65;word-break:keep-all}.copyright-license-table th{background:#0d253d;color:#eef7ff}.copyright-license-table tr>*:first-child{border-left:1px solid #2e4d68}.copyright-license-table tr:first-child>*{border-top:1px solid #2e4d68}.copyright-license-table tr:first-child th:first-child{border-radius:12px 0 0 0}.copyright-license-table tr:first-child th:last-child{border-radius:0 12px 0 0}.copyright-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.copyright-source-grid a{display:block;padding:16px 18px;border:1px solid #365d7c;border-radius:15px;background:#0b1e31;color:#d8ecfb;text-decoration:none}.copyright-source-grid a:hover{border-color:#6b99bf;background:#102a43}.copyright-source-grid strong{display:block;margin-bottom:6px;color:#9bd5ff;font-size:16px}.copyright-source-grid span{color:#adbece;font-size:14px;line-height:1.65}
@media(min-width:1320px){.term-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.term-detail-card summary{min-height:250px}}
@media(max-width:980px){.copyright-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-modal-summary{grid-template-columns:1fr}.knowledge-modal-bottom-grid{grid-template-columns:1fr}}
@media(max-width:800px){.term-detail-grid{grid-template-columns:1fr}.term-detail-card summary{min-height:0;padding:21px 20px}.term-detail-card summary b{font-size:19px!important}.term-detail-card summary p{font-size:16px!important;-webkit-line-clamp:unset}.detail-toggle{margin-top:18px!important}.knowledge-build-map{grid-template-columns:1fr}.knowledge-prompt-box{padding:15px}.knowledge-prompt-box textarea{min-height:460px}.knowledge-modal-overlay{padding:0;align-items:flex-end}.knowledge-modal{width:100%;max-height:94vh;border-radius:21px 21px 0 0;border-left:0;border-right:0;border-bottom:0}.knowledge-modal-head{padding:27px 66px 21px 21px}.knowledge-modal-head h2{font-size:26px}.knowledge-modal-lead{font-size:16.5px}.knowledge-modal-content{padding:22px 20px 27px}.knowledge-modal-summary{grid-template-columns:1fr}.knowledge-modal-summary p,.knowledge-modal-bodycopy{font-size:16px}.knowledge-modal-close{top:10px;right:10px}.knowledge-term-chip{justify-content:flex-start;text-align:left}.copyright-quick,.copyright-source-grid{grid-template-columns:1fr}.copyright-license-table{min-width:720px}.copyright-table-wrap{overflow-x:auto}}
@media(prefers-reduced-motion:reduce){.term-detail-card,.detail-toggle{transition:none}.guide-finder-hit{animation:none}}


/* DREALT Knowledge Guides v0.8.124 — compact knowledge list + aligned workflow */
/* The detailed explanation lives in the modal. The page list only keeps the term + short gist. */
.term-detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:34px;
  align-items:stretch;
}
.term-detail-card{
  min-height:0;
  border-radius:15px;
  box-shadow:none;
  background:#0c1d30;
}
.term-detail-card:hover,.term-detail-card:focus-within{
  transform:translateY(-1px);
  border-color:#6594bc;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
  background:#102740;
}
.term-detail-card summary{
  position:relative;
  display:block;
  height:100%;
  min-height:126px;
  padding:16px 54px 16px 18px;
  box-sizing:border-box;
}
.term-detail-card summary>div{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  height:auto!important;
  min-height:0!important;
}
.term-detail-card summary>div>div{
  display:block!important;
  flex:0 1 auto!important;
  width:100%;
  min-width:0;
}
.term-detail-card summary::after{
  content:'›';
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border:1px solid #426b8e;
  border-radius:9px;
  color:#a9d8ff;
  background:#0b2238;
  font-size:24px;
  font-weight:700;
  line-height:1;
  transition:background .15s,border-color .15s,transform .15s;
}
.term-detail-card summary:hover::after{
  background:#183e60;
  border-color:#77a8cf;
  transform:translateY(-50%) translateX(2px);
}
.knowledge-term-chip{
  margin:0 0 8px!important;
  padding:5px 9px!important;
  font-size:13px!important;
  line-height:1.2!important;
}
.term-detail-card summary b{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:17.5px!important;
  line-height:1.48!important;
  word-break:keep-all;
  text-wrap:pretty;
}
.term-detail-card summary p{
  margin:6px 0 0!important;
  display:-webkit-box!important;
  -webkit-line-clamp:1!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  color:#aebfd0!important;
  font-size:14.5px!important;
  line-height:1.55!important;
  word-break:keep-all;
  text-wrap:pretty;
}
.detail-toggle{display:none!important}

/* Number and text are separate grid columns: no more badge overlapping the box edge. */
.knowledge-modal-workflow li{
  position:relative;
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:14px 16px;
}
.knowledge-modal-workflow li::before{
  position:static;
  left:auto;
  top:auto;
  align-self:start;
  width:28px;
  height:28px;
  margin-top:1px;
}

@media(max-width:760px){
  .term-detail-grid{grid-template-columns:1fr;gap:10px}
  .term-detail-card summary{min-height:118px;padding:15px 50px 15px 16px}
  .term-detail-card summary::after{right:14px}
  .term-detail-card summary b{font-size:17px!important}
  .term-detail-card summary p{font-size:14.5px!important}
}

/* DREALT Knowledge Guides v0.8.125 — allow two-line card summaries before ellipsis */
.term-detail-card summary{min-height:148px}
.term-detail-card summary p{-webkit-line-clamp:2!important}
@media(max-width:760px){
  .term-detail-card summary{min-height:136px}
  .term-detail-card summary p{-webkit-line-clamp:2!important}
}


/* DREALT Knowledge Guides v0.8.126 — term-first visual hierarchy */
/* In a glossary/knowledge guide, the term itself is the primary heading. */
.knowledge-term-chip{
  display:block!important;
  width:100%;
  max-width:none!important;
  margin:0 0 7px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#f4f9ff!important;
  font-size:24px!important;
  font-weight:950!important;
  line-height:1.24!important;
  letter-spacing:-.025em!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:keep-all!important;
  text-wrap:balance;
}
.term-detail-card summary b{
  color:#9fd3ff!important;
  font-size:16.5px!important;
  font-weight:850!important;
  line-height:1.5!important;
  letter-spacing:-.01em!important;
  -webkit-line-clamp:2!important;
}
.term-detail-card summary p{
  margin-top:7px!important;
  color:#b9c9d8!important;
  font-size:15px!important;
  line-height:1.58!important;
}
.term-detail-card summary{min-height:158px}
@media(max-width:760px){
  .knowledge-term-chip{font-size:22px!important;margin-bottom:6px!important}
  .term-detail-card summary b{font-size:16px!important}
  .term-detail-card summary p{font-size:15px!important}
  .term-detail-card summary{min-height:150px}
}
