/* === h305: Base Typography and Layout === */
body, p, h1, h2, h3, h4, h5, h6, td, th {
  font-family: Verdana, Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

body {
  font-size: 14px;
  margin: 0;
  padding: 0;
  background: #fff;
  padding-top: 0 !important;
  overflow-x: hidden;
}

a {
  color: #004488;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2 {
  font-weight: normal;
  margin: 1em 0 0.3em;
}

p {
  margin: 0.75em 0;
}

/* === h305: Layout Containers (Full Width) === */
.h305-nav-wrapper,
.h305-outer-wrapper,
.h305-header-wrapper,
.h305-site-title,
.h305-registry-header,
.h305-main-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.group-outer-container,
.outerframeContainer,
.space-col,
.col-centered {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 1em;
  box-sizing: border-box;
}

/* === h305: Registry Header (Modern + Responsive) === */
.h305-header-wrapper {
  padding: 1em 0;
  text-align: center;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1.5em;
}

.h305-logo img,
.h305-wing-logo img {
  max-width: 120px;
  height: auto;
  margin-bottom: 0.5em;
}

.h305-site-title > div:first-child {
  font-size: 1.5em;
  font-weight: bold;
}
.h305-site-title > div:nth-child(2),
.h305-site-title > div:nth-child(4) {
  font-size: 0.95em;
}
.h305-site-title > div:nth-child(3) {
  font-size: 1em;
}

.h305-registry-header {
  display: grid;
  grid-template-columns: 10% 25% 25% 30%;
  align-items: center;
  padding: 1em 0;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1.5em;
  font-family: Verdana, sans-serif;
  gap: 1em;
}

.h305-col-1 img {
  max-width: 100%;
  height: auto;
}

.h305-col-2 {
  text-align: center;
}
.h305-col-2 .h305-title {
  font-size: 1.25em;
  font-weight: bold;
}
.h305-col-2 .h305-sub {
  font-size: 0.95em;
}

.h305-col-3 {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
}

.h305-col-4 {
  text-align: right;
  font-size: 0.85em;
}
.h305-col-4 a {
  display: block;
  color: #003366;
  margin-bottom: 0.25em;
}
.h305-col-4 a:hover {
  text-decoration: underline;
}

/* --- Mobile Overrides: Registry Header --- */
@media screen and (max-width: 768px) {
  .h305-registry-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .h305-col-4 {
    text-align: center;
  }
  .h305-col-4 a {
    display: inline-block;
    margin: 0 0.5em;
  }
}

/* === h305: Nav and Utility === */
.h305-nav-wrapper {
  text-align: center;
  padding-top: 1em;
  padding-bottom: 1em;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

.h305-icon-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: auto;
  gap: 10px;
}

.h305-nav-divider {
  margin: 1em 0;
  border: none;
  border-top: 1px solid #000;
}

.h305-text-links {
  font-size: 0.8em;
  margin-bottom: 0.8em;
  text-align: right;
}

/* === h305: Public Stats Table Styling === */
.public-stats__content .statisticstable {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.statisticstable th,
.statisticstable td {
  white-space: nowrap;
  text-align: left;
}

.statisticstable img {
  max-width: 100%;
  height: auto;
}

/* Optional: suppress blocks on stats pages */
.public-stats__content .statisticssummary,
.public-stats__content .well:first-of-type,
#statsHeader {
  display: none !important;
}

.statisticstable thead tr:first-child {
  display: none !important;
}

/* === h305: Piecharts, Tables and Responsive Area === */
.public-stats__content .statisticstable img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  border: 2px solid #555;
}

.public-stats__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* === h305: Progress and Form Containers === */
.h305-group-outer {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1em;
  box-sizing: border-box;
}

.h305-form-wrapper {
  max-width: 100%;
  padding: 1rem;
  background-color: #fdfdfd;
  border: 2px dashed #c00;
}

.progress {
  background-color: #eee;
  height: 1.2em;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5em;
}

.progress-bar {
  background-color: #337ab7;
  height: 100%;
  text-align: center;
  color: #fff;
  font-size: 0.85em;
  line-height: 1.2em;
}

/* === DEBUG: Layout Borders & Backgrounds === */
.container.public-stats {
  background-color: rgba(255, 0, 0, 0.15);
  outline: 3px dashed red;
}

.public-stats__content {
  background-color: rgba(0, 128, 0, 0.15);
  outline: 3px dashed green;
}

.public-stats__content .statisticstable {
  background-color: rgba(0, 0, 255, 0.15);
  outline: 3px dashed blue;
  margin-bottom: 2rem;
}

#statsContainer {
  background-color: rgba(255, 165, 0, 0.2);
  outline: 3px dashed orange;
}
