/* Mobile-only enhancement for the representative projects table.
   Desktop and printed resumes continue to use the full four-column table. */
#representative .resume-mobile-selected { display: none; }

@media screen and (max-width: 820px) {
  #representative.resume-mobile-ready .table-wrap { display: none; }
  #representative.resume-mobile-ready .resume-mobile-selected { display: block; }

  .resume-mobile-selected__list { display: grid; gap: 10px; }
  .resume-mobile-selected[data-expanded="false"] .resume-mobile-card:nth-child(n + 6) { display: none; }
  .resume-mobile-card {
    border: 1px solid var(--line, #dbe2e9);
    border-radius: 12px;
    background: var(--soft-2, #f8fafc);
    overflow: hidden;
  }
  .resume-mobile-card summary {
    display: block;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
  }
  .resume-mobile-card summary::-webkit-details-marker { display: none; }
  .resume-mobile-card summary:focus-visible,
  .resume-mobile-more:focus-visible { outline: 3px solid #87b0d7; outline-offset: -3px; }

  .resume-mobile-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--muted, #5f6d7c);
    font-size: .75rem;
    line-height: 1.4;
  }
  .resume-mobile-card__date {
    flex: 0 1 auto;
    min-width: 0;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .resume-mobile-card__category {
    flex: 0 1 53%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
  }
  .resume-mobile-card__title {
    display: block;
    margin-bottom: 4px;
    color: var(--navy, #173b63);
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }
  .resume-mobile-card__duty {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: #4b5865;
    font-size: .83rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .resume-mobile-card[open] .resume-mobile-card__duty {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }
  .resume-mobile-card__toggle {
    display: block;
    margin-top: 6px;
    color: var(--navy-2, #245887);
    font-size: .76rem;
    font-weight: 650;
    text-align: right;
  }
  .resume-mobile-card[open] .resume-mobile-card__toggle-closed,
  .resume-mobile-card:not([open]) .resume-mobile-card__toggle-open { display: none; }
  .resume-mobile-card__extra {
    border-top: 1px solid var(--line, #dbe2e9);
    padding: 9px 14px 11px;
    color: var(--muted, #5f6d7c);
    font-size: .8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .resume-mobile-more {
    display: block;
    min-height: 44px;
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--line, #dbe2e9);
    border-radius: 9px;
    background: white;
    color: var(--navy, #173b63);
    font-size: .85rem;
    font-weight: 750;
    cursor: pointer;
  }
  .resume-mobile-more[hidden] { display: none; }
}
@media print {
  #representative .resume-mobile-selected { display: none !important; }
  #representative .table-wrap { display: block !important; }
}
