/* Shared article sidebar. Post pages keep their own <style> blocks.
   Desktop keeps the article measure at the old 720px container's content
   width (720px minus the container's horizontal padding) and places the
   panel in the free space to the right. */

.article-main {
  min-width: 0;
  overflow-wrap: break-word;
}

.side-panel {
  margin-top: 2.5rem;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  margin: 0 0 0.9rem;
}

.side-card:last-child {
  margin-bottom: 0;
}

.side-panel h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.side-panel p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.side-cta {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #0c0d10;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.side-cta:hover {
  opacity: 0.9;
  text-decoration: none;
}

.side-panel .tool-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.side-panel .tool-list li {
  margin: 0 0 0.85rem;
}

.side-panel .tool-list li:last-child {
  margin-bottom: 0;
}

.side-panel .tool-list a {
  font-weight: 600;
  text-decoration: none;
}

.side-panel .tool-list a:hover {
  text-decoration: underline;
}

.side-panel .tool-list p {
  margin: 0.15rem 0 0;
}

.side-panel .side-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 1100px) {
  .container.has-sidebar {
    max-width: calc(720px + 2.25rem + 17.5rem);
  }

  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, calc(720px - 2.5rem)) minmax(0, 17.5rem);
    column-gap: 2.25rem;
    align-items: start;
  }

  .side-panel {
    position: sticky;
    top: 1.25rem;
    margin-top: 0;
  }

  .container.has-sidebar > footer {
    max-width: none;
  }
}
