:root {
  --lm-body-bg: rgb(255, 255, 255);
  --lm-body-text: #111315;
  --lm-hero-bg: #003865;
  --lm-sec-bg: #fbfbfb;
  --lm-sec-border: #d6d6d6;
  --lm-meta-text: #fff;
  --lm-post-title: #ef5b0c;
  --lm-acc-1: rgb(50, 181, 121);
  --lm-acc-2: rgb(245, 245, 247);
  --lm-acc-3: rgba(19, 148, 125, 0.1);
  --lm-acc-6: rgb(151, 152, 159);
  --lm-toc-border: #e8e8ea;
}

body {
  background-color: var(--lm-body-bg);
}

body,
button,
input,
select,
textarea {
  font-size: 18px;
}

.content-main h2 {
  font-size: 1.7em;
}

.content-main h3 {
  font-size: 1.5em;
}

.content-main h4 {
  font-size: 1.4em;
}

.content-main h5 {
  font-size: 1.3em;
}

.content-main h6 {
  font-size: 1.2em;
}

.top-section,
.hero-section,
.content-section,
.archive-section {
  width: 100%;
  margin: 0;
  letter-spacing: 0.04em;
}

figure {
  margin-top: 1em;
  margin-bottom: 1.5em;
  line-height: 0;
}

figcaption {
  margin-top: 0.4em;
  font-size: 0.8em;
  line-height: 1.2em;
}

.top-section {
  background-color: var(--lm-sec-bg);
}

.top-section-inner {
  width: 100%;
  max-width: 1100px;
  padding: 12px 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 40px;
}

.top-section-breadcrumbs {
  display: flex;
  align-items: center;
}

.top-section-breadcrumbs p {
  color: var(--lm-body-text);
  font-size: 14px;
  line-height: 1.2em;
  font-weight: 500;
  letter-spacing: 0.015em;
  margin-bottom: 0;
}

.top-section-breadcrumbs a {
  text-decoration: none;
  transition: color 0.3s ease-out;
}

.top-section-breadcrumbs .last {
  font-weight: 600;
}

.hero-section {
  background-color: var(--lm-hero-bg);
}

.hero-section-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
  display: flex;
  justify-content: space-between;
  column-gap: 18px;
}

.hero-section-left-column {
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-section-right-column {
  width: 54%;
}

.hero-section-left-column-top {
  margin-top: 12px;
}

.hero-section-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 40px;
  font-size: 13px;
  line-height: 1.2em;
  color: var(--lm-meta-text);
}

.hero-section-meta a {
  color: var(--lm-meta-text);
  font-weight: 600;
}

.hero-section-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-section-meta .linkedin {
  width: 12px;
  height: 12px;
}

.hero-section h1 {
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--lm-post-title);
  font-size: 1.8em;
  line-height: 1.2em;
  font-weight: 700;
}

