/* Engineering Notes: home preview, index and article pages. */
.tk-notes-preview { background: var(--tk-surface-light); }

.tk-notes-grid,
.tk-notes-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.tk-note-card {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) 1fr;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid var(--tk-border);
  border-radius: .5rem;
  background: var(--tk-surface-light);
  color: var(--tk-text);
  transition: border-color .2s ease, transform .2s ease;
}

.tk-note-card:hover {
  transform: translateY(-3px);
  border-color: var(--tk-blue);
}

.tk-note-card img {
  width: 100%;
  height: 100%;
  min-height: 19rem;
  object-fit: cover;
}

.tk-note-copy {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.tk-note-kicker,
.tk-notes-kicker,
.tk-article-kicker {
  color: var(--tk-blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tk-note-copy h3 {
  margin: .8rem 0 .65rem;
  font-size: 1.4rem;
  line-height: 1.3;
}

.tk-note-copy p {
  margin: 0;
  color: var(--tk-text-muted);
  font-size: .95rem;
  line-height: 1.65;
}

.tk-note-link {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--tk-blue);
  font-weight: 700;
}

.tk-notes-all {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  font-weight: 700;
}

.tk-notes-page {
  min-height: 100vh;
  background: #f4f6f8;
  color: var(--tk-text);
}

.tk-notes-nav {
  background: #fff;
  border-bottom: 1px solid var(--tk-border);
}

.tk-notes-nav-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tk-notes-brand img { height: 34px; width: auto; }

.tk-notes-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .9rem;
}

.tk-notes-nav-links a { color: var(--tk-text-muted); }
.tk-notes-nav-links a:hover { color: var(--tk-blue); }

.tk-notes-hero,
.tk-article-hero {
  background: var(--tk-black);
  color: #fff;
}

.tk-notes-hero-inner,
.tk-article-hero-inner,
.tk-notes-index,
.tk-article-body,
.tk-article-next {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.tk-notes-hero-inner { padding: 5.5rem 0 6rem; }

.tk-notes-hero h1,
.tk-article-hero h1 {
  max-width: 900px;
  margin: 1rem 0 1.1rem;
  color: #fff;
  font-size: 3.3rem;
  line-height: 1.08;
}

.tk-notes-hero p,
.tk-article-dek {
  max-width: 760px;
  margin: 0;
  color: #b9c1cc;
  font-size: 1.16rem;
  line-height: 1.65;
}

.tk-notes-index { padding: 4.5rem 0 5.5rem; }

.tk-article-hero-inner { padding: 4.5rem 0 3.4rem; }

.tk-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin-top: 1.5rem;
  color: #929dab;
  font-size: .82rem;
}

.tk-article-figure {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  transform: translateY(2.75rem);
}

.tk-article-figure img {
  width: 100%;
  max-height: 780px;
  display: block;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 20px 60px rgba(11, 15, 20, .25);
}

.tk-article-body {
  max-width: 800px;
  padding: 6.8rem 0 5.2rem;
  color: #2c3440;
  font-size: 1.08rem;
  line-height: 1.82;
}

.tk-article-body .opening {
  color: var(--tk-text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.55;
}

.tk-article-body h2 {
  margin: 3rem 0 1rem;
  color: var(--tk-text);
  font-size: 1.85rem;
  line-height: 1.25;
}

.tk-article-body p { margin: 0 0 1.35rem; }
.tk-article-body ul { margin: 0 0 1.6rem; padding-left: 1.35rem; }
.tk-article-body li { margin-bottom: .65rem; }

.tk-article-callout {
  margin: 2.6rem 0;
  padding: 1.7rem 1.9rem;
  border-left: 4px solid var(--tk-blue);
  background: var(--tk-blue-soft);
  color: #123158;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.tk-article-next-wrap {
  padding: 3.7rem 0;
  background: #e8edf3;
}

.tk-article-next {
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.tk-article-next small {
  display: block;
  margin-bottom: .45rem;
  color: var(--tk-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.tk-article-next strong { color: var(--tk-text); font-size: 1.25rem; }

.tk-notes-footer {
  padding: 2.2rem 0;
  background: var(--tk-black);
  color: #aab3bf;
}

.tk-notes-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  font-size: .85rem;
}

.tk-notes-footer a { color: #fff; }

@media (max-width: 900px) {
  .tk-notes-grid,
  .tk-notes-index-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tk-note-card { grid-template-columns: 1fr; }
  .tk-note-card img { min-height: 0; aspect-ratio: 4 / 3; }
  .tk-notes-nav-inner,
  .tk-notes-hero-inner,
  .tk-article-hero-inner,
  .tk-notes-index,
  .tk-article-body,
  .tk-article-next,
  .tk-notes-footer-inner { width: min(100% - 28px, 1120px); }
  .tk-notes-nav-links { gap: .8rem; font-size: .8rem; }
  .tk-notes-hero-inner { padding: 4rem 0 4.4rem; }
  .tk-notes-hero h1,
  .tk-article-hero h1 { font-size: 2.25rem; }
  .tk-notes-hero p,
  .tk-article-dek { font-size: 1rem; }
  .tk-article-hero-inner { padding: 3.5rem 0 2.6rem; }
  .tk-article-figure { width: calc(100% - 28px); transform: translateY(1.75rem); }
  .tk-article-body { padding-top: 4.8rem; font-size: 1rem; }
  .tk-article-body .opening { font-size: 1.24rem; }
  .tk-article-body h2 { font-size: 1.55rem; }
  .tk-article-next { flex-direction: column; align-items: flex-start; }
  .tk-notes-footer-inner { flex-direction: column; }
}
