/* Kabugami Single Report — presentation-only Gateway enhancements. */
.kbg-gateway-thumb-wrap{position:relative;display:block;max-width:100%;line-height:0;overflow:hidden;border-radius:inherit}
.kbg-gateway-thumb-wrap>img{display:block;width:100%;max-width:100%;height:auto}
.kbg-gateway-score-badge{position:absolute;right:9px;bottom:9px;z-index:2;display:grid;grid-template-columns:auto auto;align-items:baseline;gap:5px;min-width:68px;padding:7px 9px;border:1px solid rgba(225,199,131,.72);border-radius:10px;background:rgba(16,25,39,.94);box-shadow:0 5px 16px rgba(16,25,39,.24);color:#fff;line-height:1;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);pointer-events:none}
.kbg-gateway-score-badge strong{font-family:Georgia,serif;font-size:clamp(15px,1.7vw,20px);font-weight:800;letter-spacing:-.02em;color:#fff}
.kbg-gateway-score-badge span{font-size:11px;font-weight:800;color:#e1c783;letter-spacing:.03em}

.kbg-gateway-current>strong{box-sizing:border-box;display:inline-flex;align-items:center;min-width:0;width:max-content;max-width:100%;padding:4px 9px;border:1px solid rgba(225,199,131,.55);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;white-space:normal;overflow-wrap:anywhere}

/* Complete Review Timeline stays server-rendered. Every Review uses one calm visual skeleton. */
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-list{gap:12px;margin-top:16px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item{grid-template-columns:155px minmax(0,1fr);grid-template-areas:"date body" "date score" "date provenance" "date actions";column-gap:22px;row-gap:6px;align-items:start;padding:17px 20px 16px;border-radius:15px;min-width:0}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-date{grid-area:date;align-self:start;padding-top:2px;font-size:16px;line-height:1.35;white-space:nowrap}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-current{display:block;width:max-content;max-width:100%;margin-top:7px;padding:3px 8px;font-size:9px;letter-spacing:.08em}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-score-version{display:block;width:max-content;max-width:100%;margin-top:6px;color:#806528;font-size:11px;font-weight:700;line-height:1.3;white-space:nowrap}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-body{grid-area:body;min-width:0}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-body h3{margin:0 0 5px;font-size:16px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-body p{margin:0;color:#4b5563;font-size:14px;line-height:1.58}
.kbg-research-timeline:not(.kbg-history-links).is-kbg-timeline-enhanced .kbg-review-body p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.kbg-research-timeline:not(.kbg-history-links).is-kbg-timeline-enhanced .kbg-review-item.is-expanded .kbg-review-body p{display:block;overflow:visible}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-body>a{margin-top:5px}
.kbg-review-toggle{display:inline-flex;margin:7px 0 0;padding:0;border:0;background:transparent;color:#806528;font:inherit;font-size:12px;line-height:1.45;cursor:pointer}
.kbg-review-toggle:hover,.kbg-review-toggle:focus{text-decoration:underline}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-score{grid-area:score;align-self:start;justify-self:start;margin:1px 0 0;font-size:14px;line-height:1.4;text-align:left;white-space:nowrap}
/* Owner 2026-09-17: presentation-only subtraction. Preserve frozen metric truth and
 * comparators, but remove the Review-time metrics row until the later restoration leaf. */
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-archive-metrics{display:none!important}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-archive-provenance{grid-area:provenance}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-archive-metrics,
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-archive-provenance{margin:0;color:#7a818c;font-size:11.5px;font-weight:400;line-height:1.42;text-align:left;letter-spacing:0}
.kbg-review-actions{grid-area:actions;display:flex;gap:8px;justify-content:flex-start;align-items:center;flex-wrap:wrap;margin-top:3px}
.kbg-review-actions a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:38px;padding:7px 12px;border:1px solid #c9a75b;border-radius:9px;background:transparent;color:#715714;text-decoration:none;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.kbg-review-actions .kbg-review-permanent{border-color:var(--kbg-gold);background:var(--kbg-gold);color:#111827;font-weight:800}
.kbg-review-actions .kbg-review-pdf{color:#715714}

/* CURRENT keeps the same skeleton, with stronger judgment and quieter archival facts. */
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current{row-gap:7px;padding:24px 24px 22px;border-radius:18px;border-color:#c8a95f;box-shadow:inset 3px 0 0 var(--kbg-gold),0 8px 24px rgba(185,146,69,.07)}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-date{padding-top:1px;font-size:20px;line-height:1.3}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-current{margin-top:9px;padding:3px 9px;font-size:10px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-score-version{margin-top:7px;font-size:12px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-body h3{margin:0 0 8px;font-size:19px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-body p{font-size:16px;line-height:1.58}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-toggle{margin-top:10px;font-size:14px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-score{margin-top:2px;font-size:15px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-archive-metrics,
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-archive-provenance{font-size:12px;line-height:1.42}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-actions{gap:10px;margin-top:5px}
.kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-actions a{min-height:46px;padding:10px 16px;border-radius:10px;font-size:15px}

@media(max-width:900px){
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item{grid-template-columns:110px minmax(0,1fr);grid-template-areas:"date body" "date score" "date provenance" "date actions";column-gap:16px;row-gap:6px;padding:16px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-date{font-size:15px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-score{font-size:13px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current{row-gap:7px;padding:20px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-date{font-size:17px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-body h3{font-size:17px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-body p{font-size:15px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-score{font-size:14px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-archive-metrics,
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-archive-provenance{font-size:11.5px}
}
@media(max-width:620px){
  .kbg-gateway-score-badge{right:6px;bottom:6px;gap:4px;min-width:56px;padding:6px 7px;border-radius:8px}
  .kbg-gateway-score-badge strong{font-size:15px}
  .kbg-gateway-score-badge span{font-size:9px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item{grid-template-columns:1fr;grid-template-areas:"date" "body" "score" "provenance" "actions";gap:6px;padding:14px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-date{white-space:normal}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-score{text-align:left;justify-self:start}
  .kbg-review-actions{justify-content:flex-start;align-items:stretch;margin-top:4px}
  .kbg-review-actions a{width:100%;min-height:44px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current{gap:7px;padding:18px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-date{font-size:18px}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-score{text-align:left;justify-self:start}
  .kbg-research-timeline:not(.kbg-history-links) .kbg-review-item.is-current .kbg-review-actions a{width:100%;min-height:46px}
}