:root {
  color: #162321;
  background: #f8faf8;
  font: 16px/1.65 system-ui, "Microsoft YaHei", sans-serif;
  --teal: #176458;
  --line: #d3dedb;
  --paper: #fff;
  --page: min(100% - 2rem, 70rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-block: 0.4em; }
h2 { margin-block: 1.25em 0.55em; }
p, ol, ul, blockquote { margin-block: 0.7rem; }
a { color: var(--teal); text-underline-offset: 0.2em; }
img, svg { max-inline-size: 100%; height: auto; }
nav, .archive-card-meta, .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}
.simple-header, .editorial-header {
  width: var(--page);
  margin: auto;
  min-height: 4.5rem;
  padding-block: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 740;
  text-decoration: none;
  color: inherit;
}
.brand img { width: 2rem; height: 2rem; display: block; }
main, .content-page {
  width: var(--page);
  margin: 2rem auto 3rem;
}
.article-page { max-width: 50rem; }
.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.editorial-hero h1 em { color: var(--teal); font-style: normal; }
.editorial-note, .brand-disclaimer, blockquote {
  background: #e8f1ed;
  padding: 1rem;
  margin-inline: 0;
}
.eyebrow, .meta, .archive-card-meta, .breadcrumbs { color: #46615b; }
.eyebrow { font-size: 0.85rem; font-weight: 650; }
.article-cover { display: block; width: 100%; border: 1px solid var(--line); border-radius: 0.5rem; }
.button {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  color: white;
  background: var(--teal);
  text-decoration: none;
}
.home-categories, .latest-section, .standards-section, .hub-section, .related-articles, .article-sources {
  margin-block: 2rem;
}
.latest-heading, .archive-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1rem;
}
.editorial-grid, .blog-grid, .hub-grid, .standards-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.editorial-card, .blog-card, .hub-grid > a, .standards-list > article {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}
.editorial-card h3, .blog-card h2 { font-size: 1.1rem; margin-block: 0.3rem; }
.editorial-card:hover, .blog-card:hover, .hub-grid > a:hover { border-color: var(--teal); }
footer {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  justify-content: space-between;
  padding: 1.5rem max(1rem, calc((100% - 70rem) / 2));
  color: white;
  background: #233d38;
}
footer a { color: inherit; }
footer h3 { margin-block: 0.5rem; }
footer a + a { margin-inline-start: 0.6rem; }
code, pre { white-space: pre-wrap; overflow-wrap: anywhere; }
pre { padding: 0.8rem; background: #eaf0ee; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; }
th, td { border: 1px solid var(--line); padding: 0.5rem; text-align: start; }
@media (max-width: 640px) {
  .editorial-hero, .editorial-grid, .blog-grid, .hub-grid, .standards-list {
    grid-template-columns: minmax(0, 1fr);
  }
  table, thead, tbody, tfoot, tr, th, td {
    display: block;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  tr { margin-block-end: 0.7rem; }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 650;
  }
}
