/* Shared styles for Home Services Wiki. Layout adapted from a wiki template. */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
  color: #202122;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: #3366cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Top utility bar */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid #a7d7f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  font-size: 13px;
}

.top-bar-left {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.top-bar-left a {
  color: #202122;
}

.search-box input {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
}

/* Page container */
.wiki-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-left: 1px solid #a7d7f9;
  border-right: 1px solid #a7d7f9;
  min-height: 100vh;
  padding: 16px 32px 48px;
}

/* Tabs */
.tab-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #a2a9b1;
  margin-bottom: 16px;
  font-size: 13px;
}

.tab-group {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-group li {
  margin-right: 8px;
}

.tab-group li a {
  display: block;
  padding: 6px 12px;
  color: #54595d;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.tab-group li.selected a {
  background: #ffffff;
  color: #202122;
  border-color: #a2a9b1;
  border-bottom: 1px solid #ffffff;
  margin-bottom: -1px;
}

/* Headings */
h1.firstHeading {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  font-size: 28px;
  font-weight: normal;
  margin: 0 0 4px 0;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 4px;
}

.siteSub {
  font-size: 12px;
  color: #54595d;
  margin-bottom: 16px;
}

h2 {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  font-size: 21px;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  margin-top: 28px;
  margin-bottom: 8px;
  padding-bottom: 2px;
}

/* Infobox */
.infobox {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  color: #202122;
  padding: 4px;
  width: 22em;
  float: right;
  clear: right;
  margin: 0 0 16px 16px;
  font-size: 12.5px;
  line-height: 1.4;
}

.infobox-title {
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  padding: 8px 4px 4px;
}

.infobox table {
  width: 100%;
  border-collapse: collapse;
}

.infobox th {
  text-align: left;
  vertical-align: top;
  padding: 4px 8px;
  width: 35%;
  font-weight: bold;
}

.infobox td {
  vertical-align: top;
  padding: 4px 8px;
}

/* Table of contents */
.toc {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 10px 16px;
  display: inline-block;
  min-width: 220px;
  margin: 16px 0;
  font-size: 13px;
}

.toctitle {
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.toc ul ul {
  padding-left: 20px;
}

.tocnumber {
  color: #202122;
  margin-right: 4px;
}

/* Citations and references */
sup.reference {
  font-size: 11px;
  padding: 0 1px;
}

ol.references {
  font-size: 12.5px;
  line-height: 1.5;
}

/* Category box */
.catlinks {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 6px 12px;
  margin-top: 32px;
  clear: both;
  font-size: 12px;
}

.catlinks span {
  font-weight: bold;
}

/* Resources list */
.resources-wrapper {
  padding: 40px 20px;
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  border-radius: 4px;
  margin-top: 20px;
}

.centered-list {
  text-align: center;
  list-style-position: inside;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

.centered-list li {
  margin-bottom: 16px;
}

.centered-list li a {
  font-weight: bold;
  font-size: 18px;
}

.link-description {
  display: block;
  font-size: 14px;
  color: #54595d;
  margin-top: 4px;
  font-weight: normal;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid #a2a9b1;
  font-size: 12px;
  color: #54595d;
}

/* Data tables */
table.wikitable {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 20px;
  font-size: 13px;
  line-height: 1.5;
}

table.wikitable caption {
  font-weight: bold;
  text-align: left;
  padding: 4px 0;
}

table.wikitable th,
table.wikitable td {
  border: 1px solid #a2a9b1;
  padding: 6px 8px;
  vertical-align: top;
  text-align: left;
}

table.wikitable th {
  background-color: #eaf3ff;
}

table.wikitable tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.table-scroll {
  overflow-x: auto;
}

table.wikitable td,
table.wikitable th {
  min-width: 110px;
}

h3 {
  font-family: sans-serif;
  font-size: 16px;
  margin: 18px 0 4px;
}

/* Phone width: keep text readable, drop the floating infobox */
@media (max-width: 720px) {
  .wiki-container {
    padding: 16px;
  }

  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
