/* OpenCondoDocs.org: one stylesheet for every page. Reference-work conventions: a white page, serif headings
   over a hairline rule, blue links, grey-bordered infoboxes and tables. System fonts only, so nothing loads
   from another company. */

:root {
  --bg: #ffffff;
  --text: #202122;
  --muted: #54595d;
  --link: #3366cc;
  --link-visited: #6a60b0;
  --rule: #a2a9b1;
  --rule-light: #c8ccd1;
  --panel: #f8f9fa;
  --th: #eaecf0;
  --notice-bg: #eaf3ff;
  --notice-rule: #3366cc;
  --warn-bg: #fef6e7;
  --warn-rule: #ac6600;
  --ok: #14866d;
  --bad: #d73333;
  --focus: #3366cc;
  --serif: "Linux Libertine", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101418;
    --text: #eaecf0;
    --muted: #a2a9b1;
    --link: #88a3e8;
    --link-visited: #a799cd;
    --rule: #54595d;
    --rule-light: #3a3f45;
    --panel: #1b1f24;
    --th: #27292d;
    --notice-bg: #14233b;
    --notice-rule: #88a3e8;
    --warn-bg: #2d2416;
    --warn-rule: #d9a441;
    --ok: #3fbf9b;
    --bad: #fd7865;
    --focus: #88a3e8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.bar { max-width: 1200px; margin: 0 auto; padding: 14px 24px 10px; display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo:visited { color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo .words { display: flex; flex-direction: column; line-height: 1.15; }
.logo .name { font: 400 25px/1.1 var(--serif); letter-spacing: 0.01em; }
.logo .tag { font-size: 12.5px; color: var(--muted); }
.search { position: relative; flex: 1; min-width: 260px; max-width: 560px; display: flex; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--rule); border-right: 0; border-radius: 2px 0 0 2px; background: var(--bg); color: var(--text); }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.search button, .btn { font: inherit; font-size: 15px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--rule); background: var(--panel); color: var(--text); border-radius: 0 2px 2px 0; cursor: pointer; }
.search button:hover, .btn:hover { background: var(--th); }
.btn { border-radius: 2px; }
.btn.primary { background: var(--link); border-color: var(--link); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: var(--bg); border: 1px solid var(--rule); box-shadow: 0 4px 12px rgba(0,0,0,0.12); z-index: 20; }
.suggest li { padding: 7px 10px; cursor: pointer; border-top: 1px solid var(--rule-light); }
.suggest li:first-child { border-top: 0; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--th); }
.suggest .t { display: block; font-weight: 600; }
.suggest .s { display: block; font-size: 13px; color: var(--muted); }
.primary-nav { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 14px; }
.primary-nav a { display: inline-block; padding: 6px 0 8px; border-bottom: 2px solid transparent; color: var(--link); }
.primary-nav a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.primary-nav a:hover { text-decoration: none; border-bottom-color: var(--rule); }

/* Page */
.page { max-width: 1200px; margin: 0 auto; padding: 8px 24px 48px; }
.article { max-width: 960px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "›"; padding: 0 6px; color: var(--muted); }
h1, h2, h3 { color: var(--text); }
h1 { font: 400 30px/1.25 var(--serif); margin: 10px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.from { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
h2 { font: 400 23px/1.3 var(--serif); margin: 28px 0 10px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); clear: none; }
h3 { font-size: 17px; font-weight: 700; margin: 20px 0 6px; }
p { margin: 8px 0 12px; }
ul, ol { padding-left: 24px; margin: 8px 0 12px; }
li { margin: 3px 0; }
sup.ref { font-size: 11px; line-height: 0; }
sup.ref a { padding: 0 1px; }
.muted, .note { color: var(--muted); font-size: 14px; }
.lead b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule-light); margin: 24px 0; }
code { font-size: 14px; }

/* Infobox */
.infobox { float: right; clear: right; width: 300px; margin: 4px 0 16px 24px; border: 1px solid var(--rule); background: var(--panel); font-size: 13.5px; line-height: 1.45; border-collapse: collapse; }
.infobox caption { font: 400 18px/1.3 var(--serif); padding: 8px 8px 6px; text-align: center; background: var(--panel); border: 1px solid var(--rule); border-bottom: 0; caption-side: top; }
.infobox th, .infobox td { padding: 5px 8px; vertical-align: top; text-align: left; border-top: 1px solid var(--rule-light); }
.infobox th { width: 42%; font-weight: 700; }
.infobox .sub th { background: var(--th); text-align: center; font-weight: 700; }

/* Notices */
.notice { border: 1px solid var(--rule); border-left: 8px solid var(--notice-rule); background: var(--notice-bg); padding: 10px 14px; margin: 14px 0; font-size: 14.5px; }
.notice.warn { border-left-color: var(--warn-rule); background: var(--warn-bg); }
.notice p { margin: 4px 0; }

