/* RedTelephone66.com — Modern Offline Enhancements (layered over Traction master.css) */

/* Keep hanging date badges cleanly inside viewport on wide screens and never cause horizontal scroll */
html {
  overflow-x: hidden;
}
body {
  -webkit-font-smoothing: antialiased;
}

/* Fix logo crisp aspect ratio & smooth hover */
div.logo img {
  display: block;
  width: 382px;
  height: 150px;
}

/* Center Dual Turntable banner cleanly without deprecated <center> */
.rt-banner-wrap {
  text-align: center;
  padding: 5px 0 19px 0;
}
.rt-banner-wrap img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Dropdown accessibility & touch/focus support in #cat-nav */
#cat-nav .nav > li {
  position: relative;
}
#cat-nav .nav > li.has-children > a {
  padding-right: 26px;
}
#cat-nav .nav > li.has-children > a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 20px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(235, 236, 238, 0.85);
}
#cat-nav .nav li:hover > ul,
#cat-nav .nav li:focus-within > ul,
#cat-nav .nav li.rt-open > ul {
  left: 0;
  top: 45px;
}

/* Clean right sidebar (#sidebox properly contained inside #sidebar) */
#sidebox {
  margin: 20px 0 24px 0;
  font-size: 1.2em;
}
#sidebox .rt-side-photo-wrap {
  margin-top: 16px;
  text-align: center;
}
#sidebox .rt-side-photo-wrap a {
  display: inline-block;
}
#sidebox .rt-side-photo-wrap img {
  display: block;
  width: 250px;
  height: 200px;
  padding: 5px;
  background: #fff;
  border: 1px solid #aaa;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#sidebox .rt-side-photo-wrap a:hover img {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.rt-photo-credit {
  margin-top: 6px;
  font-size: 0.95em;
  color: #666;
  text-align: center;
}
#sidebar #search_form div {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
#sidebar #search_form input.search {
  margin: 0;
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 6px 8px;
  font-size: 1.05em;
  border: 1px solid #aaa;
  background: #fff;
  color: #333;
  border-radius: 2px;
}
#sidebar #search_form input#searchsubmit,
#footer #footer_search_form input#footer_searchsubmit {
  margin: 0;
  padding: 6px 11px;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  background: #245D8E;
  border: 1px solid #1A3D5C;
  border-radius: 2px;
  cursor: pointer;
}
#sidebar #search_form input#searchsubmit:hover,
#footer #footer_search_form input#footer_searchsubmit:hover {
  background: #1A3D5C;
}
#footer #footer_search_form div {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 15px;
}
#footer #footer_search_form input.search {
  margin: 0;
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #aaa;
  background: #ddd;
  color: #333;
  border-radius: 2px;
}
#footer #footer_search_form input.search:focus {
  background: #fff;
}
#sidebar .widget_archive select {
  width: 100%;
  padding: 6px 8px;
  font-size: 1.2em;
  color: #333;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 2px;
}
#sidebar .rt-archive-stats {
  margin-top: 10px;
  padding: 10px 12px;
  background: #dfe2e5;
  border: 1px solid #c9cdd1;
  border-radius: 3px;
  font-size: 1.15em;
  line-height: 1.6em;
  color: #444;
  text-shadow: 0 1px 0 #f7f7f7;
}
#sidebar .rt-archive-stats strong {
  color: #222;
}
#sidebar .rt-archive-stats a {
  font-weight: bold;
}

/* Entry content safety & crisp album presentation */
.entry img {
  max-width: 100%;
  height: auto;
}
.entry a[data-lightbox] {
  display: inline-block;
  cursor: zoom-in;
}
.rt-sleeve-wrap {
  text-align: center;
  margin: 8px 0 16px 0;
}
.rt-sleeve-wrap img {
  display: block;
  margin: 0 auto;
}
.rt-sleeve-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.85em;
  color: #777;
  font-style: italic;
}

/* Vintage 440x333 LP Jacket + Vinyl Disc placeholder for posts whose art Wayback missed */
.rt-vinyl-card {
  position: relative;
  width: 440px;
  max-width: 100%;
  aspect-ratio: 440 / 333;
  margin: 8px auto 16px auto;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  user-select: text;
}
.rt-vinyl-card-inner {
  position: absolute;
  left: 3.4%;
  top: 4.5%;
  width: 66%;
  height: 87%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 14px 12px 14px;
  box-sizing: border-box;
  text-align: left;
  color: #2c2621;
}
.rt-vinyl-kicker {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8c2d19;
  font-weight: bold;
  padding-right: 44px;
}
.rt-vinyl-main {
  margin: auto 0;
  padding: 6px 0;
}
.rt-vinyl-artist {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: bold;
  color: #1f1b18;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  text-shadow: none;
}
.rt-vinyl-album {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.3;
  color: #3a3029;
  text-shadow: none;
}
.rt-vinyl-meta {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #5b5046;
  border-top: 1px solid rgba(44, 38, 33, 0.22);
  padding-top: 7px;
}
.rt-vinyl-stamp {
  font-size: 9px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #8a7e72;
  margin-top: 3px;
}

