/* KLAP :: permasoftware style
   Same rules as the Permasoftware Assembly site: Courier, black on white,
   "//" section heads, ">" bullets, no web fonts, no colour.
   Loaded after main.css. Reason types use line styles, not colours:
   because = solid line :: but = double line :: however = dashed line. */

:root { --ink: #000; --paper: #fff; --meta: #555; --soft: #f2f2f2; }

html, body { background: var(--paper); color: var(--ink); }
body, input, textarea, select, button { font: 15px/1.5 "Courier New", Courier, monospace; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--paper); background: var(--ink); }

.container { width: auto; max-width: 800px; padding: 0 16px; box-sizing: border-box; }

/* header :: logo + nav */
header.container { border-bottom: 6px solid var(--ink); padding-bottom: 8px; }
#logo a { color: var(--ink); background: none; font-weight: bold; letter-spacing: .02em; text-decoration: none; }
#logo a:hover { background: none; color: var(--ink); }
#logo img { display: none; }
nav ul#site-navigation, nav ul#site-navigation li { background: none; border: 0; }
nav ul#site-navigation li a, nav ul#site-navigation li a.new-argument-link { color: var(--ink); text-transform: lowercase; border: 0; text-decoration: underline; }
nav ul#site-navigation li a:hover { color: var(--paper); }
nav ul#site-navigation li + li:not(.inline-search)::before { content: ":: "; color: var(--meta); }
nav ul#site-navigation li.language-switch a[aria-current] { font-weight: bold; text-decoration: none; }  /* the language of the page */
.inline-search input { border: 0; border-bottom: 2px solid var(--ink); background: var(--paper); border-radius: 0; }

/* landing text :: like the lead paragraph of the proposal */
.landing { background: none; border: 0; border-left: 2px solid var(--ink); color: var(--ink); font-size: 18px; padding: 4px 0 4px 14px; margin: 20px 0 24px; }
.landing a { border-bottom: 0; text-decoration: underline; color: var(--ink); }
.landing .how { display: block; margin-top: 8px; font-size: 15px; color: var(--meta); }

/* tabs :: "featured :: new :: fallacies :: statistics" */
ul.tabs { border-bottom: 2px solid var(--ink); }
ul.tabs li a { color: var(--meta); border: 0; text-transform: lowercase; font-size: 15px; }
ul.tabs li.active a { color: var(--ink); font-weight: bold; border: 0; }
ul.tabs li.active a::before { content: "// "; }

