/* ============================================
   Creer Technical Notes
   Existing corporate styles are inherited from style.css.
   ============================================ */

.technical-notes-hero .page-hero-desc {
  max-width: 720px;
}

.technical-notes-list-section {
  background: var(--off-white);
}

.technical-notes-intro {
  max-width: 780px;
  margin: 0 auto 48px;
  padding: 24px 28px;
  background: var(--white);
  border-left: 3px solid var(--teal-light);
  box-shadow: var(--shadow-sm);
}

.technical-notes-intro p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 2;
}

.technical-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.technical-note-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.technical-note-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(36, 144, 181, 0.3);
}

.technical-note-card__link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 30px;
}

.technical-note-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.technical-note-card__meta time {
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.technical-note-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.technical-note-card h2 {
  margin-bottom: 13px;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.technical-note-card p {
  margin-bottom: 20px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.9;
}

.technical-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.technical-note-tags li {
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.6;
}

.technical-note-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
}

.technical-note-card__more span {
  transition: transform var(--transition);
}

.technical-note-card:hover .technical-note-card__more span {
  transform: translateX(4px);
}

.technical-note-card--compact h2 {
  font-size: 17px;
}

.technical-notes-empty {
  padding: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-sub);
  text-align: center;
}

.technical-note-breadcrumb {
  padding-top: 86px;
}

.technical-note-breadcrumb .breadcrumb-inner {
  min-width: 0;
}

.technical-note-breadcrumb .breadcrumb-inner a,
.technical-note-breadcrumb .breadcrumb-inner .sep {
  flex-shrink: 0;
}

.technical-note-breadcrumb .breadcrumb-inner span:last-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-note-article {
  background: var(--white);
}

.technical-note-header {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.technical-note-header h1 {
  margin: 22px 0 18px;
  color: var(--text-main);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.technical-note-lead {
  max-width: 740px;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 2;
}

.technical-note-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 14px;
  color: var(--text-light);
  font-size: 13px;
}

.technical-note-body {
  padding: 72px 0 28px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 2.05;
}

.technical-note-body > :first-child {
  margin-top: 0;
}

.technical-note-body h2 {
  margin: 64px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.55;
}

.technical-note-body h3 {
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--teal-light);
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.6;
}

.technical-note-body p,
.technical-note-body ul,
.technical-note-body ol,
.technical-note-body blockquote,
.technical-note-body pre,
.technical-note-body table {
  margin: 0 0 26px;
}

.technical-note-body ul,
.technical-note-body ol {
  padding-left: 1.6em;
}

.technical-note-body ul {
  list-style: disc;
}

.technical-note-body ol {
  list-style: decimal;
}

.technical-note-body li {
  margin-bottom: 7px;
  padding-left: 0.25em;
}

.technical-note-body blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--teal-light);
  background: var(--teal-pale);
  color: var(--navy);
  font-weight: 500;
}

.technical-note-body blockquote p:last-child {
  margin-bottom: 0;
}

.technical-note-body code {
  padding: 0.15em 0.4em;
  border-radius: 3px;
  background: var(--gray-50);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92em;
}

.technical-note-body pre {
  overflow-x: auto;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: #162235;
  color: #f4f7fb;
  line-height: 1.75;
}

.technical-note-body pre code {
  padding: 0;
  background: transparent;
}

.technical-note-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.technical-note-body th,
.technical-note-body td {
  min-width: 140px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.technical-note-body th {
  background: var(--off-white);
  font-weight: 700;
}

.technical-note-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.technical-note-back {
  padding: 28px 0 80px;
  border-top: 1px solid var(--border);
}

.technical-note-related .section-header {
  margin-bottom: 36px;
}

@media (max-width: 760px) {
  .technical-notes-grid {
    grid-template-columns: 1fr;
  }

  .technical-note-card__link {
    padding: 24px;
  }

  .technical-note-breadcrumb {
    padding-top: 82px;
  }

  .technical-note-header {
    padding: 52px 0 42px;
  }

  .technical-note-header h1 {
    font-size: 28px;
  }

  .technical-note-lead {
    font-size: 15px;
  }

  .technical-note-body {
    padding-top: 52px;
    font-size: 15px;
    line-height: 2;
  }

  .technical-note-body h2 {
    margin-top: 50px;
    font-size: 22px;
  }

  .technical-note-body h3 {
    font-size: 18px;
  }
}
