.content-panel,
.article-panel {
  padding: 22px;
}

.content-panel.card,
.article-panel.card {
  border-radius: var(--article-card-radius, 18px);
}

.site-shell {
  width: min(980px, calc(100% - 32px));
}

main.site-shell {
  padding-top: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 199, 85, 0.12);
  color: #058043;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.content-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section-stack {
  display: grid;
  gap: 18px;
  padding: 20px 0 48px;
}

.blog-page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.25;
  text-align: center;
}

.blog-list {
  display: grid;
  gap: 14px;
  touch-action: pan-y;
}

.blog-list-item {
  display: grid;
  grid-template-columns: minmax(112px, 40%) 1fr;
  align-items: center;
  gap: 12px;
  min-height: 118px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.blog-list-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #dbe5f5;
}

.blog-list-image-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.blog-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-meta-item,
.article-meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.blog-meta-item i,
.article-meta-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  box-sizing: border-box;
  color: #98a2b3;
  font-size: 0.7rem;
  line-height: 1;
}

.blog-list-read-more {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 999px;
  color: var(--panel);
  text-decoration: none;
  background: rgb(216, 62, 35);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.article-meta-item {
  min-height: 24px;
  font-size: 0.82rem;
}

.blog-list-title {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.95rem, 4.1vw, 1.18rem);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-list-title a {
  text-decoration: none;
}

.article-meta,
.line-comment-date {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-title {
  margin: 0;
  line-height: 1.1;
}

.article-content,
.line-comment-content,
.empty-state {
  color: var(--muted);
  line-height: 1.8;
}

.line-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  width: 10px;
  min-width: 10px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next,
.blog-pagination .page-numbers.dots {
  display: none;
}

.blog-pagination .page-numbers::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ptt-blue-dark);
}

.blog-pagination .page-numbers.current {
  width: 10px;
  background: transparent;
}

.blog-pagination .page-numbers.current::before {
  background: white;
}

.blog-pagination .page-numbers:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.article-panel,
.comment-panel {
  margin-bottom: 24px;
}

.article-title {
  margin-top: 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-panel-simple {
  padding: 28px 28px 32px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: var(--article-card-radius, 18px);
  background: #fff;
  box-shadow: none;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ptt-blue);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.article-back-link::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("https://line-pttgroup.com/wp-content/uploads/2026/08/Arrow-back.png")
    center / contain no-repeat;
  flex: 0 0 24px;
}

.article-back-link:hover {
  color: var(--ptt-blue-dark);
}

.article-title-simple {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(1.5rem, 4.4vw, 2.9rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.article-content-simple {
  display: flow-root;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.95;
}

.article-content-simple a {
  overflow-wrap: anywhere;
}

.article-content-simple > :first-child {
  margin-top: 0;
}

.article-content-simple img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  box-sizing: border-box;
}

.article-content-simple p,
.article-content-simple ul,
.article-content-simple ol,
.article-content-simple blockquote {
  margin: 0 0 18px;
}

.article-content-simple figure {
  max-width: 100%;
  margin: 24px auto;
  box-sizing: border-box;
}

.article-content-simple .alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.article-content-simple .alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

.article-content-simple .aligncenter {
  display: block;
  float: none;
  margin-right: auto;
  margin-left: auto;
}

.article-content-simple .alignnone {
  margin-right: 0;
  margin-left: 0;
}

.article-content-simple > *:has(input[type="button"]),
.article-content-simple > *:has(input[type="submit"]),
.article-content-simple > *:has(button):not(.wp-video) {
  display: none !important;
}

@media (max-width: 480px) {
  .article-content-simple .wp-video {
    width: min(100%, 360px) !important;
    max-width: 100%;
    margin: 24px auto;
  }

  .article-content-simple .wp-video .mejs-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
  }

  .article-content-simple .wp-video video {
    width: 100% !important;
    height: auto !important;
  }

  .article-content-simple .alignleft,
  .article-content-simple .alignright {
    display: block;
    float: none;
    margin: 24px auto;
  }
}

.article-social-bar {
  display: flex;
  justify-content: flex-start;
  width: fit-content;
  margin-top: 26px;
  padding: 0 6px;
  border-radius: 4px;
  background: transparent;
}

.article-social-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.article-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: auto;
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #3f3f46;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.article-social-button i {
  font-size: 1.1rem;
  transform-origin: center;
}