/* Comment formatting safety & archive notice */
div.c-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
div.c-grav img.avatar {
  width: 39px;
  height: 39px;
  display: block;
  margin-bottom: 4px;
}
.rt-smiley {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: middle;
}
.rt-archive-comment-note {
  margin-top: 22px;
  padding: 12px 15px;
  background: #dfe2e5;
  border: 1px solid #c9cdd1;
  border-radius: 3px;
  font-size: 1.25em;
  line-height: 1.6em;
  color: #555;
  text-shadow: 0 1px 0 #f7f7f7;
}
.rt-post-nav {
  margin: 18px 0 24px 0;
  padding: 10px 0;
  border-top: 1px solid #d5d7d8;
  border-bottom: 1px solid #d5d7d8;
  font-size: 1.25em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.rt-post-nav a {
  font-weight: bold;
  max-width: 48%;
}
.rt-post-nav .rt-next {
  text-align: right;
  margin-left: auto;
}

/* Pagination bar (matches Traction's wp-pagenavi style) */
.navigation {
  padding: 14px 0 8px 0;
  clear: both;
}
.navigation .wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}
.navigation .wp-pagenavi span.pages {
  margin-right: 10px;
  color: #666;
  font-weight: normal;
}
.navigation .wp-pagenavi a:link,
.navigation .wp-pagenavi a:visited,
.navigation .wp-pagenavi span.current {
  display: inline-block;
  padding: 4px 9px;
  margin: 0;
  line-height: 1.3;
  border-radius: 2px;
}
.navigation .wp-pagenavi span.current {
  background: #245D8E;
  color: #fff;
  border: 1px solid #1A3D5C;
  text-shadow: none;
}
.navigation .rt-prev-next {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Search page UI */
.rt-search-controls {
  padding: 14px 16px;
  background: #dfe2e5;
  border: 1px solid #c9cdd1;
  border-radius: 3px;
  margin-bottom: 18px;
}
.rt-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.rt-search-row input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  font-size: 1.3em;
  border: 1px solid #aaa;
  background: #fff;
  color: #222;
  border-radius: 2px;
}
.rt-search-row button {
  padding: 8px 16px;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
  background: #245D8E;
  border: 1px solid #1A3D5C;
  border-radius: 2px;
  cursor: pointer;
}
.rt-search-row button:hover {
  background: #1A3D5C;
}
.rt-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 1.2em;
  color: #444;
}
.rt-search-filters select {
  padding: 4px 6px;
  font-size: 1em;
  border: 1px solid #aaa;
  background: #fff;
  color: #333;
  border-radius: 2px;
}
.rt-search-filters label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.rt-search-status {
  font-size: 1.3em;
  font-weight: bold;
  color: #444;
  margin-bottom: 14px;
  text-shadow: 0 1px 0 #fff;
}
.rt-search-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #d5d7d8;
}
.rt-search-thumb {
  flex: 0 0 120px;
}
.rt-search-thumb img {
  display: block;
  width: 120px;
  height: auto;
}
.rt-search-thumb-empty {
  width: 120px;
  height: 91px;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #6b5e52;
  text-align: center;
  padding: 0 36px 4px 8px;
  box-sizing: border-box;
  font-weight: bold;
}
.rt-search-body {
  flex: 1;
  min-width: 0;
}
.rt-search-body h3 {
  font-size: 1.5em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.rt-search-meta {
  font-size: 1.15em;
  color: #666;
  margin-bottom: 6px;
}
.rt-search-snippet {
  font-size: 1.25em;
  line-height: 1.5;
  color: #444;
}
.rt-search-more {
  margin-top: 16px;
  text-align: center;
}
.rt-search-more button {
  padding: 8px 18px;
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  background: #eef0f2;
  border: 1px solid #aaa;
  border-radius: 3px;
  cursor: pointer;
}
.rt-search-more button:hover {
  background: #fff;
}

/* Modern Lightbox Modal (zero dependencies) */
.rt-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 14, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rt-lb-overlay.rt-lb-open {
  display: flex;
}
.rt-lb-box {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #1a1a1c;
  padding: 12px 12px 10px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  text-align: center;
}
.rt-lb-img {
  display: block;
  max-width: 86vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  background: #111;
}
.rt-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #e6e6e6;
  font-size: 13px;
  line-height: 1.4;
}
.rt-lb-caption {
  text-align: left;
  font-weight: bold;
}
.rt-lb-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rt-lb-btn {
  background: #2f2f34;
  color: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}
.rt-lb-btn:hover {
  background: #245D8E;
  border-color: #3a7bb3;
}
.rt-lb-btn[hidden] {
  display: none;
}

/* Clean archive note on Contact Us page */
.rt-contact-archived {
  margin-top: 16px;
  padding: 14px 16px;
  background: #dfe2e5;
  border: 1px solid #c5c9cd;
  border-radius: 3px;
  color: #444;
}
