/* =========================================================
  (styles-main.css)
   ========================================================= */

/* ------------------------------
   Root variables
   ------------------------------ */
:root {
  /* Fonts */
  --font-sans: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  /* Text colors */
  --text-default: #222222;
  --text-muted: #555555;
  --text-heading: #1f2a3a;

  /* Links */
  --link-color: #234f7f;
  --link-hover: #C2A55F;
  --link-visited: #5d3b7a;
  --link-top-bar: #ffffff;

  /* Backgrounds */
  --page-bg: #d4dfeb;
  /* page background around the site */
  --wrapper-bg: #ffffff;
  /* site content background */
  --top-bar: #222e3c;
  /* nav bar */
  --top-bar-border-bottom: #1a222f;
  --card-bg: #fdf9f2;
  /* optional card/section background */
  --footer-bg: #fff;

  --accent: #dbcaa3;

  /* Borders / lines */
  --border-color: #d0c0a3;
  --divider-color: #ccbba0;
}


/* ------------------------------
   Basic reset / base styles
   ------------------------------ */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--text-default);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
}

/* Wrapper that holds the whole page */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--wrapper-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
   Typography
   ------------------------------ */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  margin: 1.25rem 0 0.75rem;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.4rem;
  text-transform: none;
}

h3 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  margin-top: 3rem;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 0.75rem 1.5rem;
  padding: 0;
}

li {
  margin-bottom: 0.25rem;
}

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

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

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

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tables (for lists, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

thead th {
  background-color: #f0f0f0;
}

/* ------------------------------
   Layout: header, nav, banner
   ------------------------------ */


header {
  display: block;
}

.banner {
  text-align: center;
  background: #ffffff;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--link-color);
}

.banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  width: 100%;
}

/* Top header wrapper */
.ky-header {
  font-family: var(--font-sans, "Segoe UI", Tahoma, sans-serif);
}

