﻿/* The WordPress post and archive templates share this outer column layout. */
.post-wrap,
.archive-grid {
  width: 80%;
  max-width: 1200px;
  grid-template-columns: minmax(0, 73.625fr) minmax(0, 20.875fr);
  gap: 5.5%;
  padding-left: 0;
  padding-right: 0;
  font: 18px/1.7 Roboto, Arial, sans-serif;
  color: #232326;
}
.post-wrap { padding-top: 36px; }
.lang-ch :is(.post-wrap, .archive-grid),
.lang-ch :is(.post-wrap, .archive-grid) {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", simsun, sans-serif;
}
.post-wrap :is(.entry-title, .recent-articles h2),
.archive-grid :is(.archive-card h2, .archive-categories, .recent-articles h2),
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content :is(h1, h2, h3, h4, h5, h6) {
  font-family: Roboto, Arial, sans-serif;
}
.post-article { padding-right: 10%; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-title {
  margin: 0;
  padding: 18px 5% 22.5px;
  color: #263780;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .post-tags {
  margin: 0 0 6px;
  padding: 18px 0 15px;
  font-size: 14px;
  line-height: 42px;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .post-tags a {
  display: inline;
  margin: 0 7px 0 0;
  padding: 9px 27px;
  background: #ffcf65;
  color: #666;
  font-size: 18px;
  font-weight: 500;
  line-height: 3;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content {
  padding: 18px 0 25px;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content p {
  margin: 0;
  padding-bottom: 1em;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  color: #263780;
  font-weight: 500;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content h1 { font-size: 1.75em; line-height: 1; padding: 18px 0 22.5px; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content h2 { font-size: 1.5em; line-height: 1.5; padding: 18px 0; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content h3 { font-size: 1.25em; line-height: 1.5; padding: 18px 0; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content figure { margin: 0; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-image { text-align: center; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .is-style-rounded img { border-radius: 9999px; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .has-text-align-center { text-align: center; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .has-text-align-right { text-align: right; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 2em;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content iframe { max-width: 100%; }

.post-wrap .recent-articles,
.archive-grid .recent-articles { font: inherit; }
.post-wrap .recent-articles h2,
.archive-grid .recent-articles h2 {
  padding: .8em 0 .625em;
  background: #1c3587;
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1;
}
.post-wrap .recent-articles li,
.archive-grid .recent-articles li { padding: .5em; }
.post-wrap .recent-articles a,
.archive-grid .recent-articles a { display: inline; padding: 0; color: #666; }

.archive-grid { padding-top: 18px; }
.archive-grid.archive-tag { padding-top: 44px; }
.archive-card,
.archive-category .archive-card {
  display: block;
  margin: 0 0 1em;
  padding: 1em 0 .5em;
  border-bottom: 1px solid #ddd;
}
.archive-category .archive-card { display: flex; }
.archive-category .archive-image { flex: 0 0 15.08%; }
.archive-tag .archive-card { padding-left: 10%; padding-right: 10%; }
.archive-card h2 {
  margin: 0;
  padding: 0 0 18px;
  color: #333;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.3;
}
.archive-image { display: block; line-height: 0; }
.archive-tag .archive-image { margin-bottom: 16px; }
.archive-card .archive-categories {
  margin: 0;
  padding: 0 0 11.25px;
  color: #1c3587;
  font-size: 19.8px;
  font-weight: 500;
  line-height: 1.5;
}
.archive-card-body > p:not(.archive-categories) {
  height: 5.18em;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 0 0 18px;
  font-size: 19.8px;
  line-height: 1.7;
}
.archive-read {
  padding: 9px 27px;
  background: #ffcf65;
  color: #1c3587;
  font-weight: 500;
  line-height: 1.7;
}
.lang-ch .archive-card h2 { font-size: 23.4px; font-weight: 600; }
.lang-ch .archive-card-body > p:not(.archive-categories) {
  height: 5.7em;
  font-size: 18px;
  line-height: 1.9;
}
@media (max-width: 980px) {
  .post-wrap,
  .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-wrap { padding-top: 46px; }
  .post-article { padding-right: 0; margin-bottom: 27px; }
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-title { padding: 0 0 22.5px; }
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .post-tags { text-align: left; }
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .post-tags a {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    line-height: 2;
  }
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content h1 { padding-top: 0; }
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-columns { flex-wrap: wrap; }
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-column,
  .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content .wp-block-column[style*="flex-basis"] { flex-basis: 100% !important; }
  .archive-grid { width: 90%; padding-top: 0; }
  .archive-grid.archive-tag { padding-top: 37px; }
  .archive-banner:has(a) .archive-container {
    width: 65%;
    margin-left: 15%;
    padding: 12px 0;
    font: 22.5px/1.7 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", simsun, sans-serif;
  }
  .archive-container:has(> .archive-heading) { width: 70%; }
  .archive-heading { margin: 0; padding: 0 0 22.5px; font: 700 30.06px/1.2 Roboto, Arial, sans-serif; }
  .archive-card,
  .archive-category .archive-card,
  .archive-tag .archive-card {
    display: block;
    margin: 0 0 1em;
    padding: 1em 10% .5em;
  }
}
@media (max-width: 980px) {
  .lang-en .post-wrap,
  .lang-en .archive-grid { font-size: 15px; }
  .lang-en .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-title { font-size: 30px; padding-bottom: 18.75px; }
  .lang-en .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .post-tags { padding: 15px 0; }
  .lang-en .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .post-tags a { font-size: 15px; padding: 7.5px 22.5px; }
  .lang-en .post-article:not(.builder-page):not(:has(> .entry-content > .eb-section)) .entry-content { padding-top: 15px; }
  .lang-en .archive-banner:has(a) .archive-container { padding: 9px 0; font: 18.75px/1.7 Roboto, Arial, sans-serif; }
  .lang-en .archive-heading { padding-bottom: 18.75px; font-size: 25.05px; font-weight: 500; }
  .lang-en .archive-card h2 { font-size: 22.5px; padding-bottom: 15px; }
  .lang-en .archive-card .archive-categories { font-size: 16.5px; padding-bottom: 9.375px; }
  .lang-en .archive-card-body > p:not(.archive-categories) { font-size: 16.5px; padding-bottom: 15px; margin-bottom: 15px; }
  .lang-en .archive-read { padding: 7.5px 22.5px; }
}

/* Category archives use the theme's two-column loop; tag archives stay stacked. */
.archive-category .archive-card {
  display: grid;
  grid-template-columns: 290px minmax(0, 455px);
  column-gap: 58.5px;
  align-items: start;
  margin: 0 0 18px;
  padding: 18px 0;
  border: 0;
}
.archive-category .archive-image { flex: none; }
.archive-category .archive-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.archive-category .archive-card-body { min-width: 0; }
.archive-category .archive-card-body > .archive-excerpt { margin-bottom: 18px; }
.archive-sep { color: #d3d3d3; }
.archive-read-wrap { display: inline-block; margin-top: -13.5px; }
.archive-read { display: inline-block; border-radius: 9px; text-decoration: none; }
.archive-card .archive-read-wrap { padding: 0; }
.paginate-links { padding: 18px 0 90px; line-height: 3; text-align: center; font-size: 18px; font-weight: 500; }
.paginate-links .page-numbers {
  display: inline-block;
  margin-right: 18px;
  padding: 9px 13.5px;
  border: 1px solid #1d3580;
  border-radius: 9px;
  color: #1d3580;
  line-height: 1.7;
  text-decoration: none;
}
.paginate-links .page-numbers.current { border-color: #808080; color: #808080; }
.paginate-links .page-numbers.dots,
.paginate-links .page-numbers.prev,
.paginate-links .page-numbers.next { border: 0; }
@media (max-width: 980px) {
  .archive-category .archive-card { grid-template-columns: minmax(0, 1fr); row-gap: 15px; padding: 15px 0; }
  .archive-category .archive-card,
  .archive-category .archive-card { margin-bottom: 15px; }
  .paginate-links { font-size: 15px; padding: 15px 0 75px; }
  .paginate-links .page-numbers { padding: 7.5px 11.25px; margin-right: 15px; }
}

.primary-nav a.is-current { color: #263780; }

.entry-content .wp-block-image img { width: 100%; height: auto; }
.entry-content .wp-block-image.is-resized img { width: auto; max-width: 100%; }

.post-article .puti_post_tags { padding: 36px 0 0; font-size: 19.8px; font-weight: 500; line-height: 30.6px; }
.post-article .puti_post_tags a { display: inline; padding: 0 18px 0 0; color: #1c3587; text-decoration: none; }

.post-article .puti_post_tags { text-align: center; padding-bottom: 1rem; }

@media (max-width: 800px) { .archive-grid { padding-bottom: 58px; } }
