/* ==========================================================================
   site.css - shared site-wide layer, ported from the /update page design.
   Loaded AFTER personal_assets/main.css (Roboto, white background, #333 text,
   #477dca links, Bootstrap 3; html { font-size: 10px }, so 1.6rem = 16px).
   Used by index.html, misc.html, essays.html.

   The "ported" block keeps class names identical to _update_src/style.css so
   that file can later be deduped into an @import of this one with no HTML
   churn. Do not rename those classes here without updating _update_src too.
   ========================================================================== */

/* Bootstrap (via main.css) sets html { font-size: 10px }; raising the rem
   base scales every text size on pages that load this file by 20%. */
html { font-size: 12px; }

/* ---------------- ported from _update_src/style.css ---------------- */

/* section headings - plain, left-aligned (no dashed centered h3) */
h1.section-title {
  font-size: 2.4rem;
  margin: 70px 0 20px;
  text-align: left;
}

h2.sub-title {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
  margin: 70px 0 16px;
  text-align: left;
}

/* horizontal rule above each top-level section (not the Progress column
   subtitles, which sit nested inside .progress-grid) */
.intro-container > h1.section-title,
.intro-container > h2.sub-title {
  border-top: 1px solid #ddd;
  padding-top: 28px;
}

.bets-label {
  margin: 40px 0 8px;
  font-size: 2.4rem;
  text-align: left;
}
.bets-label b { font-weight: 500; }

.bets { text-align: left; }
.bets li { margin-bottom: 6px; }
.bets b { text-decoration: underline; }

.roles { text-align: left; }
.roles li { margin-bottom: 6px; }

.hl { color: #d93025; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #888);
  margin-right: 6px;
  vertical-align: 1px;
}

.card-name {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  text-align: left;
}

.card-meta {
  color: #888;
  font-size: 1.3rem;
  margin: 0 0 6px;
  text-align: left;
}

.card-links { font-size: 1.3rem; text-align: left; margin: 0; }
.card-links .sep { color: #888; }

/* ---------------- global overrides ---------------- */

p, ul, ol { text-align: left; }
.muted { color: #888; }

/* ---------------- shared components ---------------- */

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 14px;
}

.link-btn {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 8px 22px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.link-btn:hover,
.link-btn:focus {
  background: #555;
  color: #fff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.more-link { color: #888; font-size: 1.4rem; text-decoration: none; }
.more-link:hover { color: #333; }

.back-link { color: #888; font-size: 1.4rem; text-decoration: none; }
.back-link:hover { color: #333; }

/* ---------------- hero ---------------- */

/* one row: photo | name | intro + buttons; stacks below 767px */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
}
h1.hero-name { margin: 0; flex-shrink: 0; }
.hero-body { flex: 1; min-width: 280px; }

@media (max-width: 767px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
}

.profile-img {
  display: block;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  background-image: url(../personal_images/profilepic4.jpg);
  background-size: cover;
  background-position: center 25%;
  border-radius: 20px;
}

details.goals { margin: 0 0 16px; text-align: left; }
details.goals summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: #888;
}
details.goals summary::-webkit-details-marker { display: none; }
details.goals summary:hover { color: #333; }
.goal-marker {
  display: inline-block;
  transition: transform 0.15s ease;
}
details.goals[open] .goal-marker { transform: rotate(45deg); }
details.goals > ul,
details.goals > ol { margin-top: 10px; }
details.goals .bets { font-size: 2rem; }
details.goals .bets li { margin-bottom: 8px; }

/* ---------------- progress (dual column) ---------------- */

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  align-items: start;
}
.progress-col > h2.sub-title:first-child { margin-top: 20px; }

@media (max-width: 767px) {
  .progress-grid { grid-template-columns: 1fr; }
}

.mission-lead {
  font-size: 1.8rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px;
  text-align: left;
}

.pub-note { color: #888; font-size: 1.2rem; margin: 0 0 12px; text-align: left; }

.pub-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pub-teaser {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  margin-bottom: 10px;
}
.pub-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 4px;
  text-align: left;
}
.pub-authors {
  font-size: 1.3rem;
  color: #888;
  margin: 0 0 2px;
  text-align: left;
}
.pub-authors a { color: #888; text-decoration: underline; }
.pub-authors b { color: #333; }
.pub-venue { font-size: 1.3rem; margin: 0 0 4px; text-align: left; }
.pub-links { font-size: 1.3rem; margin: 0; text-align: left; }
.pub-summary {
  font-size: 1.25rem;
  font-style: italic;
  color: #888;
  margin: 6px 0 0;
  text-align: left;
}

.win-card { margin: 16px 0; }

/* ---------------- video (ported from aer/style.css) ---------------- */

.video-box {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 16px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #000;
}
.video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  cursor: pointer;
}
.video-facade:hover, .video-facade:focus { background: #000; }
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  transition: background 150ms ease;
}
.play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .play-btn, .video-facade:focus .play-btn { background: #c00; }

/* ---------------- misc page entries ---------------- */

.media-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.media-card img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
/* "mcard-body", not "media-body": Bootstrap 3 (via main.css) styles
   .media-body as a 10000px-wide table-cell */
.media-card .mcard-body { flex: 1; min-width: 0; }
.media-card .mcard-body p { margin: 0 0 6px; }

@media (max-width: 767px) {
  .media-card { flex-direction: column; }
  .media-card img { max-width: 100%; }
}

.entry-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 4px;
  text-align: left;
}

.exp { margin-bottom: 24px; }
