/* Wiki contribute form.

   One shared file linked by BOTH shells (index.php and altdevsecure/index.php),
   following the cinema.css precedent. styles.css and altdevsecure/styles.css are
   unlinked copies that drift — .wiki-body exists only in the main copy, which is
   why the wiki hub is unstyled on the signed-in site. Adding rules here instead
   of pasting into both avoids joining that problem.

   House style: radius tokens are both 0, so no rounding; there is a global
   prefers-reduced-motion reset plus an explicit transition:none block, so no
   motion; hover either fills with a -faint token or fully inverts. */

.wiki-add-btn,
.wiki-md-btn {
  margin-left: 10px;
}

.wiki-addform {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  padding: 0 0 32px;
}

.wiki-af-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  /* html,body set letter-spacing .15em and text-align justify; the .sub-panes
     reset covers p/li/a/td but not labels or form controls */
  text-align: left;
}

.wiki-af-hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}

/* There is no base style for input/textarea/select anywhere on the site — the
   only global control rule is button:focus-visible — so without this block the
   fields render as white browser chrome on a #0a0506 background. */
.wiki-af-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--hue-1-faint);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  outline: none;
}

.wiki-af-input::placeholder {
  color: var(--ink-faint);
}

.wiki-af-input:focus {
  border-color: var(--hue-1);
}

/* select inherits the box above; this only fixes the UA arrow area on dark bg */
select.wiki-af-input {
  cursor: pointer;
}

.wiki-af-area {
  resize: vertical;
  min-height: 320px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.wiki-af-acts {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* .dl-btn is an <a> rule; a <button> needs the box reset to match it */
button.dl-btn {
  background: none;
  cursor: pointer;
  line-height: normal;
}

@media (max-width: 900px) {
  .wiki-addform {
    grid-column: 1;
  }
}
