/* Make the whole site feel cleaner */
body {
  font-size: 17px;
  line-height: 1.7;
}

/* Improve headings */
h1, h2, h3 {
  font-weight: 700;
}

/* Make homepage intro more elegant */
.quarto-about-jolla {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Make links look cleaner */
a {
  text-decoration: none;
}

/* Add soft rounded style to callout boxes */
.callout {
  border-radius: 12px;
}

/* Make navbar cleaner */
.navbar-title {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Site-wide language selector */
.language-switcher-item {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--bs-navbar-color);
}

.language-switcher-icon {
  font-size: 1rem;
  line-height: 1;
}

.language-switcher-select {
  max-width: 9.25rem;
  min-height: 2rem;
  padding: 0.25rem 1.85rem 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: var(--bs-navbar-color);
  background-color: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.language-switcher-select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.language-switcher-select option {
  color: #212529;
  background-color: #ffffff;
}

@media (max-width: 991.98px) {
  .language-switcher-item {
    margin: 0.6rem 0 0.4rem;
  }

  .language-switcher-select {
    max-width: 12rem;
  }
}

/* Better image styling */
img {
  border-radius: 12px;
}

/* Limit page width for readability */
.page-columns .content {
  max-width: 950px;
}

/* Let the dating self-knowledge table keep test links on one line */
.self-knowledge-tools-table {
  width: min(1120px, calc(100vw - 2rem));
  max-width: min(1120px, calc(100vw - 2rem));
  overflow-x: auto;
}

.self-knowledge-tools-table table {
  min-width: 1040px;
}

.self-knowledge-tools-table th:nth-child(2),
.self-knowledge-tools-table td:nth-child(2) {
  width: 16rem;
  white-space: nowrap;
}

/* Sports analytics cards and practice image gallery */
.bow-setup-hero {
  margin: 1.1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.95), rgba(241, 232, 211, 0.72));
  border: 1px solid rgba(112, 84, 38, 0.14);
  box-shadow: 0 14px 32px rgba(60, 45, 25, 0.12);
}

.bow-setup-hero img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #fbf5e8;
}

.sight-setup-note {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 5px solid #305f8f;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230, 241, 250, 0.95), rgba(255, 248, 232, 0.85));
  box-shadow: 0 8px 22px rgba(28, 45, 65, 0.08);
}

.sight-setup-note p {
  margin-bottom: 0;
}

.sight-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}

.sight-setup-grid img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #eef4f8;
  border: 1px solid rgba(24, 62, 93, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(18, 45, 70, 0.14);
}

.score-legend {
  margin: 0.8rem 0 1rem;
}

.score-badge {
  display: inline-flex;
  min-width: 4rem;
  justify-content: center;
  align-items: center;
  margin: 0.15rem 0.2rem;
  padding: 0.12rem 0.45rem;
  border: 2px solid #888;
  border-radius: 4px;
  font-weight: 700;
}

.archery-scorecard-wrap {
  overflow-x: auto;
  margin: 0.8rem 0 1.3rem;
}

.archery-scorecard {
  width: max-content;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  border: 2px solid #8b8b8b;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.archery-scorecard th,
.archery-scorecard td {
  min-width: 3.4rem;
  padding: 0.42rem 0.55rem;
  border: 2px solid #8b8b8b;
  background: #efefef;
  color: #111;
  font-weight: 500;
}

.archery-scorecard th {
  background: #dedede;
  font-weight: 700;
}

.archery-scorecard .scorecard-title th,
.archery-scorecard tr.scorecard-title th {
  background: #eeeeee;
  font-size: 1.05rem;
  text-align: left;
}

.archery-scorecard td.score-yellow,
.score-badge.score-yellow {
  background: #ffd70a;
  color: #111;
}

.archery-scorecard td.score-red,
.score-badge.score-red {
  background: #f3120b;
  color: #fff;
}

.archery-scorecard td.score-blue,
.score-badge.score-blue {
  background: #12b7e8;
  color: #111;
}

.archery-scorecard td.score-black,
.score-badge.score-black {
  background: #050505;
  color: #fff;
}

.archery-scorecard td.score-white,
.score-badge.score-white {
  background: #fffdf3;
  color: #111;
}

.archery-summary-table {
  min-width: 720px;
}

.sports-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.sports-metric-card {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(138, 158, 38, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.sports-metric-card p {
  margin-bottom: 0;
}

.sports-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

.sports-image-grid img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f4f0dc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.golf-science-note {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1.15rem;
  border-left: 5px solid #6c7d16;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 246, 220, 0.96), rgba(232, 244, 232, 0.86));
  box-shadow: 0 8px 22px rgba(64, 74, 22, 0.08);
}

.golf-science-note p {
  margin-bottom: 0;
}

.golf-fundamentals-note {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 5px solid #7a4b18;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 245, 224, 0.96), rgba(238, 247, 226, 0.88));
  box-shadow: 0 8px 22px rgba(84, 62, 30, 0.08);
}

.golf-fundamentals-note p {
  margin-bottom: 0;
}

.golf-fundamentals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.golf-fundamental-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(122, 75, 24, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 250, 238, 0.98), rgba(242, 248, 232, 0.92));
  box-shadow: 0 10px 24px rgba(64, 51, 28, 0.08);
}

.golf-fundamental-card p {
  margin-bottom: 0;
}

.golf-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}

.golf-table-wrap table {
  min-width: 920px;
}

.flight-training-note {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 5px solid #1c6b79;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 245, 246, 0.95), rgba(255, 250, 232, 0.9));
  box-shadow: 0 8px 22px rgba(20, 62, 74, 0.08);
}

.flight-training-note p {
  margin-bottom: 0;
}

.flight-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}

.flight-visual-grid img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f7f4ea;
  border: 1px solid rgba(17, 49, 65, 0.14);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(17, 49, 65, 0.14);
}

.cycling-training-note {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 5px solid #2f7d47;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(231, 247, 230, 0.96), rgba(255, 249, 226, 0.88));
  box-shadow: 0 8px 22px rgba(38, 90, 48, 0.08);
}

.cycling-training-note p {
  margin-bottom: 0;
}

.cycling-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}

.cycling-visual-grid img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #fbfaf3;
  border: 1px solid rgba(41, 92, 55, 0.14);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(35, 74, 45, 0.14);
}

.cycling-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}

.cycling-table-wrap table {
  min-width: 1050px;
}

.swimming-training-note {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 5px solid #0e92b8;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(224, 247, 252, 0.96), rgba(240, 249, 255, 0.9));
  box-shadow: 0 8px 22px rgba(21, 83, 112, 0.08);
}

.swimming-training-note p {
  margin-bottom: 0;
}

.swimming-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}

.swimming-visual-grid img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #f7fbff;
  border: 1px solid rgba(14, 105, 145, 0.14);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(14, 66, 94, 0.14);
}

.swimming-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}

.swimming-table-wrap table {
  min-width: 980px;
}

/* Make CV/research lists easier to read */
li {
  margin-bottom: 0.35rem;
}

/* Homepage profile photo */
.quarto-about-jolla img {
  max-width: 280px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Homepage intro spacing */
.quarto-about-jolla {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
