/* =========================================
   Clark County – banner-based color scheme
   ========================================= */
:root {
  /* Text */
  --primary-text: #1e2a33;          /* deep cool gray-blue */
  --secondary-text: #44505a;        /* soft steel gray */

  /* Backgrounds */
  --page-background: #46515e;       /* outer page - cool pale gray-blue */
  --page-card-background: #ffffff;  /* inner card - clean white */
  --sidebar-background: #dce7f3;    /* soft cool blue (no baby blue) */
  --muted-background: #f7f9fc;      /* main content background - crisp */

  /* Accents */
  --accent-one: #4f7aa3;   
  --accent-two: #26456b;   
  --accent-three: #1b2738   
  

  /* Links */
  --link-color: var(--accent-two);
  --link-hover: var(--accent-one);
  --link-visited: #1f395c;          /* slightly grayer navy */

  /* Borders / lines */
  --border-color: #c3d1df;          /* soft gray-blue border */

  /* Fonts */
  --font-base: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "Consolas", "Courier New", monospace;

  --font-size-base: 15px;
  --font-size-small: 0.9rem;
  --font-size-h1: 2rem;
  --font-size-h2: 1.4rem;
  --font-size-h3: 1.15rem;
  --font-size-legacy-lg: 1.7rem;
  --font-size-legacy-md: 1.3rem;
  --font-size-legacy-sm: 0.95rem;
}

/* =========================================
   Base
   ========================================= */
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  background-color: var(--page-background);
  color: var(--primary-text);
}

body {
  padding: 0.75rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: none;
}

p {
  margin: 0.45rem 0;
}

ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.25rem;
}




/* =========================================
   Header / banner (from your include)
   ========================================= */
body > img,
.site-header img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* If heder_01.htm wraps things in a container, this keeps margin */
.header-wrap {
  max-width: 1000px;
  margin: 0 auto 1rem;
}

/* =========================================
   Clean Top Brand Bar (text only)
   ========================================= */

.top-brand-bar {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 6px 14px 7px;

  background-color: var(--page-card-background); /* soft parchment */
  color: 243447; /* deep navy */
  font-family: var(--font-serif);
  font-size: 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 3px solid var(--accent-one); /* thin gold line */
  box-sizing: border-box;
}

.top-brand-bar .brand-left,
.top-brand-bar .brand-right {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.top-brand-bar .brand-right {
  font-style: italic;
}

/* =========================================
   Main layout – single table, two columns
   (matches misc.html and your new index)
   ========================================= */

/* The main layout table */
body > table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  border-collapse: collapse;
}

/* Sidebar cell (first column) */
body > table > tbody > tr > td:first-child {
  width: 260px;
  background-color: var(--sidebar-background);
  border-radius: 4px;
  border: none;
  padding: 0.85rem 1rem 1rem;
  font-size: 1rem;
  color: var(--primary-text);
  text-align: left;
  vertical-align: top;
}

/* Main content cell (second column) */
body > table > tbody > tr > td:last-child {
  background-color: var(--muted-background);
  border-radius: 4px;
  /* softer outline instead of strong box */
  border: 1px solid rgba(203, 183, 154, 0.4);
  padding: 1rem 1.25rem 1.5rem;
  text-align: left;
  vertical-align: top;
}


/* =========================================
   Headings & typography in content
   ========================================= */
h1 {
  font-family: var(--font-serif);
  font-size: var(--font-size-h1);
  color: var(--accent-two);
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--font-size-h2);
  color: var(--accent-two);
  margin: 1.1rem 0 0.4rem;
}

.sidebar h2 {
  font-family: var(--font-serif);
  font-size: var(--font-size-h3);
}

h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-h3);
  color: var(--accent-two);
  margin: 0.9rem 0 0.3rem;
}

/* Sidebar headings (if you use <h2> in include) */
body > table > tbody > tr > td:first-child h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Sidebar text + links */
body > table > tbody > tr > td:first-child {
  background-color: var(--sidebar-background);
  color: #243447;           /* deep navy/charcoal instead of brown */
}

/* Sidebar headings */
body > table > tbody > tr > td:first-child h2,
body > table > tbody > tr > td:first-child h3 {
  color: #1b2738;           /* a bit darker for headings */
}

/* Sidebar links */
body > table > tbody > tr > td:first-child a {
  color: #1f4b7a;           /* blue link */
}

