/*
Theme Name: tsuguroco_child_v1
Version: 1.0
Template: tsuguroco
*/

.post-content > * + * {
  margin-top: 1.5rem;
}

.post-content p {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #334155;
}

.post-content h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 639px) {
  .post-content h2 {
    font-size: 1.1rem;
  }

  .post-content ul > li,
  .post-content ol > li {
    padding: 0.5rem 0.85rem;
  }

  body .post-content ol > li {
    padding-left: 1.4rem;
  }

  .post-content ol > li::before {
    left: 0.7rem;
    width: 0.8rem;
    height: 0.8rem;
    font-size: 0.6rem;
  }
}

.post-content h3 {
  margin-top: 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.post-content ul,
.post-content ol {
  margin-top: 1.75rem;
  padding-left: 0;
  color: #334155;
}

.post-content ul {
  list-style: none;
}

.post-content ul > li,
.post-content ol > li {
  border-radius: 0.7rem;
  background: rgba(249, 115, 22, 0.02);
  padding: 0.65rem 1rem;
}

.post-content ol > li {
  position: relative;
  padding-left: 1.75rem;
}

.post-content ul > li + li,
.post-content ol > li + li {
  margin-top: 0.55rem;
}

.post-content ol {
  list-style: none;
  counter-reset: postcontent-ol;
}

.post-content ol > li::before {
  content: counter(postcontent-ol);
  counter-increment: postcontent-ol;
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid rgba(249, 115, 22, 0.45);
  color: rgba(249, 115, 22, 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: rgba(249, 115, 22, 0.05);
}

.post-content ul ul,
.post-content ul ol,
.post-content ol ul,
.post-content ol ol {
  margin-top: 0.5rem;
  padding-left: 1.3rem;
}

.post-content ul ul > li,
.post-content ul ol > li,
.post-content ol ul > li,
.post-content ol ol > li {
  background: transparent;
  padding-left: 1rem;
}

.post-content blockquote {
  margin-top: 2rem;
  border-left: 4px solid #f97316;
  background: rgba(249, 115, 22, 0.08);
  padding: 1.5rem;
  border-radius: 1rem;
  color: #7c2d12;
}

.post-content a {
  color: #ea580c;
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.4);
}

.post-content {
  overflow-wrap: anywhere;
}

.post-content img,
.post-content figure {
  margin-top: 2.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  max-width: 100%;
}

.post-content img {
  height: auto;
  display: block;
}

.post-content iframe,
.post-content video,
.post-content embed,
.post-content object {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
}

.post-content table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow-x: auto;
  display: block;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.post-content table th,
.post-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.post-content table th {
  background: rgba(249, 115, 22, 0.08);
  font-weight: 600;
}

/* prevent visited links from turning purple on standard text links */
a:not([class*="bg-"]):visited {
  color: inherit;
}

a[class*="bg-primary"] {
  color: #ffffff !important;
}

a[class*="bg-primary"]:visited,
a[class*="bg-primary"]:active,
a[class*="bg-primary"]:focus,
a[class*="bg-primary"]:hover {
  color: #ffffff !important;
}

/* soften default border radius scale for a slightly sharper look */
.rounded-3xl {
  border-radius: 0.9rem !important;
}

.rounded-2xl {
  border-radius: 0.7rem !important;
}

.rounded-xl {
  border-radius: 0.5rem !important;
}

.rounded-lg {
  border-radius: 0.35rem !important;
}

.rounded-md {
  border-radius: 0.25rem !important;
}

#news .clamp-2,
#latest-posts .clamp-2,
#latest-posts-archive .clamp-2 {
  font-size: 0.9rem;
  line-height: 1.35;
}

#archiveGrid .clamp-2 {
  font-size: 0.875rem;
  line-height: 1.35;
}

#latest-posts article,
#latest-posts-archive article {
  margin: 0;
}

#spots h3.clamp-2 {
  font-size: 1rem;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  #spots h3.clamp-2 {
    font-size: 0.875rem;
    line-height: 1.35;
  }
}

#features .clamp-2,
#spots .clamp-1,
#videos .clamp-2 {
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  #news .clamp-2,
  #latest-posts .clamp-2,
  #latest-posts-archive .clamp-2,
  #archiveGrid .clamp-2 {
    font-size: 0.85rem;
    line-height: 1.35;
  }
  #features .clamp-2,
  #spots .clamp-1,
  #videos .clamp-2 {
    font-size: 0.85rem;
    line-height: 1.35;
  }
}