.article-like-count {
  margin-left: 4px;
  font-size: 0.8rem;
}

.article-social-button:hover {
  transform: none;
  color: #111827;
}

.article-social-button.is-liked {
  color: var(--ptt-blue);
}

.article-like-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(64, 148, 210, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.article-like-button.is-like-animating i {
  animation: like-pop 220ms ease-out;
}

.article-like-button.is-like-animating::after {
  animation: like-pulse 320ms ease-out;
}

@keyframes like-pop {
  0% {
    transform: scale(1);
  }

  55% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes like-pulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-like-button.is-like-animating i,
  .article-like-button.is-like-animating::after {
    animation: none;
  }
}

.article-comment-link {
  color: #3f3f46;
}

.article-comment-count {
  position: static;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-panel {
  padding: 28px;
  border: 1px solid rgba(16, 24, 40, 0.16);
  border-radius: var(--article-card-radius, 18px);
  background: #fff;
  box-shadow: none;
}

.line-comment-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.line-comment-list .children {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0 0 0 24px;
  list-style: none;
}

.line-comment-list .children .children {
  margin-top: 18px;
}

.line-comment-item {
  margin: 0;
}

.line-comment-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: var(--article-card-radius, 18px);
  background: #fff;
}

.line-comment-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.line-comment-avatar,
.line-comment-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.line-comment-author {
  min-width: 0;
  padding-block: 2px;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.line-comment-author.is-long {
  font-size: 0.8rem;
}

.line-comment-date {
  flex: 0 0 auto;
  padding-block: 2px;
  font-size: 0.82rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .line-comment-author {
    font-size: 0.82rem;
  }

  .line-comment-author.is-long {
    font-size: 0.74rem;
  }

  .line-comment-date {
    font-size: 0.74rem;
  }
}

.line-comment-content {
  min-width: 0;
  text-align: left;
  color: #171717;
  font-size: 0.94rem;
  line-height: 1.5;
}

.line-comment-content p {
  margin: 0;
}

.line-comment-lock {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid rgba(6, 199, 85, 0.24);
  border-radius: 18px;
  background: #f4fff7;
}

.line-comment-lock[hidden] {
  display: none;
}

.line-comment-lock-copy {
  margin: 0;
  color: #344054;
  line-height: 1.6;
}

.line-comment-lock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.comment-respond.is-line-comment-locked {
  display: none;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(16, 24, 40, 0.14);
  border-radius: 18px;
  background: #fff;
  font: inherit;
}

.comment-form-comment textarea {
  min-height: 40px;
  resize: none;
}

.comment-respond {
  margin-top: 18px;
  padding: 16px 18px;
  border: 2px solid rgba(16, 24, 40, 0.3);
  border-radius: 20px;
}

.comment-reply-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.2rem;
  line-height: 1.5;
  padding-block: 2px;
  text-rendering: optimizeLegibility;
}

@media (max-width: 480px) {
  .comment-reply-title {
    color: var(--muted);
  }
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form p {
  margin: 0;
}

.comment-form-cookies-consent {
  display: none !important;
}

.comment-form .submit {
  justify-self: start;
  min-width: 120px;
  min-height: 40px;
  padding: 8px 16px;
  background: #111827;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: none;
}

.comment-notes,
.logged-in-as {
  color: var(--muted);
}

@media (min-width: 481px) and (max-width: 1024px) {
  .content-panel,
  .article-panel {
    padding: 24px;
  }
}

@media (min-width: 1025px) {
  .article-content-simple {
    font-size: 1rem;
  }

  .article-content-simple [style*="font-size: 10pt"],
  .article-content-simple [style*="font-size:10pt"] {
    font-size: inherit !important;
  }

  .article-content-simple .wp-video .mejs-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .article-content-simple .wp-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .article-panel-simple {
    padding: 36px 48px 40px;
  }

  .comment-panel {
    padding: 30px 32px;
  }

  .line-comment-card {
    padding: 14px 18px;
  }

  .line-comment-author {
    font-size: 0.86rem;
  }

  .line-comment-author.is-long {
    font-size: 0.78rem;
  }

  .line-comment-date {
    font-size: 0.78rem;
  }

  .line-comment-content {
    font-size: 0.9rem;
  }
}
