/* HostScout.ca sitemap styling  |  XML + CSS, no XSLT required
   This stylesheet styles the browser display only.
   XML search engine data, including lastmod and hreflang, is unchanged. */
@namespace sm url("http://www.sitemaps.org/schemas/sitemap/0.9");
@namespace xhtml url("http://www.w3.org/1999/xhtml");

:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #243042;
  background: #f6f7f9;
}

/* Native styling of /sitemap.xml. Chrome continues supporting XML + CSS. */
sm|urlset {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1140px;
  margin: 42px auto 60px;
  padding: 0 0 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 5px solid #ad0000;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
  /* This element is the XML document root. Hidden overflow would be
     propagated to the viewport in browsers and prevent page scrolling. */
  overflow: visible;
  counter-reset: entrycount;
}
sm|urlset::before {
  display: block;
  box-sizing: border-box;
  padding: 32px 30px 27px;
  content: "HostScout.ca  /  XML Sitemap";
  color: #172033;
  background: #fff;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.65px;
  line-height: 1.3;
}
sm|urlset::after {
  display: block;
  margin: 0 30px;
  padding: 22px 0 2px;
  content: "Total URLs: " counter(entrycount) "   ·   HostScout.ca sitemap for search engines";
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
sm|url {
  counter-increment: entrycount;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  min-height: 48px;
  box-sizing: border-box;
  margin: 0 30px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #eaedf2;
  align-items: stretch;
}
sm|url:nth-of-type(2n) {background: #f8f9fb;}
sm|url:hover {background: #fff4f4;}
sm|loc, sm|lastmod {
  box-sizing: border-box;
  min-width: 0;
  padding: 13px 13px;
  line-height: 1.45;
  font-size: 13px;
  align-self: center;
}
sm|loc {
  display: block;
  color: #1e293b;
  overflow-wrap: anywhere;
  word-break: break-word;
}
sm|lastmod {
  display: block;
  color: #526074;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Hreflang alternates remain in the XML, but are hidden in the table. */
xhtml|link {display: none !important;}

/* Real table column headers, constructed without XSLT. */
sm|url:first-of-type {grid-template-rows: 43px auto;}
sm|url:first-of-type::before,
sm|url:first-of-type::after {
  display: block;
  box-sizing: border-box;
  grid-row: 1;
  background: #f0f2f6;
  border-top: 1px solid #dfe3e9;
  border-bottom: 1px solid #dfe3e9;
  padding: 12px 13px;
  color: #344055;
  text-transform: uppercase;
  font-weight: 750;
  font-size: 11px;
  letter-spacing: .6px;
}
sm|url:first-of-type::before {content: "URL";grid-column: 1;}
sm|url:first-of-type::after {content: "LAST MODIFIED";grid-column: 2;text-align: right;}
sm|url:first-of-type sm|loc {grid-row: 2;grid-column: 1;}
sm|url:first-of-type sm|lastmod {grid-row: 2;grid-column: 2;}

/* The HTML alternative has clickable links, search and section filters. */
body.sitemap-html {
  margin: 0;
  background: #f6f7f9;
  color: #243042;
}
.sitemap-html * {box-sizing: border-box;}
.site-header {
  background: #fff;
  border-bottom: 1px solid #e7eaf0;
  padding: 18px max(28px, calc((100vw - 1140px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-brand {color: #ad0000; font-size: 21px; font-weight: 800; text-decoration: none; letter-spacing: -.7px;}
.site-back {text-decoration: none; color: #46566c; font-size: 13px; font-weight: 600;}
.site-back:hover {color: #ad0000;}
.page-container {max-width: 1140px; padding: 0 20px; margin: 43px auto 65px;}
.intro {margin: 0 0 24px;}
.eyebrow {font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 1.5px; color: #ad0000;}
.intro h1 {color: #152135; font-size: clamp(25px, 4vw, 35px); line-height: 1.2; letter-spacing: -1px; margin: 10px 0 12px;}
.intro p {max-width: 760px; color: #526176; font-size: 14px; line-height: 1.65; margin: 0;}
.intro a {color: #ad0000; text-underline-offset: 2px;}
.sitemap-panel {border-radius: 10px; border: 1px solid #e4e7ed; background: #fff; overflow: hidden; box-shadow: 0 8px 28px rgba(15,23,42,.045);}
.toolbar {display: flex; align-items: center; gap: 12px; padding: 20px 22px; flex-wrap: wrap; border-bottom: 1px solid #eaedf2;}
.toolbar label {font-size: 12px; font-weight: 700; color: #475569;}
.toolbar input, .toolbar select {border: 1px solid #d9dfe8; border-radius: 6px; font: inherit; color: #243042; background: #fff; height: 40px; padding: 0 12px; font-size: 13px;}
.toolbar input:focus, .toolbar select:focus {outline: 2px solid #ad0000; outline-offset: 1px;}
.toolbar input {min-width: 220px; flex: 1 1 320px;}
.toolbar select {min-width: 160px; flex: 0 0 175px;}
.count {white-space: nowrap; margin-left: auto; font-size: 13px; font-weight: 700; color: #475569;}
.table-scroll {overflow-x: auto;}
table.url-table {border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 13px;}
.url-table th {text-align: left; background: #f0f2f6; color: #344055; text-transform: uppercase; letter-spacing: .6px; font-weight: 750; font-size: 11px; border-bottom: 1px solid #dfe3e9; padding: 14px 16px;}
.url-table th:last-child, .url-table td:last-child {text-align: right;}
.url-table td {border-bottom: 1px solid #eceff3; padding: 14px 16px; vertical-align: middle; color: #46556a;}
.url-table tbody tr:nth-child(even) {background: #f9fafb;}
.url-table tbody tr:hover {background: #fff4f4;}
.url-table a {color: #243042; text-decoration: none; font-weight: 530; overflow-wrap: anywhere;}
.url-table a:hover {color: #ad0000; text-decoration: underline; text-underline-offset: 3px;}
.url-table .mono {white-space: nowrap; font-variant-numeric: tabular-nums; color: #58667a;}
.url-table .section {font-size: 12px; color: #64748b;}
.url-table .lang {border-radius: 4px; background: #f0f2f5; padding: 4px 7px; font-size: 11px; font-weight: 650; color: #475569; white-space: nowrap;}
.footer-note {display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 19px 22px; font-size: 12px; color: #64748b;}
.footer-note a {color: #ad0000; text-decoration: none;}
.footer-note a:hover {text-decoration: underline;}
@media (max-width: 760px) {
  sm|urlset {width: calc(100% - 20px); margin: 18px auto 35px; border-radius: 8px;}
  sm|urlset::before {padding: 22px 16px; font-size: 21px;}
  sm|url {margin: 0 12px;grid-template-columns: minmax(0, 1fr) 104px;}
  sm|loc, sm|lastmod {font-size: 12px; padding: 12px 8px;}
  sm|url:first-of-type::before, sm|url:first-of-type::after {font-size: 10px;padding: 13px 8px;}
  sm|urlset::after {margin: 0 20px;font-size: 12px;}
  .site-header {padding: 15px 20px;}
  .page-container {margin: 24px auto; padding: 0 12px;}
  .toolbar {padding: 14px;}
  .toolbar input {flex-basis: 100%;}
  .toolbar select {flex: 1;}
  .count {margin-left: 0;}
  .url-table th, .url-table td {padding: 12px 10px;}
  .url-table {min-width: 700px;}
}
