/* furp.org: black on white, monospace, nothing else. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 640px;
  padding: 48px 16px 64px;
  background: #fff;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

header {
  margin-bottom: 64px;
}

.site-name {
  font-weight: bold;
  letter-spacing: 0.02em;
  text-decoration: none;
}

h1,
h2 {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 32px;
}

h2 {
  margin: 40px 0 8px;
}

p,
ul {
  margin: 0 0 24px;
}

ul {
  padding-left: 2ch;
}

li {
  margin-bottom: 8px;
}

/* Search form */

.note {
  margin: 40px 0 8px;
  font-size: 14px;
}

.note + .search {
  margin-top: 0;
}

.search {
  display: flex;
  gap: 8px;
  margin: 40px 0 48px;
}

.search input,
.search button {
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  border: 2px solid #000;
  border-radius: 0;
  padding: 10px 12px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  color: #000;
}

.search input::placeholder {
  color: #000;
  opacity: 0.55;
}

.search button {
  flex: 0 0 auto;
  background: #000;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.search button:hover {
  background: #fff;
  color: #000;
}


footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 2px solid #000;
  font-size: 14px;
}

footer p {
  margin-bottom: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Data pages: a wider column, tables, faint raw IRS field names. */

body.wide {
  max-width: 1400px;
}

/* Every top-level (menu) page and each leaderboard: one bounded column, so they share the same side
   margins; wide tables scroll sideways inside .scroll instead of stretching the page edge to edge. */
body.wide.contained {
  max-width: 1100px;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 700px) {
  body.wide.contained {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.muted,
.raw,
.count {
  font-size: 13px;
  opacity: 0.6;
}

.raw {
  margin-left: 0.5ch;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
}

.scroll {
  overflow-x: auto;
  margin: 0 0 40px;
}

table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

th,
td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding: 8px 14px 8px 6px;
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 2px solid #000;
  white-space: nowrap;
  padding-bottom: 6px;
}

tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.035);
}

tbody tr:last-child td {
  border-bottom: 2px solid #000;
}

td.n,
th.n {
  text-align: right;
  white-space: nowrap;
  padding-left: 14px;
}

tr.superseded td {
  opacity: 0.55;
}

tr.total td {
  font-weight: bold;
  border-top: 2px solid #000;
}

h3,
h4 {
  font-size: 1em;
  margin: 24px 0 8px;
}

.results {
  list-style: none;
  padding: 0;
}

.results > li {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #000;
}

.results .name {
  font-weight: bold;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -24px 0 32px;
  font-size: 14px;
}

.filters label {
  display: flex;
  flex-direction: column;
}

.filters input,
.filters button {
  font: inherit;
  border: 1px solid #000;
  border-radius: 0;
  padding: 4px 6px;
  background: #fff;
  color: #000;
  width: 14ch;
}

.filters button {
  align-self: flex-end;
  background: #000;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  width: auto;
}

.pager {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0 0 24px;
}

dl.facts dt {
  font-weight: bold;
}

dl.facts dd {
  margin: 0;
}

/* The full-990 viewer */

.filing section {
  border-top: 2px solid #000;
  margin-top: 32px;
}


.toc {
  columns: 2;
  font-size: 14px;
}

@media (max-width: 640px) {
  .toc {
    columns: 1;
  }

}

[hidden] {
  display: none !important;
}

.coverage {
  font-size: 13px;
  margin: -16px 0 24px;
}

/* Year tabs: bordered boxes, the active one inverted. */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 16px;
}

.tabs a {
  border: 2px solid #000;
  padding: 4px 10px;
  text-decoration: none;
  font-weight: bold;
}

.tabs a:hover {
  text-decoration: underline;
}

.tabs a.active {
  background: #000;
  color: #fff;
}

/* Person popup on search results. */

