/* === ToolsPodcasting Header/Menu (component) === */
/* Works on top of your existing .site-header and .header-container styles */

/* Header Styles */
.site-header {
    background-color: white;
    width: 100%;
    padding: 20px 0 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.site-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout: row 1 logo, row 2 toggle or nav, row 3 mobile nav */
.site-header .header-container {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto; /* 3 rows to place toggle then nav */
  align-items: center;
  gap: 0.25rem 1rem;
}

/* --- Toggle button (hidden on desktop) --- */
.tp-nav-toggle {
  grid-column: 2;     /* aligns with right column by default */
  grid-row: 2;        /* sits under the logo row */
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  color: #222222;
  display: none;      /* hidden on desktop */
  align-items: center;
  gap: 0.5rem;
  padding: 6px 8px;
  cursor: pointer;
}

.tp-nav-toggle .tp-toggle-symbol,
.tp-nav-toggle .tp-toggle-label {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.618;
}

.tp-nav-toggle:focus-visible {
  outline: 2px solid #1e73be;
  outline-offset: 2px;
}

/* --- Primary nav (row under the logo) --- */
.tp-nav {
  padding: 0 20px;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  background: transparent;
}

.tp-nav .tp-nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;  /* right-aligned like GeneratePress */
  gap: 32px;
  padding: 32px 0 8px 0;
  margin: 0;
}

.tp-nav .tp-nav-list a {
  color: #222222;
  text-decoration: none;
  padding: 12px 2px 0 2px;
  font-size: 20px;
  line-height: 1.618;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.tp-nav .tp-nav-list a.is-active,
.tp-nav .tp-nav-list a[aria-current="page"]{
  color:#1e73be; border-bottom-color:#1e73be;
}

.tp-nav .tp-nav-list a:hover,
.tp-nav .tp-nav-list a:focus {
  color: #1e73be;
  border-bottom-color: #1e73be;
}

.tp-nav .tp-nav-list a:focus-visible {
  outline: 2px dashed #1e73be;
  outline-offset: 2px;
}

/* Footer */
.site-footer {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 30px 20px;
    margin-top: 2rem;
}

.site-footer p {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
	line-height: 1.618;
}

.site-footer a {
    color: #1e73be;
    text-decoration: none;
	transition: color 0.3s ease;
}

.site-footer a:hover {
	color: #09304f;
    text-decoration: underline;
}

/* Footer Featured In Section */
.footer-partners {
    margin-top: 20px;
    text-align: center;
}

.partners-separator {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.footer-partners .featured-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #48494c;
}

.partner-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.partner-badge {
    height: 40px;
    min-width: 100px;
    width: auto;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.partner-badge:hover {
    opacity: 0.8;
}

/* --- Mobile behavior --- */
@media (max-width: 768px) {
  .site-header .header-container {
    grid-template-columns: 1fr;
  }

  /* center the logo row */
  .logo-link {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  /* Show the toggle centered on its own row below the logo */
  .tp-nav-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  /* Collapse the nav and drop it to row 3 below the toggle */
  .tp-nav {
    grid-row: 3;
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
  }
  .site-header.tp-open .tp-nav {
    max-height: 240px;     /* enough for a short list */
  }
  
  .site-header.tp-open .tp-nav-toggle .tp-toggle-symbol {
    font-size: 32px;
	line-height:1;
    transform: translateY(-2px);
  }
	
  .site-header.tp-open .tp-nav-toggle .tp-toggle-label {
    transform: translateX(-2px);
  }
  
  .tp-nav .tp-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 14px 0;
  }
  .tp-nav .tp-nav-list a {
    padding: 16px 0 0 0;
  }
}

@media (max-width: 480px) {
    .site-logo {
        width: 440px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .tp-nav { transition: none; }
  .tp-nav .tp-nav-list a { transition: none; }
}

/* High-DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo {
        /* Logo is already retina-ready at 1050x210px */
    }
}