/*
 * Shared single/page safety styles.
 * Most legacy templates still carry their own critical CSS; this file exists
 * to prevent missing-asset 404s and hold non-invasive shared defaults.
 */

.screen-reader-text:focus,
.skip-link:focus {
  clip: auto;
  clip-path: none;
  display: block;
  height: auto;
  left: 12px;
  padding: 10px 14px;
  position: absolute;
  top: 12px;
  width: auto;
  z-index: 100000;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  text-decoration: none;
}

#tzp-main-content {
  display: block;
  height: 0;
  overflow: hidden;
}

.entry-content img,
.tzp-content img {
  max-width: 100%;
  height: auto;
}

body,
html,
body.single-post {
  background-color: #ffffff;
}

body.single-post .site-content,
body.single-post .ast-separate-container .site-content,
body.single-post .ast-container,
body.single-post .content-area,
body.single-post .site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.single-post .ast-single-post-header,
body.single-post .entry-header {
  display: none;
}

.tzp-reading-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 20px 56px;
  box-sizing: border-box;
  background: #ffffff;
}

.tzp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 15px;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.tzp-breadcrumb a {
  color: #d7261b;
  text-decoration: none;
}

.tzp-breadcrumb a:hover {
  text-decoration: underline;
}

.tzp-breadcrumb .sep {
  color: #cbd5e1;
}

.tzp-breadcrumb .current {
  color: #94a3b8;
}

.tzp-title {
  margin: 0 0 15px;
  font-size: 1.8rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
  word-break: break-word;
}

.tzp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 30px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.tzp-meta a {
  color: #d7261b;
  text-decoration: none;
  font-weight: 600;
}

.tzp-content {
  color: #334155;
  line-height: 1.9;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tzp-content p {
  margin-bottom: 1.5em;
}

.tzp-content h2 {
  font-size: 1.35rem;
  margin: 2em 0 1em;
  border-left: 4px solid #d7261b;
  padding-left: 12px;
  color: #0f172a;
  font-weight: 800;
}

.tzp-content h3 {
  font-size: 1.15rem;
  margin: 1.5em 0 0.8em;
  color: #0f172a;
  font-weight: 700;
}

.tzp-content a {
  color: #d7261b;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.tzp-content figure,
.tzp-content .wp-block-image,
.tzp-content img {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 30px auto;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 8px;
}

.tzp-content figure img,
.tzp-content .wp-block-image img {
  max-width: 100%;
  margin: 0 auto;
}

.tzp-content figcaption,
.tzp-content .wp-caption-text {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
  border: 0;
  background: transparent;
}

.tzp-content table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin: 2rem 0;
}

.tzp-content table th,
.tzp-content table td {
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  text-align: left;
}

.tzp-content table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.tzp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.tzp-tags a {
  padding: 5px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.2s;
}

.tzp-tags a:hover {
  background: #d7261b;
  color: #ffffff;
}

.tzp-notice {
  margin-top: 40px;
  padding: 20px;
  background: #fffbe6;
  border-left: 4px solid #faad14;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.tzp-notice strong {
  display: block;
  color: #111111;
  margin-bottom: 8px;
}

.tzp-notice small {
  display: block;
}

.tzp-notice a {
  color: #d7261b;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 700;
}

.tzp-copyright {
  margin: 14px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.tzp-related {
  margin-top: 50px;
  padding-top: 35px;
  border-top: 2px solid #f1f5f9;
}

.tzp-related h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 15px;
}

.tzp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tzp-card {
  background: transparent;
  transition: transform 0.2s;
  border: 0;
  box-shadow: none;
}

.tzp-card:hover {
  transform: translateY(-3px);
}

.tzp-card img {
  width: 100%;
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tzp-card-body {
  padding: 12px 0;
}

.tzp-card h3 {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
  min-height: 2.9em;
  overflow: hidden;
  color: #1e293b;
  font-weight: 700;
}

.tzp-card a {
  text-decoration: none;
}

.tzp-card a:hover h3 {
  color: #d7261b;
}

.tzp-related-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  border-radius: 8px;
}

.tzp-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
}

.tzp-post-nav > div {
  flex: 1;
  max-width: 48%;
}

.tzp-post-nav .nav-next {
  text-align: right;
}

.tzp-post-nav a {
  color: #0f172a;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.tzp-post-nav a:hover {
  color: #d7261b;
}

@media (max-width: 768px) {
  .tzp-reading-container {
    padding: 8px 15px 36px;
  }

  .tzp-title {
    font-size: 1.45rem;
  }

  .tzp-content h2 {
    font-size: 1.25rem;
  }

  .tzp-content h3 {
    font-size: 1.1rem;
  }

  .tzp-content figure,
  .tzp-content .wp-block-image,
  .tzp-content img {
    max-width: 100%;
    margin: 20px auto;
  }

  .tzp-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tzp-card img {
    height: 100px;
  }

  .tzp-post-nav {
    flex-direction: column;
    gap: 15px;
  }

  .tzp-post-nav > div {
    max-width: 100%;
  }

  .tzp-post-nav .nav-next {
    text-align: left;
  }
}
