/* Public Trust Center (CMR-2026-11-17-677).

   Every selector is prefixed trust_ and scoped under .trust_page. That is not tidiness: the
   approved design uses names like card, tile, mark, wrap and badge, every one of which already
   means something to Bootstrap 5 or to global.css, and an unprefixed .card here would restyle
   components across the whole platform.

   Tokens come from css/design_system.css, which header_files.php loads on every page. Nothing
   here declares a :root variable, so this file cannot change any other page. */

.trust_page
{
  font-family: var(--font);
  color: var(--ink);
}

.trust_wrap
{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- hero ---- */

.trust_hero
{
  padding: 40px 0 26px;
}

.trust_hero h1
{
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.trust_lede
{
  margin: 12px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* the verified chip. a live-looking dot beside a date that is a real observation, not a build time */
.trust_live
{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius_pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow_xs);
}

.trust_dot
{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

/* ---- sections ---- */

.trust_section
{
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.trust_section h2
{
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.trust_sub
{
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---- category navigation ---- */

.trust_catnav
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.trust_catnav a
{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius_pill);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow_xs);
  text-decoration: none;
}

.trust_catnav a:hover
{
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* ---- category heading ---- */

.trust_cathead
{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 10px;
  flex-wrap: wrap;
}

.trust_cathead h3
{
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

/* 41px puts this count on the same right edge as every group count below it: the card's 1px
   border, the summary's 16px padding, the 12px gap and the 12px marker column. */
.trust_cathead .trust_cnt
{
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 41px;
}

.trust_cathead p
{
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  flex: 1 0 100%;
}

/* ---- the control card ---- */

.trust_card
{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow_xs);
  overflow: hidden;
}

details.trust_dom
{
  border-top: 1px solid var(--line);
}

details.trust_dom:first-of-type
{
  border-top: none;
}

details.trust_dom > summary
{
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  color: var(--ink);
}

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

/* the group name takes the slack. a three-item row spread edge to edge would put the count in
   the middle, where it drifts with the length of the name and no two counts line up. */
details.trust_dom > summary > span:first-child
{
  flex: 1 1 auto;
  min-width: 0;
}

details.trust_dom > summary .trust_dc
{
  flex: 0 0 auto;
  min-width: 78px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

details.trust_dom > summary::after
{
  content: '+';
  color: var(--muted);
  font-weight: 600;
  flex: 0 0 12px;
  width: 12px;
  text-align: right;
}

details.trust_dom[open] > summary::after
{
  content: '−';
}

details.trust_dom > summary:hover
{
  background: var(--page);
}

/* ---- the control rows ---- */

.trust_table
{
  width: 100%;
  border-collapse: collapse;
}

.trust_table td
{
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13.5px;
}

.trust_table tr:last-child td
{
  border-bottom: none;
}

.trust_cname
{
  font-weight: 600;
  color: var(--ink);
}

.trust_cdesc
{
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
  max-width: 620px;
  line-height: 1.55;
}

.trust_mcell
{
  width: 56px;
  text-align: right;
  vertical-align: middle;
}

/* the mark asserts one thing only -- that this is a control we operate. the page says so once,
   at the head of the list, rather than repeating a word on every row. */
.trust_mark
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ---- requests ---- */

.trust_grid3
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.trust_tile
{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow_xs);
}

.trust_tile h4
{
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.trust_tile p
{
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.trust_tile .trust_meta
{
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.trust_tile .trust_meta b
{
  color: var(--ink);
  font-weight: 600;
}

/* ---- unavailable ---- */

.trust_unavailable
{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0 40px;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 860px)
{
  .trust_grid3
  {
    grid-template-columns: 1fr;
  }

  .trust_hero h1
  {
    font-size: 27px;
  }

  .trust_table td
  {
    padding-left: 13px;
    padding-right: 13px;
  }
}
