/* TABOOO RE:READ v1.0.7-rc8 — Premium Editorial UI / Tahap I.
 * All visual rules are scoped to .tabooo-reread to avoid changing JNews,
 * WPBakery, other widgets or the article text itself.
 */
.tabooo-reread {
  --trr-ink: #1c293c;
  --trr-muted: #556477;
  --trr-primary: #254aae;
  --trr-line: #dbe3ed;
  --trr-soft: #f4f6fa;
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  width: 100%;
  margin: 28px 0 32px;
  padding: 24px !important;
  border: 1px solid var(--trr-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(24, 38, 66, 0.055);
  color: var(--trr-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tabooo-reread *, .tabooo-reread *::before, .tabooo-reread *::after { box-sizing: border-box; }
.tabooo-reread [hidden] { display: none !important; }
.tabooo-reread button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  text-transform: none;
  letter-spacing: normal;
}
.tabooo-reread button:focus-visible,
.tabooo-reread a:focus-visible {
  outline: 3px solid #214bff !important;
  outline-offset: 3px;
}
/* Header: clear typographic hierarchy and real inset on all sides. */
.tabooo-reread .trr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 14px;
  margin: 0 0 22px !important;
  padding: 0 !important;
}
.tabooo-reread .trr-heading {
  display: flex;
  flex: 1 1 190px;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.tabooo-reread .trr-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #dde6f4;
  border-radius: 11px;
  background: #edf2fb;
  color: var(--trr-primary);
  font-size: 22px;
  line-height: 1;
}
.tabooo-reread .trr-heading-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tabooo-reread .trr-heading-title {
  display: block;
  margin: 0 !important;
  color: var(--trr-ink) !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
.tabooo-reread .trr-heading-subtitle {
  display: block;
  color: var(--trr-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.tabooo-reread .trr-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 115px;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid var(--trr-line) !important;
  border-radius: 10px;
  background: #fff !important;
  box-shadow: none;
  color: var(--trr-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.tabooo-reread .trr-save[aria-pressed="true"] { border-color: #b6c7ed !important; background: #f0f4ff !important; color: #1e43a7 !important; }
/* Mode selector: breathe between header, tabs and panel. */
.tabooo-reread .trr-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  margin: 0 !important;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: var(--trr-soft);
}
.tabooo-reread [role="tab"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 12px 12px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 9px;
  background: transparent !important;
  color: var(--trr-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center;
  box-shadow: none;
}
.tabooo-reread [role="tab"][aria-selected="true"] {
  background: #fff !important;
  color: var(--trr-primary) !important;
  border-color: #e1e7f0 !important;
  box-shadow: 0 2px 7px rgba(23, 37, 62, .09);
}
.tabooo-reread [role="tab"]:disabled { opacity: .5; cursor: not-allowed; }
.tabooo-reread .trr-status {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  color: var(--trr-muted);
  font-size: 12px;
  line-height: 1.5;
}
.tabooo-reread .trr-status:empty { display: none; }
/* Editorial summary card. */
.tabooo-reread .trr-panel {
  margin: 18px 0 0 !important;
  padding: 22px !important;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  background: var(--trr-soft);
  color: var(--trr-ink);
  line-height: 1.65;
}
.tabooo-reread[data-trr-placement="auto"] .trr-panel-baca { display: none !important; }
.tabooo-reread .trr-panel h3 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--trr-ink) !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}
.tabooo-reread .trr-panel dl { margin: 0 !important; }
.tabooo-reread .trr-panel dt {
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: var(--trr-ink);
  font-weight: 700;
  line-height: 1.5;
}
.tabooo-reread .trr-panel dd {
  margin: 0 0 18px !important;
  padding: 0 !important;
  white-space: pre-line;
  line-height: 1.75;
}
.tabooo-reread .trr-panel dd:last-of-type { margin-bottom: 16px !important; }
.tabooo-reread .trr-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 7px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--trr-primary) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none !important;
}
/* Footer: size controls never flush with left or bottom border. */
.tabooo-reread .trr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 14px;
  margin: 20px 0 0 !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid var(--trr-line);
}
.tabooo-reread .trr-size { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.tabooo-reread .trr-size span { margin-right: 2px; color: var(--trr-muted); font-size: 13px; line-height: 1.5; }
.tabooo-reread .trr-size button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid var(--trr-line) !important;
  border-radius: 9px;
  background: #fff !important;
  color: var(--trr-ink) !important;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: none !important;
}
.tabooo-reread .trr-progress { display: flex; align-items: center; gap: 9px; color: var(--trr-muted); font-size: 12px; line-height: 1.5; }
.tabooo-reread progress { width: 85px; height: 9px; accent-color: #214bff; }
/* Compact WordPress widget keeps its own reduced spacing. */
.tabooo-reread--compact { margin: 14px 0 18px; padding: 16px !important; font-size: 13px; }
.tabooo-reread--compact .trr-head { margin-bottom: 16px !important; gap: 10px; }
.tabooo-reread--compact .trr-heading { gap: 9px; flex-basis: 140px; }
.tabooo-reread--compact .trr-heading-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 18px; }
.tabooo-reread--compact .trr-heading-title { font-size: 14px !important; }
.tabooo-reread--compact .trr-heading-subtitle { font-size: 11px; }
.tabooo-reread--compact .trr-save { min-width: 90px; min-height: 44px; padding: 8px 10px !important; font-size: 12px; }
.tabooo-reread--compact .trr-panel { padding: 16px !important; }
.tabooo-reread--compact .trr-panel dd { margin-bottom: 12px !important; }
.tabooo-reread--compact .trr-footer { gap: 12px; padding-top: 14px !important; margin-top: 14px !important; }
.tabooo-reread--compact .trr-progress { flex-wrap: wrap; }
/* A-/A+ applies to the summary AND article; values are measured once from the
 * existing theme typography and set as CSS variables. No global JNews overrides. */
.tabooo-reread.trr-font-adjusted .trr-panel dd,
.tabooo-reread.trr-font-adjusted .trr-panel p:not(.trr-status) {
  font-size: var(--trr-summary-font-size) !important;
  line-height: 1.75 !important;
}
.trr-original-article.trr-font-adjusted p,
.trr-original-article.trr-font-adjusted li,
.jeg_post_content .trr-original-article.trr-font-adjusted p,
.jeg_post_content .trr-original-article.trr-font-adjusted li,
.entry-content .trr-original-article.trr-font-adjusted p,
.entry-content .trr-original-article.trr-font-adjusted li {
  font-size: var(--trr-article-font-size) !important;
  line-height: 1.75 !important;
}
/* Manual shortcode/widget fallback on the current article if no auto wrapper exists. */
.jeg_post_content.trr-font-adjusted p,
.jeg_post_content.trr-font-adjusted li,
.entry-content.trr-font-adjusted p,
.entry-content.trr-font-adjusted li {
  font-size: var(--trr-article-font-size) !important;
  line-height: 1.75 !important;
}
.tabooo-reread .trr-font-state {
  color: var(--trr-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  min-width: 68px;
}
.tabooo-reread .trr-size button:disabled { opacity: .45; cursor: not-allowed; }
@media(max-width: 520px) {
  .tabooo-reread { margin: 20px 0 24px; padding: 18px !important; border-radius: 14px; }
  .tabooo-reread .trr-head { margin-bottom: 18px !important; column-gap: 10px; row-gap: 12px; }
  .tabooo-reread .trr-heading { flex-basis: 170px; gap: 10px; }
  .tabooo-reread .trr-heading-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .tabooo-reread .trr-heading-title { font-size: 16px !important; }
  .tabooo-reread .trr-heading-subtitle { font-size: 11px; }
  .tabooo-reread .trr-save { min-width: 94px; min-height: 44px; padding: 8px 11px !important; font-size: 13px; }
  .tabooo-reread [role="tab"] { min-height: 46px; padding: 11px 7px !important; }
  .tabooo-reread .trr-panel { padding: 18px !important; margin-top: 15px !important; }
  .tabooo-reread .trr-footer { align-items: flex-start; gap: 14px; padding-top: 18px !important; }
  .tabooo-reread .trr-progress { width: 100%; justify-content: space-between; }
}
@media(max-width: 370px) {
  .tabooo-reread { padding: 16px !important; }
  .tabooo-reread .trr-heading { flex-basis: 100%; }
  .tabooo-reread .trr-save { margin-left: auto !important; }
  .tabooo-reread .trr-size span { flex-basis: 100%; }
}
@media(prefers-reduced-motion: reduce) {
  .tabooo-reread * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Article collapse: deterministic wrapper injected by PHP; preserves original HTML. */
.tabooo-reread ~ .trr-content-collapsed { display: none !important; }
.jeg_post_content > .trr-content-collapsed, .entry-content > .trr-content-collapsed { display: none !important; }
.trr-original-article[hidden], .trr-original-article.trr-content-collapsed { display: none !important; }
@media print {
  .tabooo-reread ~ .trr-content-collapsed,
  .jeg_post_content > .trr-content-collapsed,
  .entry-content > .trr-content-collapsed,
  .trr-original-article[hidden],
  .trr-original-article.trr-content-collapsed { display: block !important; }
  .tabooo-reread { box-shadow: none; }
}
/* Tahap II: Telusuri / Interactive Journalism. Scoped to one reader instance. */
.tabooo-reread .trr-panel-telusuri{background:#fff;border-color:#dbe3ed;padding:20px !important}
.tabooo-reread .trr-ix-content{display:block;max-width:100%;color:var(--trr-ink);line-height:1.65}
.tabooo-reread .trr-ix-disclaimer{padding:12px 14px !important;margin:0 0 20px !important;border-left:3px solid #8b9ab2;background:#f3f6fb;color:#344258;font-size:13px}
.tabooo-reread .trr-ix-module{border-top:1px solid #dbe3ed;padding:20px 0 4px;margin:0}
.tabooo-reread .trr-ix-module h4{margin:0 0 14px !important;font-size:16px !important;line-height:1.45;color:#18263e}
.tabooo-reread .trr-ix-module h4 small{font-size:12px;font-weight:500;color:#556477;margin-left:7px}
.tabooo-reread .trr-ix-module h5{margin:0 0 10px !important;font-size:15px !important;font-weight:750 !important}
.tabooo-reread .trr-ix-list,.tabooo-reread .trr-ix-timeline{list-style:none;margin:0 !important;padding:0 !important}
.tabooo-reread .trr-ix-list li{margin:0 0 12px;padding:14px;border:1px solid #e2e8f2;border-radius:10px;background:#f8fafc;overflow-wrap:anywhere}
.tabooo-reread .trr-ix-list p,.tabooo-reread .trr-ix-module p{margin:6px 0 10px !important;line-height:1.7}
.tabooo-reread .trr-ix-tag{display:inline-block;border-radius:5px;padding:3px 9px;font-size:11px;font-weight:800;line-height:1.5}
.tabooo-reread .trr-ix-tag--fact{background:#e6f5ed;color:#16623e}
.tabooo-reread .trr-ix-tag--claim{background:#fff4da;color:#704a09}
.tabooo-reread .trr-ix-tag--unknown{background:#ecedf3;color:#475569}
.tabooo-reread .trr-ix-meta{color:#53657b;font-size:12px !important;line-height:1.6 !important}
.tabooo-reread .trr-ix-content a{color:#214ea5 !important;text-decoration:underline;word-break:break-word;text-underline-offset:2px}
.tabooo-reread .trr-ix-timeline li{position:relative;padding:0 0 18px 19px;margin:0 0 2px 5px;border-left:2px solid #cdd9e9}
.tabooo-reread .trr-ix-timeline li::before{position:absolute;content:"";left:-6px;top:5px;width:10px;height:10px;background:#284a9f;border-radius:50%}
.tabooo-reread .trr-ix-timeline time{display:block;font-size:12px;font-weight:800;color:#284a9f;line-height:1.5}
.tabooo-reread .trr-ix-mirror{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:0 0 15px}
.tabooo-reread .trr-ix-mirror article{padding:15px;border:1px solid #e2e8f2;border-radius:10px;background:#f8fafc;min-width:0}
.tabooo-reread .trr-ix-mirror blockquote{border-left:3px solid #b8cbed !important;margin:0 0 12px !important;padding:4px 0 4px 11px !important;font-style:normal;color:#213148;line-height:1.7}
.tabooo-reread .trr-ix-prompt{font-weight:650;padding:10px 12px !important;background:#f4f6fb;border-radius:8px}
.tabooo-reread .trr-ix-sources ul{margin:0 0 16px 18px !important;padding:0 !important}
.tabooo-reread .trr-ix-sources li{margin:0 0 9px;font-size:12px;color:#53657b;overflow-wrap:anywhere}
.tabooo-reread .trr-ix-sources ul:empty{display:none}
.tabooo-reread .trr-ix-ask{margin:15px 0 10px;padding:15px;border:1px solid #e2e8f2;border-radius:10px;background:#f8fafc}
.tabooo-reread .trr-ix-ask>label:first-child{display:block;font-weight:700;margin:0 0 8px}
.tabooo-reread .trr-ix-ask textarea{display:block;min-height:100px;width:100%;max-width:100%;padding:10px;border:1px solid #bbc9da;border-radius:7px;background:#fff;color:#18263e;font-size:16px;line-height:1.6}
.tabooo-reread .trr-ix-ask .trr-ix-consent{display:flex;align-items:flex-start;gap:9px;margin:12px 0;font-size:12px;line-height:1.6;color:#344258}
.tabooo-reread .trr-ix-ask .trr-ix-consent input{flex:0 0 auto;margin-top:3px}
.tabooo-reread .trr-ix-ask .trr-ix-submit{min-height:44px;padding:10px 16px;border:0;border-radius:8px;background:#254aae;color:white;font-weight:700}
.tabooo-reread .trr-ix-hp{position:absolute !important;left:-10000px !important;width:1px;height:1px;overflow:hidden;opacity:0}
.tabooo-reread .trr-ix-feedback{padding:10px 12px !important;margin:0 0 14px !important;border:1px solid #cdd9e9;border-radius:8px;background:#f4f6fb;font-size:13px}
@media(max-width:520px){
 .tabooo-reread .trr-panel-telusuri{padding:15px !important}
 .tabooo-reread .trr-ix-module h4 small{display:block;margin:3px 0 0}
 .tabooo-reread .trr-ix-list li{padding:12px}
 .tabooo-reread .trr-ix-mirror{grid-template-columns:minmax(0,1fr)}
}