/* Contents box */
.toc { display: inline-block; border: 1px solid var(--rule); background: var(--panel); padding: 8px 18px 8px 12px; margin: 6px 0 10px; font-size: 14px; }
.toc h2 { font: 700 14px/1.4 var(--sans); border: 0; margin: 0 0 4px; text-align: center; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 1px 0; }

/* Tables */
.wikitable { border-collapse: collapse; background: var(--panel); border: 1px solid var(--rule); margin: 10px 0 18px; font-size: 14px; line-height: 1.45; }
.wikitable th, .wikitable td { border: 1px solid var(--rule); padding: 5px 9px; vertical-align: top; text-align: left; }
.wikitable th { background: var(--th); font-weight: 700; }
.wikitable td.num, .wikitable th.num { text-align: right; white-space: nowrap; }
.wikitable caption { font-weight: 700; padding: 4px; text-align: left; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.wikitable.full { width: 100%; }
table.sortable th[data-sort] { cursor: pointer; white-space: nowrap; }
table.sortable th[data-sort]::after { content: " ⇅"; color: var(--muted); font-weight: 400; font-size: 12px; }
table.sortable th[aria-sort="ascending"]::after { content: " ▲"; }
table.sortable th[aria-sort="descending"]::after { content: " ▼"; }

/* Columns on the main page */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.cols > * { min-width: 0; }
.box { border: 1px solid var(--rule); background: var(--panel); padding: 2px 14px 10px; margin: 14px 0; }
.box h2 { margin-top: 10px; font-size: 20px; }
.welcome { text-align: center; padding: 22px 16px 18px; border: 1px solid var(--rule); background: var(--panel); margin: 18px 0 8px; }
.welcome h1 { border: 0; font-size: 32px; margin: 0; padding: 0; }
.welcome p { margin: 6px auto 0; max-width: 700px; }
.stats { font-size: 14px; color: var(--muted); }
.bigsearch { max-width: 640px; margin: 14px auto 2px; text-align: left; }
.bigsearch input { font-size: 17px; padding: 9px 12px; }
.bigsearch button { font-size: 16px; padding: 9px 18px; }
.plain { list-style: none; padding: 0; }
.columns-3 { columns: 3 180px; column-gap: 24px; }
.columns-3 li { break-inside: avoid; }

/* Search results */
.results { list-style: none; padding: 0; margin: 10px 0; max-width: 760px; }
.results li { margin: 0 0 16px; }
.results .t { font-size: 17px; }
.results .s { display: block; font-size: 14px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0; }
.filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 3px; }

/* Forms */
form.std { max-width: 720px; }
fieldset { border: 1px solid var(--rule); padding: 8px 16px 14px; margin: 0 0 18px; background: var(--panel); }
legend { font-weight: 700; padding: 0 6px; }
.field { display: block; margin: 10px 0; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
input[type="text"], input[type="email"], input[type="search"], select, textarea { font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid var(--rule); border-radius: 2px; background: var(--bg); color: var(--text); width: 100%; max-width: 100%; }
.filters select, .filters input { width: auto; min-width: 180px; }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 10px 0; font-size: 14.5px; }
.check input { margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.drop { display: block; border: 2px dashed var(--rule); padding: 22px; text-align: center; cursor: pointer; background: var(--bg); }
.drop.over { border-color: var(--focus); background: var(--notice-bg); }
.drop strong { display: block; }
.drop span { font-size: 13px; color: var(--muted); }
.drop input { display: block; margin: 10px auto 0; }
.files { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--rule-light); }
.files .state { color: var(--muted); white-space: nowrap; }
.files .state.ok { color: var(--ok); }
.files .state.bad { color: var(--bad); }
.small { font-size: 13px; color: var(--muted); }
.msg { font-size: 14.5px; }
.msg.err, .error { color: var(--bad); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 620px; }
.inline input[type="email"] { flex: 1; min-width: 220px; width: auto; }

/* References */
.refs { font-size: 13.5px; line-height: 1.5; padding-left: 28px; }
.refs li { margin: 4px 0; }
.refs li:target { background: var(--notice-bg); }

/* Footer */
.foot { border-top: 1px solid var(--rule); margin-top: 24px; }
.foot .in { max-width: 1200px; margin: 0 auto; padding: 14px 24px 28px; font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }
.foot ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }

@media (max-width: 760px) {
  .bar { padding: 10px 16px 8px; gap: 10px; }
  .logo svg { width: 34px; height: 34px; }
  .logo .name { font-size: 21px; }
  .search { min-width: 100%; }
  .primary-nav { padding: 0 16px; gap: 2px 16px; font-size: 13.5px; }
  .page { padding: 4px 16px 36px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .infobox { float: none; width: 100%; margin: 8px 0 14px; }
  .cols { grid-template-columns: 1fr; }
  .welcome h1 { font-size: 26px; }
  .filters select, .filters input { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 100%; }
}

@media print {
  .masthead form, .primary-nav, .foot ul, #watch, .notice a.btn { display: none; }
  a { color: inherit; }
}
