/* Fire Defence Wiki: modern, Wikipedia-like typography (Site Editor request, 5 Dec 2026).
   Loaded automatically after the PmWiki skin. To undo, delete this file. */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #202122;
  background: #f8f9fa;
  -webkit-text-size-adjust: 100%;
}

/* Top bar and side bar */
#wikihead, #wikileft, #wikicmds, #wikifoot, .footnav, .lastmod {
  font-family: inherit;
}
#wikihead { font-size: 0.8125rem; background: #f8f9fa; }
#wikihead a { color: #3366cc; }
#wikihead input { font-size: 0.875rem; padding: 3px 6px; border: 1px solid #a2a9b1; border-radius: 2px; }
#wikilogo { background: #f8f9fa; border-bottom: 1px solid #a7d7f9; }
#wikileft {
  font-size: 0.875rem; line-height: 1.5;
  background: #f8f9fa; border-right: none;
  padding: 0.5em 1em 1em 1em; width: 11em;
}
#wikileft a { color: #3366cc; font-weight: normal; }
#wikileft a:hover { text-decoration: underline; }
#wikileft .sidehead, #wikileft .sidehead a { color: #54595d; font-size: 0.8125rem; font-weight: bold; }

/* Main text area: white page, comfortable line length */
#wikibody {
  background: #fff;
  border: 1px solid #a7d7f9;
  border-right: none;
  padding: 1.25em 1.75em 1.5em 1.75em;
}
#wikitext {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60em;
}
#wikitext p, #wikitext li { margin-top: 0.4em; margin-bottom: 0.4em; }
#wikitext li { line-height: 1.55; }

/* Links */
a:link { color: #3366cc; text-decoration: none; }
a:visited { color: #795cb2; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a.createlinktext { color: #d73333; }

/* Headings: serif, as on Wikipedia */
.pagetitle, #wikitext h1, #wikitext h2 {
  font-family: "Linux Libertine", "Georgia", "Times New Roman", Times, serif;
  font-weight: normal;
  color: #000;
}
.pagetitle { font-size: 1.85em; line-height: 1.3; margin: 0 0 0.25em 0; padding-bottom: 0.15em; border-bottom: 1px solid #a2a9b1; }
#wikitext h2 { font-size: 1.5em; line-height: 1.3; margin: 1.1em 0 0.35em 0; padding-bottom: 0.15em; border-bottom: 1px solid #a2a9b1; }
#wikitext h3 { font-size: 1.2em; font-weight: bold; margin: 0.9em 0 0.3em 0; color: #000; }
#wikitext h4 { font-size: 1.05em; font-weight: bold; margin: 0.8em 0 0.25em 0; }

/* Page actions (View, Edit, History, Print) */
#wikicmds { font-size: 0.8125rem; }
#wikicmds a { color: #3366cc; }

/* Tables: like Wikipedia's "wikitable" */
#wikitext table[border] {
  border-collapse: collapse;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 0.8em 0 1em 0;
}
#wikitext table[border] td, #wikitext table[border] th {
  border: 1px solid #a2a9b1;
  padding: 0.3em 0.55em;
  vertical-align: top;
}
#wikitext table[border] th { background: #eaecf0; text-align: left; }

/* Coloured boxes ("In short", warnings) */
#wikitext .frame { border-radius: 3px; padding: 0.6em 0.9em; border: 1px solid #c8ccd1; }

/* Footnotes and small print */
#wikitext sup { line-height: 0; font-size: 0.75em; }
.fdh-terms { font-size: 0.8125rem; }
#wikifoot { font-size: 0.8125rem; }

/* Code */
pre, code { font-family: Menlo, Consolas, "Liberation Mono", monospace; }
pre { background: #f8f9fa; border: 1px solid #eaecf0; padding: 0.8em; }

/* Phones: keep the existing phone layout, just tidy spacing */
@media (max-width: 760px) {
  body { font-size: 16px; background: #fff; }
  #wikibody { border: none; padding: 0.5em 14px 1em 14px !important; }
  #wikileft { width: auto; }
  .pagetitle { font-size: 1.55em; }
  #wikitext h2 { font-size: 1.3em; }
}

/* Contents list in the side bar (5 Dec 2026) */
#wikileft { width: 15em; }
#wikileft .fdh-toc {
  position: sticky; top: 0;
  max-height: 100vh; overflow-y: auto; box-sizing: border-box;
  margin-top: 1em; padding: 0.4em 0 1em 0;
  border-top: 1px solid #c8ccd1;
  font-size: 0.8125rem; line-height: 1.4;
}
#wikileft .fdh-toc h2, #wikileft .fdh-toc h3 {
  font-family: inherit; font-size: 0.8125rem; font-weight: bold;
  color: #54595d; margin: 0.9em 0 0.2em 0; padding: 0; border: none;
}
#wikileft .fdh-toc ul { margin: 0; padding: 0; list-style: none; }
#wikileft .fdh-toc ul ul { padding-left: 0.8em; }
#wikileft .fdh-toc li { margin: 0; padding: 0.15em 0 0.15em 0; border: none; }
#wikileft .fdh-toc a.fdh-current { color: #202122; font-weight: bold; }
#wikileft .fdh-toc a.fdh-current::before { content: "\25B8\00A0"; }
@media (max-width: 760px) {
  #wikileft { width: auto; }
  #wikileft .fdh-toc { position: static; max-height: none; overflow: visible; font-size: 0.9375rem; }
}
