/*
 * The Expression page: who ChatGPT cites on a key expression. Same language as the rest of the site:
 * the tokens, the grid and the marks come from site.css; nothing is boxed but the fields.
 */
.analyse textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 108px;
  padding: 14px 18px;
  border: var(--field) solid var(--ink);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font: var(--regular) 1.1875rem/1.35 var(--font);
  resize: vertical;
  appearance: none;
}
.analyse textarea::placeholder { color: #6a6a70; opacity: 1; }
.analyse textarea:focus-visible { outline-offset: 2px; }
.ex-ask label + .field + label { margin-top: var(--s-2); }
.ex-ask { margin-top: var(--s-4); }
.ex-ask #site { min-height: 76px; }
.ex-submit { margin-top: var(--s-2); }

/* The sites of a brand read at once: a tab for the whole, one tab per site. A tab is bold text with
   a rule under the one that is open, never a pill. */
.ex-tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); margin-top: var(--s-3); border-bottom: var(--hair) solid var(--line); }
.ex-tab {
  margin-bottom: -1px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: var(--rule) solid transparent;
  background: none;
  color: var(--ink-2);
  font: var(--bold) var(--t-2)/1.3 var(--font);
  cursor: pointer;
}
.ex-tab[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.ex-tab:hover { color: var(--ink); }
.ex-panel { margin-top: var(--s-3); }
.ex-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ex-cell .k { width: 12px; }
.ex-brand-pages li + li { margin-top: 4px; }
/* Where the answers of a section were obtained from, and the start of an answer with its lines. */
.ex-place { color: var(--ink-2); font-size: var(--t-2); }
.ex-place + .ex-own, .ex-own + .ex-place { margin-top: 6px; }
.ex-excerpt { white-space: pre-line; }
/* A country flag met in an answer: the code of the country in a small frame, the same on every system. */
.ex-flag {
  display: inline-block;
  margin-right: 0.15em;
  padding: 0 0.35em;
  border: var(--hair) solid var(--ink-2);
  font-size: 0.72em;
  font-weight: var(--bold);
  line-height: 1.55;
  letter-spacing: 0.04em;
  vertical-align: 0.1em;
}
.ex-table .ex-mid { padding-right: var(--s-3); white-space: nowrap; }
.ex-table th.ex-mid { white-space: normal; }

/* A reading: its head, then one section per expression. */
.ex { margin-top: var(--s-4); }
.ex-head { padding-top: var(--s-2); border-top: var(--rule) solid var(--line); }
.ex-kicker { font-size: var(--t-4); font-weight: var(--bold); line-height: 1.25; letter-spacing: -0.01em; }
.ex-target { margin-top: 6px; color: var(--ink-2); font-size: var(--t-2); overflow-wrap: anywhere; }
.ex-acts { display: flex; flex-wrap: wrap; gap: 6px var(--s-3); margin-top: var(--s-2); }
.ex-index { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); margin-top: var(--s-2); font-size: var(--t-2); }
.ex-entry > h2 { overflow-wrap: anywhere; }
.ex-entry .block-body > * + * { margin-top: var(--s-2); }
.ex-entry h3 { margin-top: var(--s-4); font-size: var(--t-3); line-height: 1.3; }
.ex-own { max-width: 34em; font-size: var(--t-4); font-weight: var(--bold); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.ex-answers-line { max-width: 38em; color: var(--ink-2); }
.ex-ask, .ex-foot { color: var(--ink-2); font-size: var(--t-2); }
p.ex-ask { margin-top: var(--s-3); }
.ex-foot { max-width: 44em; margin-top: var(--s-5); padding-top: 14px; border-top: var(--hair) solid var(--line); }
.ex-note, .ex-domain { color: var(--ink-2); font-size: var(--t-1); }

/* Tables: hairlines only, column heads in small regular grey, figures tabular and flush right. */
.ex-table { width: 100%; border-collapse: collapse; font-size: var(--t-2); line-height: 1.4; }
.ex-table th {
  padding: 0 var(--s-2) 8px 0;
  border-bottom: var(--hair) solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-1);
  font-weight: var(--regular);
  line-height: 1.3;
  text-align: left;
  vertical-align: bottom;
}
.ex-table td { padding: 10px var(--s-2) 10px 0; border-bottom: var(--hair) solid var(--line-2); vertical-align: top; }
.ex-table .num { width: 1%; padding-left: var(--s-2); padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.ex-table th.num { white-space: normal; }
.ex-table .num:first-child { padding-left: 0; padding-right: var(--s-3); text-align: left; }
.ex-page { display: block; overflow-wrap: anywhere; }
.ex-page strong { display: block; font-size: var(--t-3); line-height: 1.3; }
.ex-domain { display: block; margin-top: 2px; }
/* The page or the site looked for: the only blue of the table. */
.ex-own-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: var(--bold); }
.ex-own-tag .k { width: 12px; }
.ex-more { margin-top: var(--s-1); }
.ex-queries li { padding: 8px 0; border-bottom: var(--hair) solid var(--line-2); }
.ex-queries li:first-child { border-top: var(--hair) solid var(--line); }
.ex-answers summary { font-weight: var(--bold); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; list-style: none; }
.ex-answers summary::-webkit-details-marker { display: none; }
.ex-answers p { max-width: 38em; margin-top: var(--s-2); padding-left: 18px; border-left: var(--rule) solid var(--ink); }

/* While ChatGPT is asked: one square per answer expected, black once it is in. */
.ex-progress { padding-top: var(--s-2); border-top: var(--rule) solid var(--line); }
.ex-progress-text { font-weight: var(--bold); }
.ex-pips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--s-2); }
.ex-pip { display: block; width: 16px; height: 16px; border: var(--field) solid var(--ink); }
.ex-pip-on { background: var(--ink); }

@media (max-width: 899px) {
  /* Each row of a table becomes a record: the page, then its figures on one line. */
  .ex-table, .ex-table tbody { display: block; }
  .ex-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ex-table tbody { border-top: var(--hair) solid var(--line); }
  .ex-table tr { display: flex; flex-wrap: wrap; gap: 4px var(--s-2); padding: 12px 0; border-bottom: var(--hair) solid var(--line-2); }
  .ex-table td { padding: 0; border: 0; width: auto; }
  .ex-table td:not(.num) { order: -1; flex: 1 1 100%; }
  .ex-table td.num, .ex-table td.num:first-child { width: auto; padding: 0; text-align: left; white-space: nowrap; }
  .ex-table td.num::before { content: attr(data-label) "\00a0: "; color: var(--ink-2); font-size: var(--t-1); }
  .ex-table td.num:empty { display: none; }
}

@media (min-width: 900px) {
  .ex-ask .field + label { margin-top: var(--s-2); }
}

@media print {
  .ex-ask, .ex-acts, .ex-more { display: none; }
}
