/* Harry Crews Website - Modern CSS Layout
 * Replaces table-based layout with CSS Grid/Flexbox
 * Maintains exact visual appearance of original design
 */

/* CSS Variables - Preserve original color scheme */
:root {
  --bg-body: #dedece;
  --text-body: #394252;
  --bg-header: #a8a899;
  --bg-content: #ffffff;
  --border-dark: #4a4a4a;
  --border-medium: #adadad;
  --border-light: #dedede;
  --border-top: #b5b5b5;
  --sidebar-width: 300px;
    --content-width: 899px;
  --divider-width: 1px;
  --max-width: 1200px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  color: var(--text-body);
  margin: 0;
  padding: 0;
  font-family: verdana, geneva, sans-serif;
}

/* Header Layout - replaces nested tables */
.site-header {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border-top);
  padding: 0.5rem 0;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-bottom-borders {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-medium);
  height: 2px;
  margin-top: 0.25rem;
}

.header-bottom-light {
  border-bottom: 1px solid var(--border-light);
  height: 1px;
}

/* Search Form Layout */
.search-container {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.5rem;
  min-height: 39px;
}

.search-form {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
}

.search-form input[type="text"] {
  padding: 0.125rem 0.25rem;
  border: 1px solid var(--border-dark);
  font-family: verdana, geneva, sans-serif;
  font-size: 11px;
}

.search-form input[type="submit"] {
  padding: 0.125rem 0.5rem;
  background: var(--bg-content);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  font-family: verdana, geneva, sans-serif;
  font-size: 11px;
}

.google-plus {
  margin-left: 0.25rem;
}

/* Main Layout Grid - replaces table structure */
.main-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) var(--divider-width) var(--content-width);
  min-height: 60vh;
}

/* Sidebar */
.sidebar {
  padding: 0;
}

.sidebar-inner {
  padding: 1rem 1.25rem;
}

/* Divider - preserves dotted background */
.divider {
  background: url('/templates-modern/i/lnav_dots.gif') repeat-y;
  width: var(--divider-width);
}

/* Content Area */
.content-area {
  background-color: var(--bg-content);
  padding: 0;
}

.content-inner {
  padding: 1rem 1.8rem 5rem 1.8rem;
  font-size: 14px;
  line-height: 21px;
}
/* Site Title in Content Area */
.site-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.site-subtitle {
  font-size: 14px;
}

.section-titles {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 14px;
}
.page-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Footer Layout - replaces table structure */
.site-footer {
  border-top: 1px solid #000000;
}

.footer-border-top {
  border-top: 1px solid #cecece;
  height: 1px;
}

.footer-middle {
  background-color: var(--bg-header);
  padding: 0.25rem 0;
}

.footer-borders {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-medium);
  height: 2px;
}

.footer-light {
  border-bottom: 1px solid var(--border-light);
  height: 1px;
}

.footer-content {
  background-color: var(--bg-body);
  text-align: center;
  padding: 1rem;
  font-size: 14px;
  line-height: 21px;
}

.footer-content a {
  color: var(--text-body);
}

.footer-spacer {
  padding: 0.5rem 0;
}

/* Hero image on homepage */
.hero-image {
  max-width: 400px;
  margin: 0 0 1rem 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-dark);
}

/* Content Styling - preserve original formatting */
.content-area img {
  max-width: 100%;
  height: auto;
}

.content-area img[align="right"] {
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;
}

/* Divider rule within content */
#rule-dotted {
  border-top: 1px dotted #999;
  margin: 1.5rem 0;
  clear: both;
}

/* Utility classes */
.letterspace3 {
  letter-spacing: 3px;
}

.uppercase {
  text-transform: uppercase;
}