/* Dark strip: title + USGenWeb badge */
.ky-top-bar {
  background: #34495e;
  /* dark blue-gray */
  color: #ffffff;
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.ky-top-bar a {
  color: white;
  text-decoration: none;
}

.ky-top-bar a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.ky-top-em {
  font-style: italic;
  font-weight: 600;
}

.ky-top-left {
  white-space: nowrap;
}

.ky-top-right {
  text-align: right;
}

.usgenweb-badge {
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
}

.usgenweb-name {
  font-weight: 600;
}

/* Light nav + search band */
.ky-nav-bar {
  background: #ececec;
  /* light tan */
  border-bottom: 1px solid #d2c5b0;
  padding: 0.4rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

/* Nav links */
.ky-nav-links a {
  margin-right: 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #234f7f;
  /* your link blue */
}

.ky-nav-links a:hover {
  text-decoration: underline;
}

/* Search form (Footsteps-style) */
.ky-nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ky-nav-search input[type="text"] {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #c3b090;
  border-radius: 4px;
  width: 180px;
}

.ky-nav-search button {
  padding: 0.32rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #234f7f;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.ky-nav-search button:hover {
  opacity: 0.9;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .ky-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .ky-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ky-nav-search input[type="text"] {
    width: 160px;
  }
}


/* ------------------------------
   Main content area
   ------------------------------ */

main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
}

/* Standard article content */
article {
  max-width: 900px;
  margin: 0 auto;
}

/* If you still use article.right on some pages, style it as a side card */
article.right {
  max-width: 320px;
  margin: 0 0 1.5rem auto;
  padding: 1rem 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* ------------------------------
   Footer
   ------------------------------ */

footer {
  margin-top: auto;
  background-color: var(--footer-bg);
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: #000000;
}


.page-footer {
  margin-top: 5px;
  background: #ececec;
  padding: 1.25rem;
  border-top: 1px solid #333;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-column h3 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

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

.footer-column li {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

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

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

footer img {
  max-height: 120px;
  margin-bottom: 0.5rem;
}

.footer-full-width-row {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* ------------------------------
   Google Custom Search tweaks
   ------------------------------ */

/* These class names are used by Google CSE markup */
input.gsc-input,
.gsc-input-box,
.gsc-input-box-inner {
  box-sizing: border-box;
}

input.gsc-input {
  border: 1px solid #ccc !important;
  padding: 4px 8px !important;
  font-size: 0.95rem !important;
  border-radius: 4px !important;
}

input.gsc-search-button,
button.gsc-search-button {
  border: none !important;
  padding: 5px 10px !important;
  background-color: var(--link-color) !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  border-radius: 4px !important;
  cursor: pointer;
}

input.gsc-search-button:hover,
button.gsc-search-button:hover {
  background-color: var(--link-hover) !important;
}

/* ------------------------------
   Responsive adjustments
   ------------------------------ */

@media (max-width: 768px) {
  .top-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-list {
    margin-top: 0.35rem;
  }

  /* Dropdowns align better on small screens */
  .dropdown .dropdown-content {
    left: 0;
    right: auto;
  }

  main {
    padding: 0.75rem 1rem 1.5rem;
  }

  article {
    max-width: 100%;
  }

  article.right {
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}

/* Inline menu search (Footsteps style) */

.menu-search {
  display: flex;
  align-items: center;
}

.menu-search-form {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.menu-search-input {
  padding: 4px 6px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 150px;
}

.menu-search-button {
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.menu-search-button:hover {
  background: #f0f0f0;
}

/* ============================================= */
/* ============================================= */
/* ============================================= */
/* ============================================= */
/* Layout shell for the KYBiog homepage */
/* ============================================
   KYBiog Landing Page — Clean Fresh Stylesheet
   ============================================ */

/* Page container */
#kybiog-home {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-family: var(--font-sans, Arial, sans-serif);
  color: var(--text-default, #222);
}

/* Headings */
#kybiog-home h1,
#kybiog-home h2,
#kybiog-home h3 {
  color: var(--text-heading, #222);
  margin-top: 0;
}

/* --------------------------------------------
   Three Ways to Explore the Collection
   -------------------------------------------- */

#kybiog-home .collection-choices {
  margin: 2.5rem 0 2.5rem;
  text-align: center;
}

#kybiog-home .collection-choices h2 {
  margin-bottom: 1.5rem;
}

/* Card layout */
#kybiog-home .choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

#kybiog-home .choice-card {
  flex: 1 1 260px;
  max-width: 300px;
  background: #ebdfc2;
  /* , #dae1eb */
  border: 1px solid var(--link-color);
  border-radius: 16px;
  padding: 1.4rem 1.1rem 1.5rem;
  text-align: center;
}

/* Card icons */
#kybiog-home .choice-card img.choice-icon {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 0.75rem;
}

/* Card text */
#kybiog-home .choice-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--link-color)
}

#kybiog-home .choice-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted, #555);
}

/* Search field inside a card */
#kybiog-home .search-form {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

#kybiog-home .search-form input[type="text"] {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #d2c5b0;
  width: 170px;
  font-size: 0.9rem;
}

#kybiog-home .search-form button {
  padding: 0.48rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #234f7f;
  background: #234f7f;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

#kybiog-home .search-form button:hover {
  opacity: 0.9;
}

/* --------------------------------------------
   Featured Biography Section
   -------------------------------------------- */

#kybiog-home .featured {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d2c5b0;

}

#kybiog-home .featured-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
   margin-left: 1rem;
}

#kybiog-home .featured-photo img {
  display: block;
  max-width: 130px;
  border-radius: 8px;
  border: 1px solid #d2c5b0;
}

h3.featured-heading {
  color: var(--accent);
}

#kybiog-home .featured-text h3 {
  margin: 0 0 0.3rem;
}

#kybiog-home .featured-meta {
  margin: 0 0 0.8rem;
  font-style: italic;
  color: #555;
}

#kybiog-home .featured-link {
  margin-top: 0.6rem;
}

.leaf-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 1.5rem;
  color: var(--text-muted);
}

.leaf-rule::before,
.leaf-rule::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
  margin: 0 12px;
}

.leaf-rule span {
  font-size: 18px;
}

/* --------------------------------------------
   About the Project
   -------------------------------------------- */

#kybiog-home .about {
  margin-top: 2.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d2c5b0;
}

/* --------------------------------------------
   Mobile Responsive
   -------------------------------------------- */

