@charset "utf-8";
/* ***********************************************************************
 *
 *  File:   members.css
 *
 *  Brief:  Styles for the member overview table and individual member profile pages.
 *
 *  Author: Jomar Hønsi, 2011-2026
 *
 * ************************************************************************/

table.members {
  font-size: 13px;
  background-color: transparent;
  margin: auto;
  width: min(760px, 92%);
  text-align: left;
  border-spacing: 0 4px;

  & caption {
    padding: 8px 0 14px;
    color: #263d2b;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
  }

  & th {
    text-align: left;
    padding: 8px 14px;
    color: #53635a;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: transparent;
  }

  & td {
    padding: 12px 14px;
    font-size: 1em;
    background-color: var(--bg-text-panel);
    border-top: 1px solid #dbe3dc;
    border-bottom: 1px solid #dbe3dc;
  }

  & td:first-child {
    border-left: 1px solid #dbe3dc;
    border-radius: 8px 0 0 8px;
  }

  & td:last-child {
    border-right: 1px solid #dbe3dc;
    border-radius: 0 8px 8px 0;
  }

  & tr:not(.aux):not(:last-child):hover td {
    background-color: #f3f8f3;
    border-color: #bed1c1;
  }

  & tr.aux td {
    color: #7b847d;
    background-color: #f4f5f4;
    font-style: italic;
  }

  & .amount, & .amount-l, & .amount-g {
    padding-right: 18px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  & .amount-l {
    color: #a33c32;
  }

  & .amount-g {
    color: #28733e;
    font-weight: bold;
  }

  & tr:last-child th {
    padding-top: 18px;
    color: #263d2b;
    font-size: 0.8rem;
  }

  & tr:last-child th.amount-g,
  & tr:last-child th.amount-l {
    padding-right: 18px;
    font-size: 1rem;
    text-transform: none;
  }
}

/* Member profiles */
table.profile {
  padding: 0;
  background-color: transparent;
  font-size: 13px;
  margin: auto;
  width: min(900px, 96%);
  text-align: left;
  margin-top: 28px;
  border-collapse: separate;
  border-spacing: 0;
  color: #26332a;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(35, 55, 39, 0.12);

  & th {
    text-align: left;
    padding: 14px 18px;
    background-color: #2f5a3a;
    color: white;
    letter-spacing: 0.02em;
    font-size: 1rem;
    font-weight: 600;
  }

  & td {
    padding: 18px;
    background-color: var(--bg-text-panel);
    vertical-align: top;
    border-right: 1px solid #e0e7e1;
    min-height: 130px;
  }

  & td:last-child {
    border-right: 0;
  }

  & h4 {
    margin: 0 0 8px;
    padding: 0;
    color: #2f5a3a;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & h4 ~ h4 {
    margin-top: 22px;
  }

  /* Circle */
  & span.rank-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    background-color: #2f5a3a;
    font-size: 0.9em;
    color: #eef4ef;
    border-radius: 50%;
    font-variant-numeric: tabular-nums;
  }

  & span.rank-2 {
    margin-left: 8px;
    display: inline-block;
    padding: 3px 8px;
    color: #0a552b;
    background-color: #eef4ef;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
  }

  & span.sub-header {
    display: inline-block;
    margin-left: 16px;
    color: #d7e7d9;
    font-size: 0.78rem;
    font-weight: normal;
    letter-spacing: 0.03em;
  }

  & a.facebook, & a.facebook:visited {
    clear: both;
    color: white;
    font-size: 0.8rem;
    text-align: center;
    background-color: #4267a9;
    text-decoration: none;
    display: inline-block;
    margin: 16px 0 0 10px;
    padding: 7px 13px;
    border: 0;
    border-radius: 5px;
    width: auto;
    transition: background-color 160ms ease, transform 160ms ease;
  }

  & a.facebook:hover {
    background-color: #31528a;
    transform: translateY(-1px);
  }
}

@media (max-width: 700px) {
  table.members {
    width: 100%;
  }

  table.members th,
  table.members td {
    padding-left: 9px;
    padding-right: 9px;
  }

  table.profile {
    width: 100%;
    display: block;
    box-shadow: 0 5px 16px rgba(35, 55, 39, 0.1);
  }

  table.profile col,
  table.profile tbody,
  table.profile tr,
  table.profile td {
    display: block;
    width: auto;
  }

  table.profile tr:first-child th {
    border-radius: 8px 8px 0 0;
  }

  table.profile td {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e0e7e1;
  }

  table.profile td:last-child {
    border-radius: 0 0 8px 8px;
  }

  table.profile span.sub-header {
    display: block;
    margin: 4px 0 0;
  }
}