/* Card Editorial Equal-Height Extension
   Loaded after platform-shell.css and visual-polish.css. Scoped to .card.card-editorial. */
.card.card-editorial { display: flex; flex-direction: column; height: 430px; box-sizing: border-box; overflow: hidden; }
.card.card-editorial .card-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 12px 14px 10px; gap: 6px; box-sizing: border-box; }
.card.card-editorial .card-top { flex: 0 0 auto; }
.card.card-editorial .card-top h3, .card.card-editorial .card-title { font-size: 14px; line-height: 1.45; margin: 0 0 3px; font-weight: 650; color: #513218; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card.card-editorial .meta { flex: 0 0 auto; font-size: 11.5px; line-height: 1.35; color: #8a7661; margin-bottom: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.card.card-editorial .card-content { display: flex; flex: 1 1 0%; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.card.card-editorial .facts { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 4px 0 0; border-top: 1px solid #efe5d9; list-style: none; max-height: none !important; }
.card.card-editorial .facts .fact { display: flex; align-items: baseline; font-size: 12.5px; line-height: 1.4; min-width: 0; }
.card.card-editorial .facts .fk { flex: 0 0 auto; font-weight: 550; color: #9b7c5e; margin-right: 6px; white-space: nowrap; }
.card.card-editorial .facts .fvv { flex: 1 1 auto; min-width: 0; color: #4f4438; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--fact-lines, 1); overflow: hidden; text-overflow: ellipsis; }
.card.card-editorial.has-figure .facts { max-height: calc(8 * 1.35 * 12.5px + 7 * 3.5px + 4px); overflow: hidden; }
.card.card-editorial.no-figure .facts { max-height: calc(12 * 1.35 * 12.5px + 11 * 3.5px + 4px); overflow: hidden; }
.card.card-editorial .card-reading { display: flex; flex: 1 1 0%; min-height: 0; gap: 10px; align-items: stretch; background: #fbf7f0; border-radius: 9px; padding: 7px 10px; box-sizing: border-box; border: 1px solid #f2e7d8; }
.card.card-editorial.has-figure .card-reading { display: grid; grid-template-columns: minmax(0, 1fr) 144px; align-items: center; gap: 10px; }
.card.card-editorial.no-figure .card-reading { display: flex; flex-direction: column; }
.card.card-editorial .card-insight { display: flex; flex-direction: column; min-height: 0; justify-content: flex-start; overflow: hidden; }
.card.card-editorial .insight-label { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: #ca772f; margin-bottom: 2px; display: inline-block; line-height: 1.3; }
.card.card-editorial .card-insight p { margin: 0; font-size: 13px; line-height: 1.55; color: #5d4e3f; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.card.card-editorial.has-figure .card-insight p { -webkit-line-clamp: 4; }
.card.card-editorial.no-figure .card-insight p { -webkit-line-clamp: 6; }
.card.card-editorial .card-reading-figure { width: 144px; height: 144px; flex: 0 0 144px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid #eee2d2; padding: 4px; box-sizing: border-box; overflow: hidden; }
.card.card-editorial .card-reading-figure img, .card.card-editorial .card-reading-figure svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.card.card-editorial .card-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.card.card-editorial .card-footer .card-tags, .card.card-editorial .card-footer .tags { margin-top: 0 !important; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; max-height: 26px; overflow: hidden; }
.card.card-editorial .card-read-more { flex: 0 0 auto; font-size: 12px; font-weight: 650; color: #a3591f; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.card.card-editorial .card-read-more:hover { color: #7d3a08; text-decoration: underline; }
@media (max-width: 760px) {
  .card.card-editorial { height: 410px; }
  .card.card-editorial .card-body { padding: 10px 12px 8px; gap: 6px; }
  .card.card-editorial.has-figure .card-reading { grid-template-columns: minmax(0, 1fr) 124px; gap: 8px; padding: 6px 8px; }
  .card.card-editorial .card-reading-figure { width: 124px; height: 124px; flex: 0 0 124px; }
  .card.card-editorial.has-figure .card-insight p { -webkit-line-clamp: 3; }
  .card.card-editorial.no-figure .card-insight p { -webkit-line-clamp: 5; }
}
.card.card-editorial .card-footer{margin-top:0;border-top:1px solid #eee5d8;padding-top:7px}.card.card-editorial.has-figure .card-reading{flex:none;min-height:152px;padding:4px 6px;background:transparent;border:0}.card.card-editorial .facts .fk{flex:0 0 auto;max-width:86px;font-weight:650;margin-right:8px;line-height:1.45}.card.card-editorial.has-figure .card-content{gap:5px}.card.card-editorial .card-title{margin-bottom:0}.card.card-editorial .insight-label{font-size:11.5px;color:#9c642c}.card.card-editorial .meta{line-height:1.45}.card.card-editorial .card-insight{flex:1}.card.card-editorial .card-content:has(>.facts:last-child){overflow:hidden}.card.card-editorial .fact{flex-shrink:0}@media(max-width:760px){.card.card-editorial.has-figure .card-reading{min-height:132px}.card.card-editorial .card-body{gap:5px}}

.detail-reading{margin:16px 0;padding:16px 18px;border:1px solid #ead9c2;background:#faf4e9;border-radius:12px}.detail-reading h3{font-size:15px;color:#825021;margin:0 0 7px}.detail-reading p{font-size:14px;line-height:1.9;margin:0}.detail-reading a{display:inline-block;margin-top:8px;font-size:12px;color:#985c25}.card.card-editorial .facts .fk{font-size:11.5px}.card.card-editorial.no-figure .card-reading{padding:12px 14px}.card.card-editorial .card-reading-figure{border:0;padding:0}.card.card-editorial .card-footer .card-tags:empty{display:none}.card.card-editorial .card-footer:has(.card-tags:empty){justify-content:flex-end}

#grid .card-editorial .facts,#engineeringApp .card-editorial .facts{gap:3px;padding-top:5px;max-height:none;overflow:visible}.card.card-editorial.has-figure .card-reading{flex:1;min-height:144px}.card.card-editorial .card-reading-figure{height:136px}.card.card-editorial .card-insight p{-webkit-line-clamp:var(--insight-lines,6)}.card.card-editorial.no-figure .card-reading{min-height:70px}@media(max-width:760px){.card.card-editorial.has-figure .card-reading{min-height:132px}.card.card-editorial .card-reading-figure{height:124px}}

.card-editorial .card-reading-figure .equipment-photo{float:none;width:100%;height:100%;margin:0;padding:4px;border:0;box-shadow:none}.card-editorial .card-reading-figure .equipment-photo img{width:100%;height:100%;object-fit:contain}.card-editorial .card-content>.facts:last-child{flex:1}.card-editorial.intel-card:not(.equipment-card) .facts .fact:has(.fk){line-height:1.55}.card-editorial.intel-card:not(.equipment-card) .facts{gap:7px}.card-editorial .card-footer .tag{font-size:10px;padding:2px 6px}

.card.card-editorial .fact[hidden]{display:none!important}.card.card-editorial .card-reading{overflow:hidden}.card.card-editorial .card-content{min-width:0}.card.card-editorial .card-reading-figure{flex-shrink:0}

.card.card-editorial.no-figure .card-insight p,.card.card-editorial.has-figure .card-insight p{-webkit-line-clamp:var(--insight-lines,6)}.card.card-editorial .facts .fk{white-space:normal;overflow-wrap:anywhere}

.process-flow.quality-order>.intel-card::before{display:none}

/* Keep parameter values aligned across all editorial cards. */
.card.card-editorial .facts .fk{flex:0 0 60px;width:60px;max-width:60px;margin-right:8px;text-align:left}
.card.card-editorial .card-footer .tag{max-width:100px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.card-title .model-term,.card-title .pathway,.card-title .method-term{color:#76512f;font-weight:700;text-decoration:underline;text-decoration-color:#dfc29f;text-underline-offset:3px}
/* Restrained title emphasis: one source tint, coordinated warm text elsewhere. */
.card.card-editorial .card-title .plant{background:#f9eee2;color:#8f4d20;padding:0 3px;border-radius:3px;font-weight:700}
.card.card-editorial .card-title .cargo,.card.card-editorial .card-title .engineering{background:none;color:#8f4d20;padding:0;border:0;border-radius:0;font-weight:700;text-decoration:none}
.card.card-editorial .card-title .disease{color:#a05b2a;border-bottom:1px solid #e4c5a5;font-weight:700}
.card.card-editorial .card-title .title-short-term{white-space:nowrap}

/* V4 Root partial source presentation: fixed card size and existing type scale. */
.card.card-editorial.partial-source-card { height: 430px; }
.card.card-editorial.partial-source-card .partial-signed-facts { max-height: none; overflow: hidden; }
.card.card-editorial.partial-source-card .partial-source-card-fact .fvv { -webkit-line-clamp: var(--fact-lines, 2); }
.card.card-editorial.partial-source-card .card-reading { min-height: 90px; }
.partial-evidence { margin: 6px 0; padding: 8px 10px; border: 1px solid #e7d8c7; border-radius: 6px; background: #fffcf8; }
.partial-evidence summary { cursor: pointer; font-weight: 600; }
.partial-evidence h4 { margin: 12px 0 6px; }
.partial-evidence li { margin: 5px 0; overflow-wrap: anywhere; }
.partial-scope { margin: 3px 0; color: #735d49; }
.partial-quantity-basis { margin-top: 4px; color: #735d49; }

.table-title .plant{background:#f9eee2;color:#8f4d20;padding:0 3px;border-radius:3px;font-weight:700}.table-title .disease{color:#a05b2a;border-bottom:1px solid #e4c5a5;font-weight:700}.table-title .cargo,.table-title .engineering{background:none;color:#8f4d20;padding:0;border:0;border-radius:0;font-weight:700;text-decoration:none}

/* All article cards retain the original fixed shell regardless of fact count. */
.card.card-editorial,.card.card-editorial.no-facts,.card.card-editorial.partial-source-card{height:430px;min-height:430px;max-height:430px;align-self:stretch}
@media(max-width:760px){.card.card-editorial,.card.card-editorial.no-facts,.card.card-editorial.partial-source-card{height:410px;min-height:410px;max-height:410px}}

/* Scoped Case Card Layout: full card content, perfect vertical filling, no overflow */
.card-editorial.case-card .facts { gap: 4px; padding-top: 5px; max-height: none !important; overflow: visible; }
.card-editorial.case-card .card-content { overflow: hidden; flex: 1 1 auto; min-height: 0; }
.card-editorial.case-card .card-footer { margin-top: auto; padding-top: 7px; border-top: 1px solid #eee5d8; }
