/* Shared styles for the article pages under /news/<slug>/.
   Linked after site.css from every article. Page chrome (navbar, buttons,
   font-face) stays inline in each page. Add new article components here,
   never into a single page. */

/* Article prose */
.article-body h2 {
  font-family: 'Chillax', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #262626;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Sub-sections: the six duties, the new-build rules and the FAQ. */
.article-body h3 {
  font-family: 'Chillax', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #262626;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

/* The fixed navbar would cover a heading reached through the table of
   contents; the offset matches the pt-24 above the hero. */
.article-body h2,
.article-body h3 {
  scroll-margin-top: 7rem;
}

.article-body p {
  font-size: 0.97rem;
  color: rgba(38, 38, 38, 0.7);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.article-body ul li {
  font-size: 0.97rem;
  /* The global `p { font-weight: 500 }` rule does not reach list items, and
     Chillax is variable — without this they render a visible step lighter
     than the surrounding body copy. */
  font-weight: 500;
  color: rgba(38, 38, 38, 0.7);
  line-height: 1.85;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D97757;
}

/* Key facts at the top: an elevated card in the site's own signature,
   so it reads as a summary rather than as another callout. */
.article-body .keyfacts {
  background: #fff;
  border: 1px solid #262626;
  border-radius: 10px;
  box-shadow: 5px 5px 3px -2px rgba(0, 0, 0, 0.75);
  padding: 1.1rem 1.1rem 0.4rem;
  margin: 0.5rem 0 2rem;
}

@media (min-width: 640px) {
  .article-body .keyfacts {
    padding: 1.25rem 1.5rem 0.5rem;
  }
}

.article-body .box-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(38, 38, 38, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.article-body .keyfacts ul li {
  color: rgba(38, 38, 38, 0.85);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

/* Table of contents: flat on purpose, one step below the key facts card. */
.article-body .toc {
  border-top: 1px solid rgba(38, 38, 38, 0.15);
  border-bottom: 1px solid rgba(38, 38, 38, 0.15);
  padding: 1.25rem 0 0.75rem;
  margin-bottom: 1rem;
}

.article-body .toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

@media (min-width: 640px) {
  .article-body .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

.article-body .toc li {
  counter-increment: toc;
  break-inside: avoid;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  gap: 0.6rem;
}

.article-body .toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(38, 38, 38, 0.4);
  padding-top: 0.12rem;
  min-width: 1.4rem;
}

.article-body .toc a {
  color: #262626;
  transition: color 0.2s ease;
}

.article-body .toc a:hover {
  color: #D97757;
}

.article-body .toc a:focus-visible {
  outline: 2px solid #D97757;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Deadline table. The wrapper scrolls instead of the page if a narrow
   viewport ever runs out of room. */
.article-body .table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1.75rem;
  border: 1px solid #262626;
  border-radius: 10px;
  box-shadow: 5px 5px 3px -2px rgba(0, 0, 0, 0.75);
  background: #fff;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-body th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(38, 38, 38, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(38, 38, 38, 0.15);
}

.article-body td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  line-height: 1.6;
  font-weight: 500;
  color: rgba(38, 38, 38, 0.75);
  border-bottom: 1px solid rgba(38, 38, 38, 0.08);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: #262626;
}

/* The row that carries the deadline itself. */
.article-body tr.is-deadline {
  background: rgba(217, 119, 87, 0.08);
}

/* Two columns leave the text too little room on a phone, and long
   compounds like "Beleuchtungssteuerung" would push the table sideways.
   Each row stacks its date above its text instead. */
@media (max-width: 639px) {
  .article-body thead {
    display: none;
  }

  .article-body tr {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(38, 38, 38, 0.08);
  }

  .article-body tr:last-child {
    border-bottom: 0;
  }

  .article-body td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .article-body td:first-child {
    margin-bottom: 0.15rem;
  }
}

/* Cards in the further-reading block below the article. */
.news-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  box-shadow: 5px 5px 3px -2px rgba(0, 0, 0, 0.75);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 5px 5px 3px -2px rgba(0, 0, 0, 0.75), 0 16px 48px rgba(23, 41, 32, 0.08), 0 4px 16px rgba(23, 41, 32, 0.04);
}

.article-body .callout {
  border-left: 3px solid #D97757;
  background: rgba(217, 119, 87, 0.06);
  border-radius: 0 5px 5px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
  color: rgba(38, 38, 38, 0.75);
  line-height: 1.75;
  font-weight: 500;
}

/* Dashboard screenshots with a caption. The border and shadow follow the
   images on the use-cases page. */
.article-body figure {
  margin: 1.75rem 0 2rem;
}

.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(38, 38, 38, 0.125);
  border-radius: 8px;
  box-shadow: 5px 5px 3px -2px rgba(0, 0, 0, 0.12);
}

.article-body figcaption {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(38, 38, 38, 0.55);
  line-height: 1.6;
  margin-top: 0.6rem;
}