body > table > tbody > tr > td:first-child a:hover {
  color: var(--accent-one);
}

/* Mini banner slice */
.left-nav .nav-mini-slice {
  width: 100%;
  height: 70px;
  background-image: url("/clark/assets/images/banner_sidebar_slice.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 4px;       /* optional */
  margin-bottom: 14px;
}

/* Main county label */
.left-nav .nav-county-label {
  text-align: center;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.left-nav .nav-county-label a {
  text-decoration: none;
  color: #2b3d58;            /* matches your palette */
}

/* Section headers (Area History, Records, etc.) */
.left-nav h3 {
  font-size: 0.85em;         /* smaller */
  font-weight: 700;
  text-transform: uppercase; /* ALL CAPS */
  letter-spacing: 1px;
  color: #2b3d58;
  margin-top: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid #c9d4e3;  /* subtle separator */
  padding-bottom: 3px;
}

/* List appearance */
.left-nav ul {
  margin: 0 0 10px 15px;
  padding: 0;
}

.left-nav ul li {
  margin: 3px 0;
}



/* =========================================
   Lists in sidebar
   ========================================= */

body > table > tbody > tr > td:first-child ul {
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}


/* =========================================
   Tables inside content
   ========================================= */
body > table > tbody > tr > td:last-child table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

/* lighter, mostly horizontal lines so it feels less boxy */
body > table > tbody > tr > td:last-child th,
body > table > tbody > tr > td:last-child td {
  border-bottom: 1px solid rgba(203, 183, 154, 0.5);
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0.35rem 0.5rem;
  text-align: left;
}

body > table > tbody > tr > td:last-child th {
  background-color: #f4e7cf;
  font-weight: 600;
}



/* =========================================
   Footer (from footer includes)
   ========================================= */

.site-footer {
  max-width: 1000px;
  margin: 2rem auto 1rem;
  padding: 1.5rem 1rem;
  background-color: var(--page-card-background);
  border-top: 4px solid var(--accent-two);
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  color: var(--secondary-text);
  font-size: var(--font-size-small);
}

/* Grid layout for footer columns */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-column h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-two);
  margin-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.35rem;
}

.footer-column a {
  color: var(--link-color);
}

.footer-column a:hover {
  color: var(--link-hover);
}

/* Logo sizing */
.footer-logo img,
.footer-logos img {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0.25rem 0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.footer-bottom a {
  color: var(--accent-two);
}

.footer-bottom a:hover {
  color: var(--accent-one);
}

/* Mobile behavior */
@media (max-width: 800px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-logo img,
  .footer-logos img {
    margin-left: auto;
    margin-right: auto;
  }
}


/* SIDE BAR */

/* Mini banner slice */
.left-nav .nav-mini-slice {
  width: 100%;
  height: 70px;
  background-image: url("/clark/assets/artwork/banner_sidebar_slice.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 4px;       /* optional */
  margin-bottom: 14px;
}

/* Main county label */
.left-nav .nav-county-label {
  text-align: center;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.left-nav .nav-county-label a {
  text-decoration: none;
  color: #2b3d58;            /* matches your palette */
}

/* Section headers (Area History, Records, etc.) */
.left-nav h3 {
  font-size: 0.85em;         /* smaller */
  font-weight: 700;
  text-transform: uppercase; /* ALL CAPS */
  letter-spacing: 1px;
  color: #2b3d58;
  margin-top: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid #c9d4e3;  /* subtle separator */
  padding-bottom: 3px;
}

/* List appearance */
.left-nav ul {
  margin: 0 0 10px 15px;
  padding: 0;
}

.left-nav ul li {
  margin: 3px 0;
}

.site-search {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--muted-background, #f7f7f7);
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
}

.site-search-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: var(--secondary-text, #333);
}

.site-search-input {
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 4px;
  font-size: 0.95rem;
}

.site-search-button {
  background: var(--accent-two, #6f4a24);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

.site-search-button:hover {
  background: var(--accent-one, #c8a15a);
  color: #000;
}



/* =========================================
   Responsive
   ========================================= */
@media (max-width: 800px) {
  body {
    padding: 0.5rem;
  }

  body > table {
    max-width: 100%;
  }

  body > table > tbody > tr {
    display: block;
  }

  body > table > tbody > tr > td {
    display: block;
    width: 100%;
  }

  body > table > tbody > tr > td:first-child {
    margin-bottom: 1rem;
  }
}
