/* Container */
.aboutme-card {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: var(--gap);
  background: var(--card-bg);
  border: var(--card-bd);
  border-radius: var(--radius);
  padding: var(--pad);
  align-items: stretch;
}

/* Left column (image) */
.aboutme-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 420px;
}

.aboutme-photo {
  flex: 7 1 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.aboutme-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.story-focuses {
  flex: 3 1 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* tweak to 4 if your icons are tiny */
  gap: 8px;
  align-content: start;
}
.story-focuses img {
  width: 100%;
  aspect-ratio: 1 / 1;               /* keeps them square */
  object-fit: contain;               /* preserves PNG edges/transparency */
  background: rgba(119, 51, 15, 0.5);      /* subtle backdrop for transparency */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 6px;                      /* breathing room for icons */
}

/* Right column (title + table) */
.aboutme-info {
  width: 100%;
}

.aboutme-name {
  margin: 0 0 10px;
  line-height: 1.2;
}

.aboutme-info h2,
h2 .aboutme-name {
    text-align: center !important;
}

.aboutme-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* prevents layout wiggle on long text */
  color: var(--text);
}

.aboutme-table th,
.aboutme-table td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.aboutme-table th {
  width: 32%;              /* keeps the label column tidy */
  text-align: left;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Responsive: stack on small screens */
@media (max-width: 720px) {
  .aboutme-card {
    grid-template-columns: 1fr;
  }
  .aboutme-photo img {
    /* optional: make the portrait a nice banner on mobile */
    width: 100%;
  }
  .aboutme-table th {
    width: 38%;
  }
  .aboutme-left {
    min-height: 360px;               /* adjust if you want a shorter mobile card */
  }
  .aboutme-extras {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* 4-col table layout */
.aboutme-table.four-col {
  table-layout: fixed;
}

.aboutme-table.four-col .label-col { width: 22%; }
.aboutme-table.four-col .value-col { width: 28%; }
/* 22 + 28 + 22 + 28 = 100% */

.aboutme-table.four-col th {
  font-style: italic;      /* matches your markup intent */
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.aboutme-table.four-col td {
  word-wrap: break-word;
}

/* Small screens: keep content usable via horizontal scroll */
.aboutme-info {
  overflow-x: auto;     /* allows table to scroll if it gets tight */
}

/* Optional: if you prefer wrapping instead of scrolling on narrow screens,
   you can drop to two columns by stacking each pair into its own row.
   Uncomment to try it: */


@media (max-width: 560px) {
  .aboutme-table.four-col,
  .aboutme-table.four-col tbody,
  .aboutme-table.four-col tr,
  .aboutme-table.four-col th,
  .aboutme-table.four-col td {
    display: block;
  }

  .aboutme-table.four-col tr {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 8px;
  }

  .aboutme-table.four-col th { margin-top: 6px; }
}