/*
Theme Name: TemRadar
Theme URI: https://temradar.site
Description: Minimal child theme for the TemRadar MVP.
Author: TemRadar
Template: twentytwentyfive
Version: 1.4.0
Text Domain: temradar
*/

.temradar-home {
  padding: 0 24px 80px;
}

.temradar-header-shell {
  padding: 24px;
}

.temradar-header {
  min-height: 44px;
}

.temradar-header .wp-block-site-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.temradar-header .wp-block-site-title a {
  text-decoration: none;
}

.temradar-header-categories .wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.temradar-header-categories {
  font-size: 0.92rem;
}

.temradar-header-categories .wp-block-navigation-item {
  margin: 0;
}

.temradar-header-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #26342e;
  text-decoration: none;
}

.temradar-header-categories a:hover,
.temradar-header-categories a:focus-visible {
  background: #edf7f2;
  color: #1f604a;
}

.temradar-home-intro {
  margin-top: 56px;
  margin-bottom: 48px;
  padding: 54px 32px;
  border-radius: 28px;
  background: #f3f6f4;
  text-align: center;
}

.temradar-eyebrow {
  margin: 0 0 12px;
  color: #28745a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.temradar-home-title {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.temradar-home-description {
  margin: 0 auto;
  max-width: 620px;
  color: #54615c;
  font-size: 1.05rem;
  line-height: 1.7;
}

.temradar-search {
  margin: 28px auto 0;
  max-width: 560px;
}

.temradar-search .wp-block-search__inside-wrapper {
  padding: 5px;
  border: 1px solid #d9e1dd;
  border-radius: 14px;
  background: #fff;
}

.temradar-search .wp-block-search__input {
  border: 0;
  border-radius: 10px;
}

.temradar-search .wp-block-search__button {
  border-radius: 10px;
  background: #17211d;
}

.temradar-post-grid .wp-block-post-template {
  gap: 24px;
}

.temradar-post-grid {
  margin-top: 56px;
}

.temradar-footer,
.temradar-footer p {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.temradar-card {
  box-sizing: border-box;
  height: 100%;
  padding: 22px;
  border: 1px solid #e1e6e3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 42, 34, 0.05);
}

.temradar-card-image {
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 13px;
  background: #eef2f0;
}

.temradar-card-image img {
  width: 100%;
  object-fit: cover;
}

.temradar-card-category {
  margin: 0 0 10px;
  color: #28745a;
  font-size: 0.78rem;
  font-weight: 700;
}

.temradar-card-category a {
  color: inherit;
  text-decoration: none;
}

.temradar-card-title {
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.temradar-card-title a {
  text-decoration: none;
}

.temradar-card-title a:hover,
.temradar-card-title a:focus-visible {
  color: #28745a;
}

.temradar-card-excerpt {
  color: #626d68;
  font-size: 0.93rem;
  line-height: 1.65;
}

.temradar-card-excerpt .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.temradar-card-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #edf0ee;
  color: #7a837f;
  font-size: 0.82rem;
}

.temradar-read-more {
  color: #26342e;
  font-weight: 700;
  text-decoration: none;
}

.temradar-affiliate-disclosure {
  padding: 12px 14px;
  border-left: 3px solid #8aa99b;
  background: #f4f7f5;
  color: #34473e;
  font-weight: 600;
}

.temradar-klook-widget {
  width: 100%;
  margin: 24px auto;
  overflow-x: auto;
}

.temradar-klook-widget iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.temradar-pagination {
  margin-top: 48px;
}

.temradar-pagination a,
.temradar-pagination .page-numbers {
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
}

.temradar-pagination .current {
  background: #17211d;
  color: #fff;
}

@media (max-width: 900px) {
  .temradar-post-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .temradar-home {
    padding-right: 18px;
    padding-left: 18px;
  }

  .temradar-home-intro {
    margin-top: 28px;
    padding: 38px 20px;
    border-radius: 20px;
  }

  .temradar-header-shell {
    padding: 16px 18px;
  }

  .temradar-header {
    align-items: flex-start;
  }

  .temradar-header-categories a {
    min-height: 34px;
    padding: 5px 9px;
    font-size: 0.88rem;
  }

  .temradar-post-grid {
    margin-top: 40px;
  }

  .temradar-post-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .temradar-latest-heading {
    align-items: flex-start;
  }
}