@media (max-width: 720px) {
  #kybiog-home {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  #kybiog-home .choice-row {
    flex-direction: column;
  }

  #kybiog-home .choice-card {
    max-width: none;
  }

  #kybiog-home .featured-layout {
    flex-direction: column;
  }

  #kybiog-home .featured-photo img {
    max-width: 160px;
  }
}

/* Sources section at bottom */
#kybiog-home .sources {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d2c5b0;
}

#kybiog-home .sources h2 {
  margin-bottom: 1rem;
}

#kybiog-home .sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

#kybiog-home .sources-col {
  flex: 1 1 260px;
}

#kybiog-home .sources ul {
  margin: 0;
  padding-left: 1.1rem;
}

#kybiog-home .sources li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* Stack columns on small screens */
@media (max-width: 720px) {
  #kybiog-home .sources-grid {
    flex-direction: column;
  }
}

/* Browse page container */
#kybiog-browse {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-family: var(--font-sans, Arial, sans-serif);
}

/* Section headers */
#kybiog-browse .browse-section {
  margin-bottom: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d2c5b0;
}

/* --------------------
   County list styling
   -------------------- */
#kybiog-browse .county-list {
  background: #faf7f2;
  padding: 1.5rem 2.5rem;
  border: 1px solid #e3d9cb;
  border-radius: 12px;
}

#kybiog-browse .county-list li {
  margin-bottom: 0.2rem;
  /* tighter */
  line-height: 1.2;
  /* tighter line height */
}


/* optional: 3 columns on desktop */
#kybiog-browse .three-col {
  column-count: 3;
  column-gap: 1.25rem;
  /* reduce gap slightly */
}

#kybiog-browse .county-list li a {
  white-space: nowrap;
}

@media (max-width: 800px) {
  #kybiog-browse .three-col {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  #kybiog-browse .three-col {
    column-count: 1;
  }
}


/* --------------------
   Surname A–Z styling
   -------------------- */
#kybiog-browse .surname-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 0.45rem 0.55rem;
  max-width: 420px;
  /* keeps the alphabet from stretching across the page */
}

#kybiog-browse .surname-list li a {
  display: block;
  text-align: center;
  padding: 0.35rem 0;
  border: 1px solid #d2c5b0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
}





/* ------------------------------
   FOOTER — GLOBAL BASE STYLES
   ------------------------------ */

.kyg-footer {
  margin-top: 5px;
  background: var(--footer-bg);
  padding: 1.5rem 1rem;
  border-top: 3px solid var(--top-bar-border-bottom);
  font-family: var(--font-sans);
  color: var(--text-default);
  text-align: center;
}

/* keep text alignment/spacing on the inner, not the full-width band */
.kyg-footer-inner {
  max-width: 1100px;          /* match your main wrapper width */
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.kyg-footer.deluxe .kyg-footer-inner {
  text-align: left;
}

.kyg-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ------------------------------
   LINKS
   ------------------------------ */

.footer-links a {
  color: var(--text-default);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.footer-links a:visited {
  color: var(--text-default);
  text-decoration: none;
}

/* ------------------------------
   LOGO ROW (Simple + Deluxe)
   ------------------------------ */

.footer-logos {
  margin: 0.8rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

.footer-logos img {
  display: block;
  max-height: 55px;
  height: auto;
}

/* copyright strip gets its own subtle background */

.footer-bottom {
  background: rgba(0, 0, 0, 0.03);   /* or swap to a hex you like */
  border-top: 1px solid var(--footer-bg);
  padding: 0.75rem 0;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ------------------------------
   FOOTER NOTES / DISCLAIMER
   ------------------------------ */

.footer-note,
.endorsement {
  font-size: 0.75rem;
  margin-top: 0.6rem;
  color: var(--text-default);
  opacity: 0.85;
}

/* ------------------------------
   DELUXE FOOTER LAYOUT
   ------------------------------ */

.kyg-footer.deluxe {
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-default);
  letter-spacing: 0.04em;
}

.footer-col p,
.footer-col ul {
  font-size: 0.85rem;
}

.footer-col ul {
  padding-left: 1rem;
  margin: 0.6rem 0;
}

/* ------------------------------
   DELUXE FOOTER — BOTTOM BAR
   ------------------------------ */

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.75;
}


