.tof-article-subtitle {
  margin: 14px 0 0;
  color: var(--tof-blue);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.65;
}

.tof-article-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--tof-text);
  font-size: 17px;
  line-height: 1.9;
}

.tof-tag-list,
.tof-tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tof-tag-list li,
.tof-tech-tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--tof-line);
  border-radius: 8px;
  background: #eef6ff;
  color: var(--tof-blue);
  font-size: 13px;
  font-weight: 800;
}

.tof-tech-tag-list li small {
  color: var(--tof-muted);
  font-size: 11px;
  font-weight: 700;
}

.tof-tag-list--card,
.tof-tech-tag-list--card {
  margin-top: 12px;
}

.tof-tag-list--card li,
.tof-tech-tag-list--card li {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
}

.tof-entry-content h2,
.tof-entry-content h3 {
  scroll-margin-top: 110px;
}

.tof-entry-content h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tof-line);
}

.tof-entry-content ul,
.tof-entry-content ol {
  padding-left: 1.4em;
}

.tof-entry-content li + li {
  margin-top: 8px;
}

.tof-entry-content img,
.tof-entry-content video,
.tof-entry-content iframe {
  max-width: 100%;
}

.tof-entry-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: #081d3c;
  color: #fff;
  line-height: 1.8;
}

.tof-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.tof-entry-content th,
.tof-entry-content td {
  padding: 12px;
  border: 1px solid var(--tof-line);
  vertical-align: top;
}

.tof-entry-content th {
  background: #f3f8ff;
  color: var(--tof-navy);
}

.tof-download-files,
.tof-related-links,
.tof-video-section,
.tof-article-gallery,
.tof-tech-section,
.tof-testimonials,
.tof-content-cta,
.tof-author-box,
.tof-related-block {
  margin-top: 48px;
}

.tof-related-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tof-related-link-card {
  display: block;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tof-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  box-shadow: 0 12px 28px rgba(0, 48, 108, 0.07);
}

.tof-related-link-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--tof-blue);
  font-size: 12px;
  font-weight: 800;
}

.tof-related-link-card strong {
  display: block;
  color: var(--tof-navy);
  font-size: 18px;
  line-height: 1.55;
}

.tof-related-link-card p {
  margin: 10px 0 0;
  color: var(--tof-muted);
  line-height: 1.8;
}

.tof-related-link-card small {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--tof-muted);
  font-size: 12px;
}

.tof-video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #061a36;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 42px rgba(0, 48, 108, 0.12);
}

.tof-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tof-gallery-grid {
  align-items: stretch;
}

.tof-gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.tof-case-detail {
  display: grid;
  gap: 16px;
}

.tof-case-detail section {
  position: relative;
  padding: 24px;
  border: 1px solid var(--tof-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 48, 108, 0.07);
}

.tof-case-detail h2 {
  margin: 0 0 10px;
  color: var(--tof-navy);
  font-size: 21px;
}

.tof-case-detail p {
  margin: 0;
  color: var(--tof-text);
  line-height: 1.9;
}

.tof-case-detail small {
  display: block;
  margin-top: 12px;
  color: var(--tof-muted);
  line-height: 1.7;
}

.tof-testimonial-grid {
  display: grid;
  gap: 16px;
}

.tof-testimonial-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--tof-line);
  border-radius: 8px;
  background: #fff;
}

.tof-testimonial-card blockquote {
  margin: 0;
  color: var(--tof-text);
  line-height: 1.9;
}

.tof-testimonial-card figcaption {
  margin-top: 14px;
  color: var(--tof-muted);
  font-size: 13px;
  font-weight: 700;
}

.tof-author-box__item + .tof-author-box__item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--tof-line);
}

.tof-author-box__item span {
  display: block;
  margin-bottom: 6px;
  color: var(--tof-blue);
  font-size: 12px;
  font-weight: 800;
}

.tof-author-box__item strong {
  display: block;
  color: var(--tof-navy);
}

.tof-author-box__item p {
  margin: 8px 0 0;
}

.tof-post-card a > img,
.tof-case-card > img,
.tof-column-card img {
  display: block;
}

.tof-post-card a:not(:has(img)),
.tof-case-card:not(:has(img)),
.tof-column-card a:not(:has(img)) {
  padding-top: 24px;
}

@media (max-width: 1024px) {
  .tof-related-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tof-article-subtitle {
    font-size: 18px;
  }

  .tof-article-lead {
    font-size: 15px;
  }

  .tof-entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tof-download-files,
  .tof-related-links,
  .tof-video-section,
  .tof-article-gallery,
  .tof-tech-section,
  .tof-testimonials,
  .tof-content-cta,
  .tof-author-box,
  .tof-related-block {
    margin-top: 36px;
  }

  .tof-case-detail section,
  .tof-related-link-card,
  .tof-testimonial-card {
    padding: 20px;
  }
}
