/* What a finished case gives your team: one box with four tabs (ticket, SIEM query, IOC CSV, case ZIP).
   Without script the four panels stand one below the other, each with its title, its text and its caption.
   The box has one width for every tab, the column of the page, so it does not change size when a tab is chosen. */
.otabs{display:grid;width:100%;max-width:100%;min-width:0;border:1px solid var(--lw-border);border-radius:22px;background:var(--lw-surface);overflow:hidden}
.otabs__bar{display:none}
.otabs__panels{display:grid;min-width:0}
.otabs__panel{display:grid;min-width:0;border-top:1px solid var(--lw-border)}
.otabs__panel:first-child{border-top:0}
/* From 720 px up the box shows the full text. On a phone it shows a set number of full lines (--otabs-lines), so no line is cut half way; a longer text scrolls
   inside the box with a visible bar, and a fade at the foot says there is more. */
.otabs__code{position:relative;min-width:0;padding:20px;background:var(--lw-ioc-bg);color:var(--lw-ioc-fg)}
.otabs__pre{margin:0;padding:0;min-width:0;font:.9375rem/1.55 var(--lw-mono);white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:calc(var(--otabs-lines, 1000) * 1.55em);tab-size:4}
.otabs__pre--nowrap{white-space:pre;overflow-wrap:normal}
.otabs__pre .nb{white-space:nowrap}
/* The scroll bars of the text boxes show without hover: a bar of 8 px with a visible thumb. */
.otabs__pre::-webkit-scrollbar{height:8px;width:8px}
.otabs__pre::-webkit-scrollbar-track{background:color-mix(in srgb,var(--lw-ioc-fg) 10%,transparent);border-radius:4px}
.otabs__pre::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--lw-ioc-fg) 55%,transparent);border-radius:4px}
/* A browser that has no ::-webkit-scrollbar (Firefox) takes the standard properties; Chrome would ignore its styled bar if these are set. */
@supports not selector(::-webkit-scrollbar){.otabs__pre{scrollbar-width:thin;scrollbar-color:var(--lw-border-strong) transparent}}
/* A box with more text to the right fades at its right edge until it is scrolled to the end. */
.otabs__code[data-xmore]::before{content:"";position:absolute;top:20px;bottom:20px;right:20px;width:2.5em;pointer-events:none;z-index:1;background:linear-gradient(to right,transparent,var(--lw-ioc-bg))}
.otabs__code[data-more]::after{content:"";position:absolute;left:0;right:0;bottom:20px;height:2.3em;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--lw-ioc-bg))}
.otabs__foot{padding:var(--lw-s-4) var(--lw-s-5)}
.otabs__t{margin:0;font-size:var(--lw-t-3);line-height:1.25;font-weight:750;color:var(--lw-text)}
.otabs__p{margin:var(--lw-s-1) 0 0;font-size:var(--lw-t-2);line-height:1.4;color:var(--lw-text-2);text-wrap:pretty;max-width:46rem}
.otabs__sub{margin:var(--lw-s-1) 0 0;font:650 var(--lw-t-0)/1.3 var(--lw-font);letter-spacing:.02em;color:var(--lw-text-3)}

/* With script: a bar with the tabs on the left and the Copy button on the right, and one panel at a time. */
.otabs.is-tabs .otabs__bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--lw-s-3);padding:0 var(--lw-s-3) 0 var(--lw-s-3);border-bottom:1px solid var(--lw-border);min-width:min(34rem,100%)}
.otabs.is-tabs .otabs__list{display:flex;gap:var(--lw-s-1);min-width:0}
.otabs.is-tabs .otabs__tab{flex:none;min-height:var(--lw-tap);padding:0 var(--lw-s-4);border:0;border-bottom:3px solid transparent;background:none;color:var(--lw-text-2);font:650 var(--lw-t-1)/1.2 var(--lw-font);white-space:nowrap;cursor:pointer}
.otabs.is-tabs .otabs__tab:hover{color:var(--lw-text)}
.otabs.is-tabs .otabs__tab[aria-selected="true"]{color:var(--lw-text);border-bottom-color:var(--lw-accent)}
.otabs.is-tabs .otabs__copy{flex:none}
.otabs.is-tabs .otabs__panel{border-top:0}
.otabs.is-tabs .otabs__panel[hidden]{display:none}
.otabs.is-tabs .otabs__t{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.otabs.is-tabs .otabs__p{margin:0;font-size:var(--lw-t-3);line-height:1.35}
.otabs.is-tabs .otabs__sub{margin:0 0 var(--lw-s-1)}

/* A phone: the four tabs stand two by two, so none is cut, and the text box shows fewer lines and keeps each line in one piece (it scrolls sideways). */
@media (max-width:719px){
  .otabs{width:100%;border-radius:16px}
  .otabs__code{padding:var(--lw-s-3)}
  /* Lines wrap at spaces; a token that does not fit (a long address) scrolls inside the box with a visible bar. The CSV keeps its rows whole and scrolls. */
  .otabs__pre{--otabs-lines:10;white-space:pre-wrap;overflow-wrap:normal;word-break:normal}
  .otabs__pre--nowrap{white-space:pre}
  .otabs__code[data-more]::after{bottom:var(--lw-s-3)}
  .otabs__code[data-xmore]::before{top:var(--lw-s-3);bottom:var(--lw-s-3);right:var(--lw-s-3)}
  .otabs__foot{padding:var(--lw-s-3)}
  .otabs__t{font-size:var(--lw-t-2)}
  .otabs__p,.otabs.is-tabs .otabs__p{font-size:var(--lw-t-1)}
  .otabs.is-tabs .otabs__bar{min-width:0;padding:0 var(--lw-s-2)}
  .otabs.is-tabs .otabs__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .otabs.is-tabs .otabs__tab{padding:0 var(--lw-s-2);text-align:center}
}
