/* ==============================================
   Telechron - Master Clocks and Time Distribution
   Preserving the original vintage aesthetic
   ============================================== */

/* Base Styles */
body {
  background-color: #3F5268;
  background-image: url('/bg_tele_antique.gif');
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  padding: 0;
}

a {
  color: #333333;
}

a:visited {
  color: #555555;
}

/* Site Wrapper */
.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}

/* Header */
.site-header {
  margin-bottom: 10px;
}

.site-header table {
  border: 0;
}

.site-title {
  text-align: center;
}

.title-text {
  font-size: medium;
}

.site-header img {
  border: 0;
}

/* Navigation */
.site-nav {
  margin-bottom: 15px;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 5px 10px;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nav-bar details {
  flex: 1;
}

.nav-search {
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-search:hover,
.nav-search.active {
  text-decoration: underline;
}

.site-nav summary {
  cursor: pointer;
  font-weight: bold;
  color: #000000;
  padding: 4px 0;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  columns: 2;
}

.site-nav li {
  padding: 3px 0;
}

.site-nav a {
  text-decoration: none;
  color: #000000;
}

.site-nav a:hover,
.site-nav a.active {
  text-decoration: underline;
  font-weight: bold;
}

/* Main Content */
.content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.content h1, .content h2, .content h3 {
  color: #000000;
}

.content p {
  line-height: 1.5;
}

/* Home Page */
.home-links td {
  padding: 4px 0;
}

.home-links a {
  font-weight: bold;
}

.home-bio {
  margin-top: 20px;
  line-height: 1.5;
}

/* Gallery Styles */
.gallery-note {
  font-style: italic;
  margin-bottom: 10px;
}

.gallery-table {
  width: 100%;
}

.gallery-table img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.gallery-cell {
  padding: 5px;
  vertical-align: top;
}

.gallery-cell a {
  cursor: zoom-in;
}

.gallery-caption {
  padding: 5px;
  font-size: 0.9em;
  vertical-align: top;
}

/* Article Styles */
.article-content {
  line-height: 1.6;
}

.article-content h1 {
  text-align: center;
}

.article-content h2 {
  margin-top: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 5px;
}

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

.article-content table td {
  padding: 8px;
  vertical-align: top;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* Documents list */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.doc-list a {
  font-weight: bold;
}

.doc-list .doc-desc {
  display: block;
  font-size: 0.9em;
  color: #333;
  margin-top: 3px;
}

/* Equipment table styles */
.equip-table {
  border: 1px solid #000000;
}

.equip-table td {
  padding: 8px;
  vertical-align: top;
}

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

/* Search (Pagefind) */
.pagefind-ui {
  --pagefind-ui-font: "Times New Roman", Times, serif;
  --pagefind-ui-primary: #333333;
  --pagefind-ui-text: #000000;
  --pagefind-ui-background: transparent;
  --pagefind-ui-border: rgba(0, 0, 0, 0.3);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-scale: 0.9;
}

.pagefind-ui .pagefind-ui__search-input {
  font-family: "Times New Roman", Times, serif;
  background-color: rgba(255, 255, 255, 0.8);
}

.pagefind-ui .pagefind-ui__result-link {
  color: #333333;
}

.pagefind-ui .pagefind-ui__result-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 10px 0;
  text-align: center;
  font-size: 0.85em;
  border-top: 1px solid rgba(0,0,0,0.2);
}

.site-footer a {
  color: #000000;
}
