/* HikingForecast.com — Global site styles v2.0 */

/* ── Google Font (loaded via mu-plugin) ── */
body, .hf-trail-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2e1a;
}

/* ── Hide theme clutter ── */
footer a[href*="wpastra.com"],
.ast-footer-copyright .wp-block-separator { display: none !important; }

/* ── Header / Nav cleanup ── */
.site-header {
  border-bottom: 1px solid #e8ede8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.site-title a {
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  color: #2d6a4f !important;
  letter-spacing: -0.02em;
}
.main-header-menu {
  flex-wrap: nowrap !important;
}
.main-header-menu > .menu-item > a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  color: #333 !important;
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  color: #2d6a4f !important;
}
.main-header-menu .sub-menu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 200px;
}
.main-header-menu .sub-menu a {
  font-size: 0.88rem;
  padding: 0.5rem 1rem !important;
}

/* ── Page title ── */
.entry-title {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #1a2e1a !important;
  line-height: 1.25 !important;
  margin-bottom: 0.5rem !important;
}

/* ── Content container ── */
.hf-trail-page, .hf-homepage, .hf-state-page {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ── Breadcrumb ── */
.hf-breadcrumb {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1rem;
}
.hf-breadcrumb a { color: #2d6a4f; text-decoration: none; }
.hf-breadcrumb a:hover { text-decoration: underline; }

/* ── Updated timestamp ── */
.hf-updated {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ── Score box ── */
.hf-score-box {
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ea 100%);
  border: 1px solid #c5dfc9;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0 1.75rem;
}
.hf-score-box.hf-risk {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border-color: #e8b4b4;
}
.hf-score-box.hf-caution {
  background: linear-gradient(135deg, #fffbf0, #fff3d6);
  border-color: #e8d4a0;
}
.hf-score-main {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.hf-score-label {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.hf-label-excellent { background: #2d6a4f; color: #fff; }
.hf-label-good      { background: #40916c; color: #fff; }
.hf-label-caution   { background: #e9c46a; color: #333; }
.hf-label-high-risk { background: #c1121f; color: #fff; }
.hf-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.hf-breakdown li {
  background: rgba(255,255,255,0.75);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.hf-best-day {
  background: #f0f7f4;
  border-left: 4px solid #2d6a4f;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
}

/* ── Section headings ── */
.hf-trail-page h2, .hf-state-page h2, .hf-homepage h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8f4ea;
}

/* ── Forecast table ── */
.hf-forecast-wrap { overflow-x: auto; margin: 1rem 0; }
.hf-forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hf-forecast-table th {
  background: #2d6a4f;
  color: #fff;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.hf-forecast-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #eee;
}
.hf-forecast-table tr:nth-child(even) td { background: #f9fbf9; }
.hf-forecast-table tr:hover td { background: #f0f7f4; }

/* ── Trail info cards ── */
.hf-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.hf-info-grid li {
  background: #f5f8f5;
  border: 1px solid #e8ede8;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.hf-info-grid li strong { color: #2d6a4f; }

/* ── Related trails ── */
.hf-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.hf-related li a {
  display: block;
  padding: 0.6rem 0.9rem;
  background: #f5f8f5;
  border-radius: 8px;
  color: #2d6a4f;
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid #e8ede8;
  transition: background 0.15s;
}
.hf-related li a:hover { background: #e8f4ea; }

/* ── FAQ ── */
.hf-faq details {
  margin-bottom: 0.6rem;
  border: 1px solid #e8ede8;
  border-radius: 10px;
  overflow: hidden;
}
.hf-faq summary {
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: #f9fbf9;
  font-size: 0.95rem;
}
.hf-faq details[open] summary { background: #f0f7f4; color: #2d6a4f; }
.hf-faq details p {
  padding: 0.85rem 1.1rem;
  margin: 0;
  font-size: 0.92rem;
  color: #444;
}

/* ── Disclaimer ── */
.hf-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-left: 4px solid #bbb;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.55;
}

/* ── Homepage ── */
.hf-hero {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 60%, #52b788 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.hf-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #fff !important;
  border: none !important;
}
.hf-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}
.hf-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.hf-trail-card {
  border: 1px solid #e8ede8;
  border-radius: 12px;
  padding: 1.1rem;
  background: #fff;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hf-trail-card:hover {
  box-shadow: 0 4px 16px rgba(45,106,79,0.12);
  transform: translateY(-2px);
}
.hf-trail-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d6a4f;
  margin: 0 0 0.4rem;
}
.hf-trail-card .hf-card-meta {
  font-size: 0.82rem;
  color: #777;
}
.hf-trail-card .hf-card-score {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f0f7f4;
  color: #2d6a4f;
}
.hf-state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.hf-state-card {
  border: 1px solid #e8ede8;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #f9fbf9;
  transition: background 0.15s;
}
.hf-state-card:hover { background: #f0f7f4; }
.hf-state-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2d6a4f;
  margin: 0 0 0.3rem;
}
.hf-state-card p { font-size: 0.82rem; color: #777; margin: 0; }

/* ── State page trail list ── */
.hf-trail-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}
.hf-trail-list li a {
  display: block;
  padding: 0.65rem 1rem;
  background: #f9fbf9;
  border: 1px solid #e8ede8;
  border-radius: 8px;
  color: #2d6a4f;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s;
}
.hf-trail-list li a:hover { background: #f0f7f4; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #e8ede8;
  margin-top: 3rem;
}
.ast-footer-copyright {
  font-size: 0.85rem !important;
  color: #999 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hf-featured-grid, .hf-state-grid { grid-template-columns: 1fr 1fr; }
  .hf-breakdown, .hf-info-grid, .hf-related ul, .hf-trail-list { grid-template-columns: 1fr; }
  .hf-hero h1 { font-size: 1.5rem; }
  .entry-title { font-size: 1.35rem !important; }
}
@media (max-width: 480px) {
  .hf-featured-grid, .hf-state-grid { grid-template-columns: 1fr; }
}