html.popup-open {
  overflow: hidden;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 24px;
  background: #fff;
  border: 2px solid #000;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font: inherit;
  font-weight: bold;
  padding: 2px 8px;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.popup-close:hover {
  background: #000;
  color: #fff;
}

.popup .person-name {
  margin-top: 0;
  padding-right: 4ch;
}

/* "Institution" label for banks and firms listed as officers. */

.tag {
  display: inline-block;
  border: 1px solid #000;
  padding: 0 4px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.note-big {
  font-size: 14px;
  border-left: 2px solid #000;
  padding-left: 8px;
}

/* Section dividers inside the people results: exact, close, other. */

.results > li.band {
  border-top: 2px solid #000;
  border-bottom: none;
  margin: 32px 0 12px;
  padding: 8px 0 0;
}

.results > li.band:first-child {
  margin-top: 0;
}

.results > li.band h2 {
  margin: 0 0 4px;
}

.results > li.band p {
  margin: 0;
}

/* Table tools: the copy button above each data table (added by site.js). */

.table-tools {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 6px;
}

.copy-table {
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.copy-table:hover,
.copy-table.done {
  background: #000;
  color: #fff;
}

h3 + .table-tools,
h3 + .scroll {
  margin-top: 0;
}

h3 {
  margin-top: 40px;
}

/* "View the entire original 990" on filing pages. */

.button-link {
  display: inline-block;
  border: 2px solid #000;
  padding: 6px 12px;
  font-weight: bold;
  text-decoration: none;
}

.button-link:hover {
  background: #000;
  color: #fff;
}

/* Full-990 viewer: fields as an aligned table, IRS element names in their own column. */

table.fields th[scope="row"] {
  font-weight: normal;
  width: 38%;
}

table.fields td {
  font-weight: bold;
  overflow-wrap: anywhere;
}

table.fields .raw-col {
  font-size: 12px;
  font-weight: normal;
  opacity: 0.6;
  width: 28%;
  overflow-wrap: anywhere;
}

.filing .group {
  margin: 24px 0 0;
}

.filing .group .group {
  margin-left: 0;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 0, 0, 0.15);
}


@media (max-width: 640px) {
  table.fields .raw-col {
    display: none;
  }

  table.fields th[scope="row"] {
    width: 50%;
  }
}


/* Row headers in plain tables match their rows. */

tbody th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  font-weight: normal;
  white-space: normal;
}

table.fields {
  table-layout: auto;
}

table.fields th,
table.fields td {
  vertical-align: baseline;
}

/* Named tables: column headers once; each item is its name on one row and its
   data on the row beneath, as columns. */

table.named tbody tr:nth-child(even) td {
  background: none;
}

table.named tbody.item td {
  border-bottom: none;
}

table.named tbody.item:nth-of-type(even) td {
  background: rgba(0, 0, 0, 0.035);
}

table.named tr.name-row td {
  padding-top: 10px;
  padding-bottom: 0;
}

table.named .item-name {
  font-weight: bold;
}

table.named .item-meta {
  font-size: 12px;
  margin-left: 1.5ch;
}

table.named tr.data-row td {
  padding-top: 4px;
  padding-bottom: 10px;
}

table.named tbody.item tr:last-child td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

table.named tr.note-row td {
  font-size: 12px;
  opacity: 0.7;
  padding-top: 0;
  padding-bottom: 10px;
}

table.named td.strong {
  font-weight: bold;
}

table.named thead th .raw {
  display: block;
  margin-left: 0;
  font-size: 11px;
}

table.named tbody.superseded td {
  opacity: 0.55;
}

table.named tbody.totals td {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  font-weight: bold;
  background: none;
}

/* Named tables: headers wrap so values set the column widths; slightly tighter cells. */

table.named thead th {
  white-space: normal;
  vertical-align: bottom;
  min-width: 7ch;
}

table.named td,
table.named th {
  padding-left: 6px;
  padding-right: 10px;
}

table.named td.n {
  white-space: nowrap;
}

table.named tr.data-row td.text:first-child,
table.named tr.data-row td:first-child:not(.n) {
  min-width: 20ch;
}

tbody tr:nth-child(even) th {
  background: rgba(0, 0, 0, 0.035);
}

tbody tr:last-child th {
  border-bottom: 2px solid #000;
}

/* Grid lines: vertical rules between columns, a solid line above each item. */

th + th,
td + td {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

th,
td {
  padding-left: 10px;
}

table.named tbody.item tr.name-row td {
  border-top: 1px solid #000;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
  padding-top: 8px;
  padding-bottom: 6px;
}

table.named tbody.item:first-of-type tr.name-row td {
  border-top: none;
}

table.named tr.data-row td {
  padding-top: 7px;
  padding-bottom: 9px;
}

table.named tbody.item tr:last-child td {
  border-bottom: none;
}

table.named tbody.totals td {
  border-top: 2px solid #000;
}

table.named,
table.fields,
.scroll > table {
  border-bottom: 2px solid #000;
}

.org-totals {
  font-size: 14px;
}

/* Site navigation tabs under the site name. */

header {
  margin-bottom: 48px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.site-nav a {
  border: 2px solid #000;
  padding: 4px 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a.active {
  background: #000;
  color: #fff;
}

/* Schools dropdown in the site menu (a <details>; works without JavaScript) */
.site-nav details.nav-drop {
  position: relative;
}

.site-nav details.nav-drop > summary {
  list-style: none;
  border: 2px solid #000;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.site-nav details.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.site-nav details.nav-drop > summary::after {
  content: " \25BE";
}

.site-nav details.nav-drop.active > summary,
.site-nav details.nav-drop[open] > summary {
  background: #000;
  color: #fff;
}

.site-nav .nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 15em;
  margin-top: 4px;
  background: #fff;
  border: 2px solid #000;
}

.site-nav .nav-drop-menu a {
  border: 0;
  padding: 6px 12px;
}

.site-nav .nav-drop-menu a:hover,
.site-nav .nav-drop-menu a:focus-visible {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* Contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 24px 0;
}

.contact-form label {
  font-weight: bold;
  margin: 16px 0 4px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  font: inherit;
  font-size: 16px;
  border: 2px solid #000;
  border-radius: 0;
  padding: 8px 10px;
  background: #fff;
  color: #000;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 24px;
  background: #000;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.contact-form button:hover {
  background: #fff;
  color: #000;
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  border: 2px solid #000;
  padding: 8px 16px;
  margin: 16px 0;
}

/* Selects, everywhere (search type, board filters, contact topic): native styling
   stripped, Courier, black on white, square corners, a small black arrow on the right. */

select {
  font: inherit;
  color: #000;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 10px 6px;
  border: 2px solid #000;
  border-radius: 0;
  padding: 4px 30px 4px 8px;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Beside the search box: the same font, border and height as the input and button. */

.search select {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: normal;
  line-height: inherit;
  padding: 10px 34px 10px 12px;
  background-position: right 12px center;
}

/* Board filters: the 1px border of the inputs beside them. */

.filters select {
  border-width: 1px;
  padding: 4px 28px 4px 6px;
  min-width: 10ch;
}

.contact-form select {
  font-size: 16px;
  padding: 8px 34px 8px 10px;
  background-position: right 12px center;
}

@media (max-width: 600px) {
  .search {
    flex-wrap: wrap;
  }

  .search select {
    flex: 1 1 100%;
  }
}

/* Firm search results */

section.firm {
  border-top: 2px solid #000;
  margin: 32px 0 0;
  padding-top: 8px;
}

.firm-name {
  margin: 8px 0 2px;
  text-transform: none;
}

.firm-meta,
.firm-more {
  font-size: 14px;
  margin: 0 0 12px;
}

/* Leaderboards */

.crumbs {
  margin: 0 0 4px;
  font-size: 14px;
}

.board-subtitle {
  margin-top: -8px;
  font-size: 18px;
}

footer .fine-print {
  font-size: 12px;
}

.formula {
  font-size: 14px;
}

.finding {
  font-size: 15px;
  border-left: 4px solid #000;
  padding-left: 10px;
}

.copy-text {
  font: inherit;
  font-size: 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 1px 6px;
  cursor: pointer;
}

table.board .rank {
  display: inline-block;
  min-width: 5ch;
  font-weight: bold;
}

a.tag {
  color: #000;
  text-decoration: none;
}

a.tag:hover {
  background: #000;
  color: #fff;
}

.board-list li {
  margin-bottom: 16px;
}

.share-card {
  border: 1px solid #000;
  max-width: 100%;
  height: auto;
}

dl.board-defs dt {
  font-weight: bold;
  margin-top: 16px;
}

dl.board-defs dd {
  margin: 4px 0 0;
}

nav.az {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 16px;
}

nav.az a {
  border: 1px solid #000;
  padding: 2px 7px;
  text-decoration: none;
  color: #000;
}

nav.az a.active,
nav.az a:hover {
  background: #000;
  color: #fff;
}

.named-orgs {
  border: 2px solid #000;
  padding: 4px 16px 8px;
  margin: 0 0 32px;
}

.named-orgs h2 {
  margin-top: 8px;
}

details.spend {
  border-top: 1px solid #000;
  padding: 8px 0;
}

details.spend > summary {
  cursor: pointer;
  padding: 4px 0;
}

details.spend[open] > summary {
  margin-bottom: 8px;
}

.pay-summary {
  margin: -4px 0 8px;
}

/* "More options" under the search box */

.search {
  flex-wrap: wrap;
}

details.more-options {
  flex: 1 1 100%;
  font-size: 14px;
}

/* Home page: "More options" and the permanent-link note share one row under the search box, the note on the
   right. When the options are open they take the whole row and the note sits under them. */
.search-meta {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.search-meta details.more-options {
  flex: 1 1 auto;
}

.search-meta details.more-options[open] {
  flex-basis: 100%;
}

.search-link-note {
  margin: 0 0 0 auto;
  text-align: right;
}

details.more-options > summary {
  cursor: pointer;
  display: inline-block;
}

.more-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  align-items: flex-end;
}

.more-fields label {
  display: flex;
  flex-direction: column;
}

.more-fields input {
  font: inherit;
  border: 1px solid #000;
  border-radius: 0;
  padding: 4px 6px;
  width: 16ch;
}

.more-fields p {
  flex: 1 1 100%;
  margin: 0;
}

/* Natural-language search */

.nl-reading {
  border-left: 4px solid #000;
  padding-left: 10px;
  margin: 0 0 8px;
}

details.nl-edit {
  margin: 0 0 24px;
  font-size: 14px;
}

details.nl-edit > summary {
  cursor: pointer;
}

.nl-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-end;
  margin: 8px 0;
}

.nl-fields label {
  display: flex;
  flex-direction: column;
}

.nl-fields input[type="checkbox"] {
  align-self: flex-start;
}

.nl-fields input:not([type="checkbox"]) {
  font: inherit;
  border: 1px solid #000;
  border-radius: 0;
  padding: 4px 6px;
}

.nl-fields select {
  border-width: 1px;
  padding: 4px 28px 4px 6px;
}

.nl-fields button {
  font: inherit;
  font-weight: bold;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  padding: 4px 10px;
  cursor: pointer;
}

.nl-try {
  margin: -16px 0 4px;   /* 32px under the search box, so the examples stand on their own */
  font-size: 14px;
}

ul.nl-examples {
  margin-top: 0;
  font-size: 14px;
}

.ideas-more {
  margin: -8px 0 24px;
  font-size: 13px;
}

/* Home page donation box */
.donate-box {
  border: 3px solid #000;
  padding: 16px 20px 12px;
  margin: -16px 0 40px;
}

.donate-head {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.35;
  margin: 0 0 12px;
}

.donate-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.donate-dollar {
  align-self: center;
  font-size: 22px;
  font-weight: bold;
}

.donate-form input {
  font: inherit;
  font-size: 20px;
  width: 8em;
  border: 2px solid #000;
  border-radius: 0;
  padding: 10px 12px;
}

.donate-form button {
  font: inherit;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 0;
  padding: 10px 28px;
  cursor: pointer;
}

.donate-form button:hover,
.donate-form button:focus-visible {
  background: #fff;
  color: #000;
}

.donate-fine {
  margin: 10px 0 0;
}

.donate-box + .nl-try {
  margin-top: 0;
}

/* Busy bar: shown when a page takes more than a moment to arrive */

.busy {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid #000;
  padding: 0 0 6px;
}

.busy-track {
  height: 6px;
  background: #fff;
  border-bottom: 1px solid #000;
}

.busy-fill {
  height: 100%;
  width: 0;
  background: #000;
}

/* Creeps toward 90%, slowing down: we can't know how long the database will take. */
.busy-fill.run {
  animation: busy-fill 12s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

@keyframes busy-fill {
  from { width: 0; }
  to { width: 90%; }
}

.busy-label {
  margin: 6px 16px 0;
  font-size: 14px;
  font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
  .busy-fill.run {
    animation: none;
    width: 90%;
  }
}

.nl-toggles {
  font-size: 14px;
  margin: 0 0 8px;
}

.nl-footnote {
  font-size: 13px;
  border-top: 1px solid #000;
  margin-top: 16px;
  padding-top: 8px;
}

.nl-footnote p {
  margin: 0 0 6px;
}

.org-headline {
  margin: -8px 0 16px;
  font-size: 15px;
}

tr.muted-row td {
  color: #555;
}

/* Support page amounts */
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.amounts button {
  font: inherit;
  font-weight: bold;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  cursor: pointer;
}

.amounts button:hover,
.amounts button:focus-visible {
  background: #000;
  color: #fff;
}

.amounts button.other-open {
  font-weight: normal;
  border-style: dashed;
}

/* Support page "Other amount" dialog */
dialog.other-amount {
  border: 2px solid #000;
  padding: 16px 20px;
  max-width: min(420px, calc(100vw - 32px));
  background: #fff;
  color: #000;
}

dialog.other-amount::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

dialog.other-amount label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

dialog.other-amount .other-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}

dialog.other-amount input[type=number] {
  font: inherit;
  width: 10em;
  padding: 6px 8px;
  border: 2px solid #000;
}

dialog.other-amount .dialog-buttons button {
  font: inherit;
  font-weight: bold;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

dialog.other-amount .dialog-buttons a {
  margin-left: 12px;
}

/* "Cite this" panel (templates/_cite.html). Wraps long URLs so it never forces a horizontal scroll. */

details.cite {
  max-width: 100%;
  margin: 0 0 12px;
  font-size: 14px;
}

details.cite > summary {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid #000;
  list-style: none;
}

details.cite > summary::-webkit-details-marker {
  display: none;
}

details.cite[open] > summary,
details.cite > summary:hover {
  background: #000;
  color: #fff;
}

details.cite > summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.cite-body {
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #000;
  border-top-width: 4px;
  padding: 8px 12px;
  margin-top: 6px;
}

.cite-item {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cite-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-cite {
  font: inherit;
  font-size: 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 1px 6px;
  cursor: pointer;
}

.copy-cite:hover {
  background: #000;
  color: #fff;
}

.cite-note {
  margin: 0;
  font-size: 12px;
}

/* Student loan trust charts: a y-axis (high, title, zero) beside the SVG. */
.sl-chart { display: flex; gap: 6px; align-items: stretch; }
.sl-chart svg { flex: 1; min-width: 0; }
.sl-yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  font-size: 0.75rem; opacity: 0.6; white-space: nowrap; padding: 2px 0; }
.sl-ytitle { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; }

/* Vendor pages: spelling variants of one address, folded under it. */
details.variants { display: inline; }
details.variants summary { display: inline; cursor: pointer; }
details.variants[open] { display: block; margin: 4px 0 4px 16px; }

/* Group headings inside a site-menu dropdown ("More data") */
.site-nav .nav-drop-menu .nav-drop-head {
  padding: 8px 12px 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Sortable answer tables (static/site.js): the sorted column's arrow */
table.sortable thead th { cursor: pointer; }
table.sortable thead th[data-sort="desc"]::after { content: " \25BC"; }
table.sortable thead th[data-sort="asc"]::after { content: " \25B2"; }

/* The short plain-English answer above plain-text search results (app/answer.py) */
.nl-answer { border-left: 4px solid #000; padding: 4px 0 4px 12px; margin: 12px 0 16px; font-size: 16px; line-height: 1.5; }
.nl-answer.loading { opacity: 0.55; font-size: 14px; }
