.newspad-tool-nav {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  background: #fff;
}
.newspad-tool-nav > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.newspad-tool-nav a {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  text-decoration: none;
  color: #292524;
}
.newspad-tool-nav a.is-active {
  border-color: #047857;
  background: #ecfdf5;
}
.newspad-tool-nav span {
  margin-top: 4px;
  color: #78716c;
  font-size: 12px;
}
.newspad-tool-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
}
.newspad-tool-form,
.newspad-tool-result,
.newspad-character-groups section,
.newspad-character-selected,
.newspad-empty {
  padding: 20px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  background: #fff;
}
.newspad-tool-form label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
}
.newspad-tool-form label:first-child {
  margin-top: 0;
}
.newspad-tool-form input,
.newspad-character-search input,
.newspad-character-selected textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid #d6d3d1;
  border-radius: 5px;
  font: inherit;
}
.newspad-tool button,
.newspad-tool-form button {
  margin-top: 16px;
  padding: 11px 15px;
  border: 1px solid #047857;
  border-radius: 5px;
  background: #047857;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.newspad-tool button.secondary {
  border-color: #d6d3d1;
  background: #fff;
  color: #44403c;
}
.newspad-tool-notice {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 5px;
  background: #fffbeb;
  color: #78350f;
  font-size: 12px;
  line-height: 1.6;
}
.newspad-tool-result {
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.newspad-result-cards,
.newspad-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.newspad-result-cards > div,
.newspad-reading-grid article,
.newspad-reading-summary,
.newspad-balance {
  padding: 16px;
  border-radius: 5px;
  background: #fff;
}
.newspad-result-cards span,
.newspad-pillars span,
.newspad-pillars small {
  display: block;
  color: #78716c;
  font-size: 12px;
}
.newspad-result-cards strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}
.newspad-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.newspad-pillars article {
  padding: 14px;
  border-radius: 5px;
  background: #fff;
}
.newspad-pillars strong {
  display: block;
  margin: 8px 0;
  font-size: 25px;
}
.newspad-element {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}
.newspad-element span {
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f4;
}
.newspad-element i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: #047857;
}
.newspad-element em {
  font-style: normal;
}
.newspad-character-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.newspad-character-search {
  display: block;
  padding: 18px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}
.newspad-character-groups {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.newspad-character-groups section h2 {
  margin: 0;
}
.newspad-character-groups section p {
  color: #78716c;
}
.newspad-character-groups section > div {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}
.newspad-character-groups button {
  min-height: 46px;
  margin: 0;
  padding: 7px;
  border-color: #d6d3d1;
  background: #fff;
  color: #292524;
}
.newspad-character-selected {
  position: sticky;
  top: 20px;
  align-self: start;
}
.newspad-ad-slot {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed #d6d3d1;
  background: #fafaf9;
  color: #78716c;
  text-align: center;
}
.newspad-ad-slot span {
  display: block;
  font-size: 12px;
}
.newspad-extras,
.newspad-editorial-profile {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
}
.newspad-extras h2,
.newspad-editorial-profile h2 {
  margin-top: 0;
}
.newspad-references li {
  margin-top: 12px;
}
.newspad-references li span {
  display: block;
  color: #78716c;
  font-size: 12px;
}
.newspad-link-list {
  display: grid;
  gap: 8px;
}
.newspad-link-list a {
  padding: 12px;
  border: 1px solid #f59e0b;
  border-radius: 5px;
  text-decoration: none;
}
.newspad-disclosure {
  padding: 12px;
  background: #fffbeb;
}
.newspad-editorial-byline {
  margin-top: 14px;
  color: #57534e;
  font-size: 13px;
  line-height: 1.6;
}
.newspad-editorial-byline > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.newspad-editorial-byline p {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #059669;
  background: #f0fdf4;
  color: #3f3f46;
  font-size: 12px;
}
.newspad-empty {
  text-align: center;
}
@media (max-width: 900px) {
  .newspad-tool-nav > div {
    display: flex;
    overflow-x: auto;
  }
  .newspad-tool-nav a {
    min-width: 180px;
  }
  .newspad-tool-grid,
  .newspad-character-layout {
    grid-template-columns: 1fr;
  }
  .newspad-character-selected {
    position: static;
  }
  .newspad-character-groups section > div {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .newspad-result-cards,
  .newspad-reading-grid,
  .newspad-pillars {
    grid-template-columns: 1fr;
  }
  .newspad-character-groups section > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.newspad-paragraph-sources {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18em;
  margin-left: 0.28em;
  color: #57534e;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: 0.28em;
}
.newspad-paragraph-sources a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65em;
  min-height: 1.65em;
  padding: 0.12em 0.24em;
  border-radius: 3px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  text-decoration: none;
}
.newspad-paragraph-sources a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newspad-paragraph-sources a:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}
.newspad-references ol {
  margin: 0;
  padding-left: 1.5rem;
}
.newspad-references li::marker {
  color: #047857;
  font-weight: 700;
}
