/* The "Despre" tab is the one part of this interface that is a document rather
   than an instrument: a single readable column, no map, no panels. It borrows
   the palette from style.css. */

#opt-about-pane {
  position: absolute; inset: 0; z-index: 4;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
  padding: 24px 20px 80px;
}

#doc { max-width: 760px; margin: 0 auto; }
#doc h1 {
  font-size: 27px; line-height: 1.25; font-weight: 700;
  margin: 0 0 18px; letter-spacing: -0.015em;
}
#doc h3 {
  font-size: 14px; font-weight: 700; margin: 26px 0 10px; color: var(--ink);
}
#doc h2 {
  font-size: 17px; font-weight: 700; margin: 38px 0 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
#doc p, #doc li, #doc dd { font-size: 14.5px; line-height: 1.65; }
#doc p { margin: 0 0 13px; }
#doc .lead { font-size: 16px; line-height: 1.6; }
#doc a { color: var(--accent); }
#doc b { font-weight: 650; }

#doc ul, #doc ol { margin: 0 0 14px; padding-left: 20px; }
#doc li { margin-bottom: 7px; }
#doc ul.crit { list-style: none; padding-left: 0; }
#doc ul.crit li {
  padding: 10px 0 10px 15px; margin: 0;
  border-left: 2px solid var(--line);
}
#doc ul.crit li b { color: var(--ink); }

#doc dl.params { margin: 0 0 14px; }
#doc dl.params dt {
  font-size: 13px; font-weight: 700; margin-top: 14px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent);
}
#doc dl.params dd { margin: 3px 0 0; }
/* The tab list is not a parameter list. Its terms are names the reader clicks on
   in the header row, so they are set in the same sentence case as the buttons
   themselves - the settings above keep the uppercase accent style because those
   really are control labels. Without the distinction the two lists read as one. */
#doc dl.tabs dt {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  color: var(--ink);
}

/* A caveat is not a footnote: the honest limits of the numbers belong in the
   reading flow, just marked as an aside. */
#doc .note {
  font-size: 13px; line-height: 1.6; color: var(--ink-soft);
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 15px; margin: 0 0 14px;
}

#doc table.sources {
  width: 100%; border-collapse: collapse; margin: 0 0 14px;
  font-size: 13px;
}
#doc table.sources th, #doc table.sources td {
  text-align: left; vertical-align: top; padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
}
#doc table.sources th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); font-weight: 700;
}
#doc table.sources td:last-child { white-space: nowrap; color: var(--ink-soft); }

#doc-foot {
  margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.7; color: var(--ink-soft);
}

@media (max-width: 700px) {
  #doc table.sources td:last-child { white-space: normal; }
  #doc h1 { font-size: 23px; }
}

/* A link that is really a tab switch: it looks like a link because that is what
   it does for the reader, but it must not navigate away from the app. */
.linklike {
  font: inherit; color: var(--accent); background: none; border: none;
  padding: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.linklike:hover { text-decoration-thickness: 2px; }


/* The narrow-screen layout (see the media query in optimize-style.css) takes the
   panes out of absolute positioning so the page is the only thing that scrolls.
   This one has to be overridden *here*: this file is loaded after that one, and a
   media query carries no extra specificity - so the rule above would otherwise
   win, leaving the pane `inset: 0` inside a container of height auto, which is to
   say invisible. Despre is the tab a phone opens on, so it looked like the app
   had nothing in it. */
@media (max-width: 860px) {
  #opt-about-pane {
    position: static;
    inset: auto;
    overflow: visible;
    padding: 16px 14px 40px;
  }
}
