/**
 * Block/classic editor content inside Sunwin sub-page shell (.sunwin-wp-entry).
 */
.sunwin-wp-entry .sunwin-wp-content {
  color: #f5e6c8;
  font-size: 0.9375rem;
  line-height: 1.75;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sunwin-wp-entry .sunwin-wp-content > *:first-child {
  margin-top: 0;
}

.sunwin-wp-entry .sunwin-wp-content > *:last-child {
  margin-bottom: 0;
}

.sunwin-wp-entry .sunwin-wp-content h1,
.sunwin-wp-entry .sunwin-wp-content h2,
.sunwin-wp-entry .sunwin-wp-content h3,
.sunwin-wp-entry .sunwin-wp-content h4 {
  color: #ffd77a;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.35em;
  margin-bottom: 0.55em;
}

.sunwin-wp-entry .sunwin-wp-content h1 {
  font-size: 1.35rem;
}

.sunwin-wp-entry .sunwin-wp-content h2 {
  font-size: 1.2rem;
}

.sunwin-wp-entry .sunwin-wp-content h3 {
  font-size: 1.08rem;
}

.sunwin-wp-entry .sunwin-wp-content h4 {
  font-size: 1rem;
}

.sunwin-wp-entry .sunwin-wp-content p {
  margin: 0 0 1em;
}

.sunwin-wp-entry .sunwin-wp-content a {
  color: #ffe5b7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sunwin-wp-entry .sunwin-wp-content a:hover {
  color: #fff;
}

.sunwin-wp-entry .sunwin-wp-content ul,
.sunwin-wp-entry .sunwin-wp-content ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.sunwin-wp-entry .sunwin-wp-content li {
  margin-bottom: 0.35em;
}

.sunwin-wp-entry .sunwin-wp-content img,
.sunwin-wp-entry .sunwin-wp-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sunwin-wp-entry .sunwin-wp-content figure {
  margin: 1em 0;
}

.sunwin-wp-entry .sunwin-wp-content figcaption {
  font-size: 0.85em;
  opacity: 0.85;
  margin-top: 0.5em;
}

.sunwin-wp-entry .sunwin-wp-content blockquote {
  margin: 1em 0;
  padding: 0.75em 1em;
  border-left: 3px solid rgba(201, 162, 39, 0.85);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 8px 8px 0;
}

.sunwin-wp-entry .sunwin-wp-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}

.sunwin-wp-entry .sunwin-wp-content th,
.sunwin-wp-entry .sunwin-wp-content td {
  border: 1px solid rgba(255, 213, 122, 0.28);
  padding: 0.5em 0.65em;
  text-align: left;
  vertical-align: top;
}

.sunwin-wp-entry .sunwin-wp-content th {
  background: rgba(0, 0, 0, 0.25);
  color: #ffd77a;
}

.sunwin-wp-entry .sunwin-wp-content pre,
.sunwin-wp-entry .sunwin-wp-content code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
}

.sunwin-wp-entry .sunwin-wp-content pre {
  overflow-x: auto;
  padding: 0.85em 1em;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 213, 122, 0.15);
}

.sunwin-wp-entry .sunwin-wp-content .wp-block-separator {
  border: none;
  border-top: 1px solid rgba(255, 213, 122, 0.25);
  margin: 1.5em 0;
}

.sunwin-wp-entry .sunwin-wp-content .alignwide,
.sunwin-wp-entry .sunwin-wp-content .alignfull {
  max-width: 100%;
}

.sunwin-wp-entry .sunwin-wp-paging {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 213, 122, 0.2);
  font-size: 0.9em;
}

.sunwin-wp-entry .sunwin-wp-paging a {
  color: #ffe5b7;
}

/* --- Blog / archive / single (Sunwin) --- */
.sunwin-post-header {
  margin-bottom: 1.25rem;
}

.sunwin-post-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 213, 122, 0.75);
}

.sunwin-post-title.sub-title01 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.sunwin-post-meta {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.82);
  line-height: 1.5;
}

.sunwin-post-meta a {
  color: #ffe5b7;
  text-decoration: underline;
}