/* argument list */
.argument-list li a, .argument-list li h3 a { font-size: 22px; line-height: 1.3; border-bottom: 0; text-decoration: none; }
.argument-list li .main-contention:hover { background: none; text-decoration: underline; color: var(--ink); }
.argument-list .info { border-left: 2px solid var(--ink); width: calc(100% - 160px); box-sizing: border-box; }
.argument-list .overview, .argument-list .overview .user a, .argument-list .overview time { font-size: 13px; color: var(--meta); }
.argument-list .stats { font-size: 13px; line-height: 1.6; margin-top: 22px; }
.argument-list .last-premise { background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
/* status dot: filled = supported, empty = objected, half = neutral */
.argument-list li .main-contention:before { width: 12px; height: 12px; margin-top: 8px; background: var(--paper); border: 2px solid var(--ink); }
.argument-list li .main-contention.supported:before { background: var(--ink); }
.argument-list li .main-contention.neutral:before { background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }
.stats .because::before, .stats .but::before, .stats .however::before { content: "> "; }

/* reason cards in the tree view and list view */
#app .premise .premise-content, .premise-content { background: var(--paper); color: var(--ink); border-radius: 0; box-shadow: none; }
.premise-content.because { border: 2px solid var(--ink); }
.premise-content.but { border: 5px double var(--ink); }
.premise-content.however { border: 2px dashed var(--ink); }
.premise-type, .premise-type.because, .premise-type.but, .premise-type.however { color: var(--ink); font-weight: bold; text-transform: lowercase; }
.premise-sources { background: var(--soft); border-top: 1px solid var(--ink); border-radius: 0; }
.premise .related-argument a { font-family: inherit; letter-spacing: 0; }
.premise .actions, .premise .actions a, .premise .actions input { background: var(--paper); color: var(--ink); border-color: var(--ink); border-radius: 0; }
.premise .actions a:hover, .premise .actions input:hover { background: var(--ink); color: var(--paper); }

#app.list-view .thread-item .thread-branches a.because span,
#app.list-view .thread-item .thread-branches a.but span,
#app.list-view .thread-item .thread-branches a.however span { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.notifications .premise-type.but, .notifications .premise-type.however, .notifications .premise-type.because { background: none; }
.news-item.premise_entry p a.because, .news-item.premise_entry p a.but, .news-item.premise_entry p a.however { color: var(--ink); font-weight: bold; }

/* forms and buttons :: black block, invert on hover */
.button, button, input[type="submit"], form .submit, .submit {
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  font-weight: bold; text-transform: lowercase; box-shadow: none; cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover, form .submit:hover, .submit:hover { background: var(--paper); color: var(--ink); }
form input[type="text"], form input[type="email"], form input[type="url"], form input[type="search"], form textarea, form select {
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: none;
}
form input:focus, form textarea:focus { outline: 2px dashed var(--ink); outline-offset: 2px; }
form label { color: var(--ink); font-weight: bold; text-transform: lowercase; }
form label::before { content: "// "; }
form .helptext { color: var(--meta); font-size: 13px; }

/* about page :: "//" heads like the proposal */
.about h2, .content h2 { font-size: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-top: 30px; }
.about h2::before, .content h2::before { content: "// "; }
.about p, .content p { max-width: 68ch; }

/* footer :: lowercase grey line */
footer { background: none; border-top: 1px solid var(--meta); color: var(--meta); font-size: 12px; text-align: center; }
footer a { color: var(--meta); }

@media (max-width: 700px) {
  .argument-list .stats { float: none; width: auto; margin: 8px 0 0; }
  .argument-list .stats span { display: inline; margin-right: 8px; }
  .argument-list .info { float: none; width: auto; }
  .argument-list .last-premise { width: auto; float: none; }
  .landing { font-size: 16px; }
  .argument-list li a, .argument-list li h3 a { font-size: 18px; }
  #app.tree-view .tree-contention h3, #app .main-contention h3.contention-header { font-size: 19px; }
}

/* tree view :: black connectors, smaller claim title */
#app .connector { background-color: var(--ink); }
#app.tree-view .tree-contention h3, #app.list-view .contention-header h3 { font-size: 24px; line-height: 1.3; color: var(--ink); }
.premise.tree-node, .premise.focused { box-shadow: none; border-radius: 0; }
.premise.focused .premise-content { background: var(--hl, #ececec); }  /* no extra line: line styles carry the reason type */
.premise-actions { background: var(--paper); border: 1px solid var(--ink); border-top: 0; border-radius: 0; }
.premise-actions .premise-action { color: var(--ink); }
.premise-actions .premise-action:hover { background: var(--ink); color: var(--paper); }
.premise-sources { border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
#app .main-contention h3.contention-header { font-size: 24px; line-height: 1.3; color: var(--ink); }
.contention-logo a { font-weight: bold; font-size: 24px; color: var(--ink); }
form label { font-size: 15px; }
form p { margin-bottom: 18px; }

@media (max-width: 700px) {
  #app.tree-view .tree-contention h3, #app.list-view .contention-header h3 { font-size: 19px; }
}

/* readability :: text one step bigger (later rules win over the ones above) */
:root { --hl: #ececec; }
body, input, textarea, select, button { font-size: 17px; line-height: 1.55; }
.landing { font-size: 20px; }
.landing .how, ul.tabs li a, form label { font-size: 16px; }
.argument-list li a, .argument-list li h3 a { font-size: 24px; }
.argument-list .overview, .argument-list .overview .user a, .argument-list .overview time,
.argument-list .stats, form .helptext { font-size: 14px; }
#app .premise .premise-content, #app.list-view .thread-item .premise .premise-content a { font-size: 16px; line-height: 1.55; }
.about p, .content p, .about li, .content li { font-size: 17px; line-height: 1.6; }
footer { font-size: 13px; }
@media (max-width: 700px) {
  .argument-list li a, .argument-list li h3 a { font-size: 20px; }
}

/* cursor marker: the block under the pointer gets a grey field and a black bar */
@media (hover: hover) {
  .argument-list > li:hover, .about p:hover, .content p:hover, .about li:hover, .content li:hover,
  #app.list-view .thread-item:hover {
    background: var(--hl);
    box-shadow: -10px 0 0 var(--hl), -14px 0 0 var(--ink);
  }
  #app .premise .premise-content:hover { background: var(--hl); }
}

/* teleprompter marker: two fixed triangles at reading height, one on each side.
   Scroll the text to the marker to keep your place. */
html::before, html::after {
  content: ""; position: fixed; top: 40vh; z-index: 10000; pointer-events: none;
  width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
html::before { left: 0; border-left: 12px solid var(--ink); }
html::after { right: 0; border-right: 12px solid var(--ink); }

/* reason types added with assembly rooms (see assembly.css): line styles too
   and so = heavy solid :: on the contrary = double ::
   in other words = dotted :: what do we mean by = dotted on grey ::
   what if = dashed on grey */
.premise-content.continuation { border: 4px solid var(--ink); }
.premise-content.opposition { border: 5px double var(--ink); }
.premise-content.reformulation { border: 2px dotted var(--ink); }
.premise-content.semantic { border: 2px dotted var(--ink); background: var(--soft); }
.premise-content.speculation { border: 2px dashed var(--ink); background: var(--soft); }
.premise-type.continuation, .premise-type.opposition, .premise-type.reformulation,
.premise-type.semantic, .premise-type.speculation { color: var(--ink); font-weight: bold; text-transform: lowercase; }
.premise-content .premise-anchor { font-size: 14px; color: var(--meta); margin-bottom: 4px; }
#app.list-view .thread-item .thread-branches a span { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
