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

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

  /* Text colors */
  --text-default: #000;
  --text-muted: #555555;
  --text-heading: #2e384d;
  --footer-text: #ffffff;

  /* Links */
  --link-color: #1a3dd9;
  --link-hover: #c2923a;
  --link-visited: #9804a3;
  --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: #222e3c;
  --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: #c4cFdb;
  color: var(--text-default);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5em;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #fff;
  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);
}

h1 {
  font-size: 1.9rem;
  line-height: 2.25rem;
  margin: 1.25rem 0;
  text-align: center;
}
h1 .small {
  font-size: 80%;
}

h2 {
  font-size: 1.4rem;
  margin: 1.5rem .5rem .5rem
  text-transform: none;
}

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

h4 {
  font-size: 1.15em;
  color: #000053;
  background-color: #eee;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  padding: .3em .75em;
  border: 4px double #2e384d;
  border-radius: 8px;
}

p {
  margin: 0 0 0.75rem;
}

.author {
  color: #333; 
  font-size: 0.9em; 
  letter-spacing: 1px; 
  padding: 0; 
  font-style:italic;
}

.lead {
  font-size: 1.1rem;
  font-variant: small-caps;
}

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

li {
  margin-bottom: 0.25rem;
}

a:link {
  color: #1a3d9;
  text-decoration: none;
}
a:visited {
  color: #9804a3;
  text-decoration: none;
}

a:hover {
  color: #c2923a;
  text-decoration: underline;
}


/* ====== 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: #fff;
  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;
}

.ky-nav-bar {
  background-color: #eee;
  padding: 0.4rem 1rem;
  border-top: 2px solid #2e384d;
  border-bottom: 1px solid #999;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

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

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

/* Search form */
.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: 1px solid #666;
  border-radius: 4px;
  background: #caae6f;
  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;
  }
}



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

main {
  flex: 1;
  padding: 1rem 4%;
}

article {
  max-width: 960px;
  margin: 0 auto;
}
/* Mobile tweak */
@media (max-width: 720px) {
  article {
    max-width: 96%
  }
}

/* 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;
}

.linkGroup {
  display: flex;
  flex-flow: row wrap;
  gap: 1em;
  padding: 10px;
justify-content: space-between;
}

.linkGroup div {
  margin: 0 auto;
  flex: 0 0 500px;
  padding: 10px;
  box-sizing: border-box;
}

/* Mobile Tweak */
@media (max-width: 720px) {
  .linkGroup div {
    flex: 0 0 100%; /* Stacks columns into a single full-width list */
 }
}

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

.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-col {
  text-align: center;
}

.footer-col 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;
}

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

.kyg-footer-deluxe {
  background: var(--footer-bg);
  border-top: 6px solid #cbaf6e;
  font-family: var(--font-sans);
  color: #fff;
  text-align: center;
}

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

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

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

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

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #c2a55f;
  text-decoration: underline;
}

.footer-links a:visited {
  color: #fff;
  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: 75px;
  height: auto;
}

.footer-bottom {
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.footer-bottom .footnote {
  font-size: 0.75rem;
}

/* ------------------------------
   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: #fff;
  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: 2px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

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


/* ------------------------------
   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;
}