.sunwin-post-meta-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.sunwin-post-featured {
  margin: 0 0 1.35rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 122, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.sunwin-post-featured-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.sunwin-post-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 213, 122, 0.2);
}

@media (max-width: 600px) {
  .sunwin-post-adjacent {
    grid-template-columns: 1fr;
  }
}

.sunwin-post-adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 213, 122, 0.18);
  text-decoration: none;
  color: #f5e6c8;
  transition: border-color 0.2s, background 0.2s;
}

.sunwin-post-adjacent-link:hover {
  border-color: rgba(255, 213, 122, 0.45);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}

.sunwin-post-adjacent-next {
  text-align: right;
}

.sunwin-post-adjacent-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 213, 122, 0.85);
}

.sunwin-post-adjacent-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffe5b7;
}

.sunwin-archive-header {
  margin-bottom: 1.5rem;
}

.sunwin-archive-sub {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.88);
}

.sunwin-archive-desc {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.sunwin-archive-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 213, 122, 0.25);
}

.sunwin-archive-empty .search-form {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.sunwin-archive-empty input[type="search"] {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 213, 122, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #f5e6c8;
  min-width: 200px;
}

.sunwin-archive-empty input[type="submit"],
.sunwin-archive-empty button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #c9a227;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.35), rgba(0, 0, 0, 0.2));
  color: #fff;
  cursor: pointer;
}

.sunwin-post-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sunwin-post-card-link {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 213, 122, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

@media (max-width: 520px) {
  .sunwin-post-card-link {
    grid-template-columns: 1fr;
  }
}

.sunwin-post-card-link:hover {
  border-color: rgba(255, 213, 122, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.sunwin-post-card-media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  min-height: 88px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 213, 122, 0.12);
}

.sunwin-post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 88px;
}

.sunwin-post-card-placeholder {
  display: block;
  width: 100%;
  min-height: 88px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(0, 0, 0, 0.4));
}

.sunwin-post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.sunwin-post-card-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 213, 122, 0.75);
}

.sunwin-post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffd77a;
}

.sunwin-post-card-excerpt {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(245, 230, 200, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sunwin-pagination-wrap {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 213, 122, 0.18);
}

.sunwin-pagination-wrap .navigation,
.sunwin-pagination-wrap nav.navigation {
  display: flex;
  justify-content: center;
}

.sunwin-pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.sunwin-pagination-wrap a.page-numbers,
.sunwin-pagination-wrap span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid rgba(255, 213, 122, 0.22);
  color: #ffe5b7;
  background: rgba(0, 0, 0, 0.25);
}

.sunwin-pagination-wrap a.page-numbers:hover {
  border-color: rgba(255, 213, 122, 0.5);
  color: #fff;
}

.sunwin-pagination-wrap span.page-numbers.current {
  background: rgba(201, 162, 39, 0.35);
  border-color: rgba(255, 213, 122, 0.45);
  color: #fff;
  font-weight: 700;
}

.sunwin-pagination-wrap span.page-numbers.dots {
  border: none;
  background: transparent;
  color: rgba(245, 230, 200, 0.5);
}

/* Comments inside Sunwin single */
.sunwin-post-comments {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 213, 122, 0.2);
}

.sunwin-post-comments #comments,
.sunwin-post-comments .comments-area {
  color: #f5e6c8;
}

.sunwin-post-comments .comment-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.sunwin-post-comments .comment-body {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 213, 122, 0.12);
}

.sunwin-post-comments .comment-meta,
.sunwin-post-comments .comment-author {
  font-size: 0.85rem;
}

.sunwin-post-comments .comment-meta a {
  color: #ffe5b7;
}

.sunwin-post-comments textarea,
.sunwin-post-comments input[type="text"],
.sunwin-post-comments input[type="email"],
.sunwin-post-comments input[type="url"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 213, 122, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #f5e6c8;
}

.sunwin-post-comments .form-submit input,
.sunwin-post-comments input[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #c9a227;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.4), rgba(0, 0, 0, 0.25));
  color: #fff;
  cursor: pointer;
}
