/* A member's lists of notes */

.member-header {
  padding-top: clamp(28px, 5vw, 44px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.member-header__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.member-header h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs__tab {
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-current { border-bottom-color: var(--red); color: var(--ink); }

.member-notes { padding-top: 24px; }
.member-notes__summary { font-size: 0.925rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.notes-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.notes-table th, .notes-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.notes-table tbody tr:last-child td { border-bottom: 0; }
.notes-table tbody tr:hover { background: var(--paper-2); }
.notes-table th { background: var(--paper-2); font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.notes-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.notes-table .nowrap { white-space: nowrap; }
.notes-table__comments { color: var(--ink-2); }
.notes-table__action { text-align: right; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover, .sort-link.is-active { color: var(--ink); }

.note-chip.note-chip--small { display: inline-block; min-width: 0; padding: 0.1em 0.45em; font-size: 0.8rem; margin-right: 4px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0 0; }
.pager__page, .pager__step {
  min-width: 2.4em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--ink-2);
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.pager__page:hover, .pager__step:hover { border-color: var(--red); color: var(--ink); }
.pager__page.is-current { background: var(--red); border-color: var(--red); color: #fff; }

.button--outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button--outline:hover { background: var(--paper-3); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .pager__page.is-current { color: #16181b; }
  .button--outline, .button--outline:hover { color: var(--ink); }
}
.note-header form.button_to { display: inline-block; margin-top: 14px; }

/* On phones, drop the less important columns so the table fits. */
@media (max-width: 640px) {
  .notes-table__comments, .notes-table__year { display: none; }
  .notes-table th, .notes-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .notes-table__place, .notes-table__entered { display: none; }
}

/* Member profiles */

.profile__tagline { margin: -8px 0 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 46em; }
.profile { padding-top: 24px; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.profile-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.profile-stat dt { color: var(--ink-3); font-size: 0.825rem; }
.profile-stat dd { margin: 2px 0 0; font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-stat dd a { color: var(--ink); text-decoration: none; }
.profile-stat dd a:hover { color: var(--red); }
.eyebrow a { color: inherit; }
.levels-table tr:target td, .levels-table tr.is-current td { background: var(--red-soft); }
.levels-table__you { margin-left: 8px; color: var(--ink-3); font-size: 0.8rem; font-weight: 400; }
.levels__rules { margin: 0 0 24px; }
.levels { padding-block: 24px 48px; }
.levels-table tr { scroll-margin-top: 80px; }
.levels-table tbody th { background: transparent; color: var(--ink); font-size: inherit; font-weight: 600; letter-spacing: normal; text-transform: none; }
.levels-table tr:target th, .levels-table tr.is-current th { background: var(--red-soft); }
.profile__columns { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.profile__columns .card + .card { margin-top: 0; }
.profile-details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 0.925rem; }
.profile-details dt { color: var(--ink-3); }
.profile-details dd { margin: 0; overflow-wrap: anywhere; }
.profile__about { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .profile__columns { grid-template-columns: 1fr; }
}

.login-list__name.is-highlighted { font-weight: 800; }

/* Search */

.search { padding-top: 24px; }
.search > * { max-width: 900px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 24px; }
.search-bar input { flex: 1; }
.search-section { margin-bottom: 28px; }
.search-section h2 { font-size: 1.1rem; }
.search-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.search-list li { padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.search-list li:last-child { border-bottom: 0; }
.search-list__quote { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.925rem; }
.search-form { display: grid; gap: 14px; margin-bottom: 20px; }
.search-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.search-form legend { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.search-form__options { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.search-form > .button { justify-self: start; }
.search-form__hint { margin: 0; font-size: 0.85rem; }
.high-low__masked { margin-top: 16px; }
.notes-table__private { display: block; color: var(--ink-3); font-size: 0.85rem; }
.search-form .travel-form__side { display: block; }
.search-form .travel-form__side .field-row { margin: 0; }
.counterfeit-form { max-width: 420px; }
.counterfeit-form input.serial { text-transform: uppercase; }
.counterfeit-result { max-width: 46em; }

/* Top ten */

.top-ten { padding-top: 24px; }
.top-ten__snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.top-ten__snapshot .profile-stat p { margin: 2px 0 0; font-size: 0.875rem; }
.top-ten__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.top-ten__groups .card + .card { margin-top: 0; }
.link-grid--stacked { grid-template-columns: 1fr; gap: 8px; }
.link-grid--stacked a { padding: 10px 12px; }
.top-ten__note { margin-top: 20px; font-size: 0.85rem; }

.newsletter-frame { width: 100%; max-width: 680px; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Profile photos */
.profile-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper-2); flex: none; }
.profile-photo--large { width: 160px; height: 160px; border-radius: var(--radius); object-fit: contain; }
.profile__name { display: flex; align-items: center; gap: 14px; }
.settings__photo-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.settings__photo-form { display: grid; gap: 8px; margin-bottom: 12px; }

/* Recruits */
.recruits__filter { margin-bottom: 16px; }
.recruits__filter label { color: var(--ink-3); font-size: 0.875rem; }
