/* Shared blog post layout — hero clearance + contained cards/TOC */

/* Single image logo, identical to the main site nav */
.legal-nav .site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.legal-nav .site-logo img {
  height: 46px;
  width: auto;
  display: block;
  opacity: 1;
}
@media (max-width: 640px) {
  .legal-nav .site-logo img { height: 36px; }
}

/* Fixed legal-nav sits on top; push hero content below it */
.legal-nav + .post-hero {
  padding-top: 112px !important;
  overflow: visible;
}

.post-hero .wrap {
  max-width: 100%;
}

.post-hero .eyebrow {
  display: block;
  line-height: 1.6;
  padding-top: 4px;
  margin-top: 0;
}

.post-hero h1,
.post-hero p,
.post-hero .eyebrow {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Key takeaways card — keep all content inside */
.tldr {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  box-sizing: border-box;
}

.tldr ul {
  padding-right: 2px;
  max-width: 100%;
}

/* On-this-page links — wrap inside the card */
.toc {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #b7ebd8;
  font-size: 14px;
  max-width: 100%;
}

.toc-label {
  display: block;
  margin: 0 0 10px;
  color: #065f46;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.toc-links li {
  margin: 0;
  max-width: 100%;
}

.toc-links a {
  display: inline-block;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toc-links a:hover {
  background: #a7f3d0;
}

/* Language-access post uses indigo accents in the card */
.tldr.post-theme-indigo .toc {
  border-top-color: #c7d2fe;
}

.tldr.post-theme-indigo .toc-label {
  color: #312e81;
}

.tldr.post-theme-indigo .toc-links a {
  background: #e0e7ff;
  color: #3730a3;
}

.tldr.post-theme-indigo .toc-links a:hover {
  background: #c7d2fe;
}
