/*
Theme Name: True Skies Theme
Theme URI: https://www.true-skies.online/
Author: NextPuls Digital
Description: TailwindCSS-basiertes Editorial-Magazin-Theme für True Skies.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 7.0
Text Domain: true-skies-theme
*/

html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* WordPress / Gutenberg article typography in the uploaded True Skies article style */
.ts-article-content {
  color: #17130f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: min(1180px, calc(100% - 32px)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ts-article-content > *:first-child { margin-top: 0; }
.ts-article-content p {
  margin: 0 0 1.55rem;
  color: #2f2923;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.9;
}
.ts-article-content h2 {
  margin: 3.3rem 0 1.1rem;
  color: #17130f;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 950;
}
.ts-article-content h3 {
  margin: 2.6rem 0 1rem;
  color: #17130f;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 950;
}
.ts-article-content h4,
.ts-article-content h5,
.ts-article-content h6 {
  margin: 2.2rem 0 .85rem;
  color: #17130f;
  font-weight: 900;
  letter-spacing: -.03em;
}
.ts-article-content a {
  color: #8b5e13;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ts-article-content blockquote {
  margin: 3rem 0;
  padding: 2rem 0 2rem 2rem;
  border-left: 5px solid #b88924;
  color: #17130f;
}
.ts-article-content blockquote p {
  margin: 0;
  color: #17130f;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: -.025em;
}
.ts-article-content cite {
  display: block;
  margin-top: 1rem;
  color: #827568;
  font-size: .85rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ts-article-content figure {
  margin: 3rem 0;
}
.ts-article-content figure img,
.ts-article-content .wp-block-image img {
  width: 100%;
  display: block;
  box-shadow: 0 24px 70px rgba(28, 22, 16, .16);
}
.ts-article-content figcaption,
.ts-article-content .wp-element-caption {
  margin-top: .8rem;
  color: #766a5f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .86rem;
  line-height: 1.55;
}
.ts-article-content ul,
.ts-article-content ol {
  margin: 0 0 1.6rem 1.3rem;
  color: #2f2923;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.85;
}
.ts-article-content li { margin-bottom: .45rem; }
.ts-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 22, 16, .08);
}
.ts-article-content td,
.ts-article-content th {
  border: 1px solid rgba(23, 19, 15, .12);
  padding: .9rem 1rem;
  text-align: left;
  vertical-align: top;
}
.ts-article-content th {
  background: #efe2ce;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.ts-article-content .wp-block-embed {
  margin: 3rem 0;
}
.ts-article-content .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}
.ts-article-content iframe {
  width: 100%;
  height: 100%;
}

/* Cast cards: keep portraits clean and avoid broken oversized images */
.ts-article-content .not-prose img,
.ts-article-content [class*="grid-cols"] img {
  object-fit: cover;
}

/* Alien single source cards - mobile first */
.single-ts_alien .ts-article-content h2 + .true-skies-sources,
.single-ts_alien .ts-article-content .true-skies-sources {
  counter-reset: ts-source-counter;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: .85rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 1.25rem 0 2.8rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(216, 181, 102, .20) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #17130f 0%, #221a13 55%, #100d0a 100%) !important;
  box-shadow: 0 20px 55px rgba(28, 22, 16, .16) !important;
  list-style: none !important;
  overflow: hidden;
}
.single-ts_alien .ts-article-content h2 + .true-skies-sources::before,
.single-ts_alien .ts-article-content .true-skies-sources::before {
  content: "Redaktionelle Quellen";
  display: block;
  margin: 0 0 .25rem;
  color: #d8b566;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.single-ts_alien .ts-article-content .true-skies-sources li {
  counter-increment: ts-source-counter;
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 1rem 1rem 1rem 3rem !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .055) !important;
  color: #e7ddcf !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: .94rem !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.single-ts_alien .ts-article-content .true-skies-sources li::before {
  content: counter(ts-source-counter, decimal-leading-zero);
  position: absolute;
  left: .9rem;
  top: 1rem;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 999px;
  background: #d8b566;
  color: #17130f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 950;
  line-height: 1;
}
.single-ts_alien .ts-article-content .true-skies-sources a {
  color: #f1d28d !important;
  text-decoration: none;
  font-weight: 850;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.single-ts_alien .ts-article-content .true-skies-sources a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* WordPress pagination cleanup */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(23, 19, 15, .16);
  padding: .65rem .9rem;
  background: rgba(255,255,255,.55);
  color: #17130f;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav-links .current,
.nav-links a:hover {
  background: #17130f;
  color: #fff;
}

@media (min-width: 720px) {
  .single-ts_alien .ts-article-content h2 + .true-skies-sources,
  .single-ts_alien .ts-article-content .true-skies-sources {
    gap: 1rem !important;
    padding: 1.35rem !important;
    border-radius: 28px !important;
  }
  .single-ts_alien .ts-article-content .true-skies-sources li {
    padding: 1.15rem 1.2rem 1.15rem 3.25rem !important;
    font-size: .98rem !important;
  }
}

@media (max-width: 780px) {
  .ts-article-content { max-width: calc(100% - 32px) !important; }
  .ts-article-content blockquote { padding-left: 1.2rem; }
  .single-ts_alien .ts-article-content h2:has(+ .true-skies-sources) {
    font-size: clamp(1.75rem, 9vw, 2.3rem);
    line-height: 1;
    margin-top: 2.4rem;
  }
}