.hero-section-excerpt {
  color: var(--lm-meta-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.content-section-inner {
  width: 100%;
  max-width: 840px;
  padding: 64px 20px;
  margin: 0 auto;
}

.toc-inner {
  position: relative;
  padding: 24px;
  border: 1px solid var(--lm-sec-border);
  background-color: var(--lm-sec-bg);
  box-shadow: 0px 0px 4px 2px #0000000a;
  border-radius: 4px;
}

.toc-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.toc-title {
  display: block;
  color: var(--lm-body-text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.toc-title::after {
  content: "";
  float: right;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 9L12 15L6 9' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease-out;
}

.toc-toggle:checked ~ .toc-title::after {
  transform: rotate(180deg);
}

.toc-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.toc-toggle:checked ~ .toc-list {
  max-height: 820px;
  transition: max-height 0.3s ease-in;
  margin-top: 18px;
}

.toc-list > .toc-item:first-of-type {
  margin-top: 18px;
}

.toc-item {
  color: var(--lm-meta-text);
  font-size: 16px;
  line-height: 1.7em;
  font-weight: 500;
  margin-bottom: 8px;
}

.toc-list > .toc-item:last-of-type {
  margin-bottom: 0;
}

.toc-item a {
  transition: color 0.3s ease-out;
  text-decoration: none;
}

.toc-level-3 {
  padding-left: 1em;
}

.toc-level-4 {
  padding-left: 2em;
}

.toc-level-5 {
  padding-left: 3em;
}

.toc-level-6 {
  padding-left: 4em;
}

.toc-list::-webkit-scrollbar {
  width: 6px;
}

.toc-list::-webkit-scrollbar-thumb {
  border-radius: 12px;
  background: var(--lm-sec-border);
}

.content-main {
  margin-top: 24px;
}

.content-main article p,
.no-related-posts,
.content-main table {
  color: var(--lm-body-text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
}

.content-main a {
  text-decoration: underline;
  transition: color 0.3s ease-out;
}

.content-main blockquote {
  border-left: 4px solid var(--lm-acc-1);
  margin: 0 0 1.5em;
  padding: 0 0 0 20px;
  font-style: normal;
}

.archive-section-inner {
  width: 100%;
  max-width: 1100px;
  padding: 0px 20px 64px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.related-articles-content {
  width: 100%;
}

.related-articles-title {
  color: var(--lm-body-text);
  font-size: 28px;
  line-height: 1.2em;
  font-weight: 700;
  margin-bottom: 32px;
}

.related-articles-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  row-gap: 16px;
}

.related-articles-grid-column {
  width: calc(100% / 3);
  padding-left: 16px;
  box-sizing: border-box;
}

.related-articles-item {
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--lm-sec-border);
  background-color: var(--lm-sec-bg);
  box-shadow: 0px 0px 4px 2px #0000000a;
  border-radius: 6px;
}

.related-articles-featured,
.post-featured {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.related-articles-featured img,
.post-featured img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.related-articles-bottom {
  margin-top: 16px;
  padding: 8px;
}

.related-articles-category {
  margin-bottom: 16px;
}

.related-articles-category a {
  padding: 4px 10px;
  background-color: var(--lm-acc-3);
  color: var(--lm-body-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: color 0.3s ease-out;
  border: 1px solid var(--lm-toc-border);
  border-radius: 4px;
  text-decoration: none;
}

.related-articles-item-title {
  margin-bottom: 20px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 85px;
  transition: color 0.3s ease-out;
  color: var(--link-color);
}

.related-articles-item-title a {
  text-decoration: none;
}

.related-articles-published-time {
  font-size: 15px;
  line-height: 24px;
}

.view-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.view-more-button,
.view-more-button:hover,
.view-more-button:focus,
.view-more-button:active {
  display: inline-block;
  padding: 14px 24px;
  background-color: var(--lm-post-title);
  color: var(--lm-body-bg);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Hover effects */
@media (hover: hover) {
  .top-section-breadcrumbs a:hover,
  .toc-item a:hover,
  .content-main a:hover,
  .related-articles-category a:hover,
  .related-articles-item-title:hover,
  .related-articles-item-title a:hover {
    text-decoration: none;
    color: var(--lm-body-text);
  }

  .hero-section-meta a:hover {
    text-decoration: none;
  }

  .view-more-button:hover {
    background-color: var(--lm-hero-bg);
    color: var(--lm-body-bg);
  }
}

@media only screen and (max-width: 1024px) {
  .hero-section h1 {
    font-size: 1.7em;
    margin-bottom: 8px;
    text-align: center;
    text-wrap: pretty;
  }

  .content-main h2 {
    font-size: 1.6em;
  }

  .content-main h3 {
    font-size: 1.4em;
  }

  .content-main h4 {
    font-size: 1.3em;
  }

  .content-main h5 {
    font-size: 1.2em;
  }

  .content-main h6 {
    font-size: 1.1em;
  }

  .top-section-inner {
    padding: 20px;
    column-gap: 32px;
  }

  .hero-section-inner {
    max-width: 656px;
    padding: 32px 20px;
    row-gap: 32px;
    flex-wrap: wrap;
  }

  .hero-section-left-column,
  .hero-section-right-column {
    width: 100%;
    line-height: 0;
  }

  .hero-section-left-column-top {
    margin-top: 0;
  }

  .hero-section-excerpt {
    text-align: center;
    text-wrap: pretty;
  }

  .content-section-inner {
    max-width: 656px;
    padding: 32px 20px;
  }

  .content-main article p,
  .no-related-posts,
  .content-main table {
    font-size: 16px;
  }

  .archive-section-inner {
    padding: 32px 20px 64px;
  }

  .related-articles-item-title {
    font-size: 18px;
  }

  .related-articles-published-time {
    font-size: 14px;
  }
}

@media only screen and (max-width: 767px) {
  .hero-section h1 {
    margin-top: 16px;
    font-size: 1.6em;
  }

  .content-main h2 {
    font-size: 1.5em;
  }

  .content-main h3 {
    font-size: 1.3em;
  }

  .content-main h4 {
    font-size: 1.2em;
  }

  .content-main h5 {
    font-size: 1.1em;
  }

  .content-main h6 {
    font-size: 1em;
  }

  .top-section-inner {
    max-width: 656px;
    padding: 20px 16px;
    flex-wrap: wrap;
    row-gap: 24px;
    justify-content: center;
  }

  .top-section-breadcrumbs {
    text-align: center;
    text-wrap: pretty;
  }

  .top-section-search {
    width: 100%;
  }

  .hero-section-inner {
    max-width: 648px;
    padding: 32px 16px;
    row-gap: 24px;
  }

  .hero-section-meta {
    column-gap: 16px;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .related-articles-grid-column:nth-child(3) {
    display: none;
  }

  .related-articles-grid-column {
    width: 50%;
  }

  .related-articles-title {
    font-size: 20px;
  }

  .hero-section-excerpt {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
  }

  .content-section-inner {
    max-width: 648px;
    padding: 32px 16px 24px;
  }

  .archive-section-inner {
    padding: 24px 16px 32px;
  }
}

@media only screen and (max-width: 550px) {
  .hero-section-meta {
    justify-content: center;
  }

  .related-articles-grid-column {
    width: 100%;
  }

  .related-articles-item-title {
    height: 100%;
  }
}

/* Responsive tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5em;
  position: relative;
}

/* Basic table styles */
.content-main table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}

.content-main table th,
.content-main table td {
  padding: 12px;
  border: 1px solid var(--lm-sec-border);
  text-align: left;
  vertical-align: top;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 100px;
}

.content-main table th {
  background-color: var(--lm-sec-bg);
  font-weight: 600;
}

/* Shadow elements */
.table-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  pointer-events: none;
  opacity: 0;
}

.table-shadow.visible {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.table-shadow-left {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.table-shadow-right {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}
