/* Dioscope · Dermatology Board Review · About us — complements styles.css and derma.css (same tokens, same light/dark
   themes). Hero with the course home in a laptop, why the course exists, screens of the course, team cards and company
   details. */

/* ---------- Hero ---------- */
.crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.crumb a:hover { border-bottom-color: currentColor; }

/* ---------- Why: title on the left, text on the right ---------- */
.why { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .why { grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 4rem; } }
.why__text .lead + .lead { margin-top: 1.25rem; }
@media (min-width: 1024px) { .why__text { padding-top: .5rem; } }

/* stills from the mechanism videos under the text (same cards as the course page) */
.about-stills { margin-top: 2.5rem; }

/* ---------- Inside the course: two real screens of the app ---------- */
.inside { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .inside { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.inside__item { margin: 0; border: 1px solid var(--line-2); border-radius: 1.25rem; overflow: hidden; background: var(--card); box-shadow: 0 18px 40px var(--shadow); }
.inside__item img { display: block; width: 100%; height: auto; background: #f4f7fb; }
.inside__item figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .9rem 1.1rem 1rem; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.inside__item figcaption strong { font-weight: 500; color: var(--ink); }

/* ---------- Team cards ---------- */
.team { display: grid; gap: 1.25rem; }
@media (min-width: 900px) and (max-width: 1199px) { .team { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.person {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding: 1.5rem; border-radius: 1.5rem; border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 768px) { .person { grid-template-columns: 7rem minmax(0, 1fr); padding: 1.75rem; } }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
/* three in a row: photo above the text */
@media (min-width: 1200px) { .person { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; } .person img { width: 7rem; } }
.person__role { font-size: .85rem; font-weight: 500; color: var(--blue-soft); }
.person__name { margin-top: .2rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.person__bio { margin-top: .4rem; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }

/* LinkedIn links */
.li-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--blue-soft); text-decoration: none; }
.li-link svg { width: 1rem; height: 1rem; fill: currentColor; flex: none; }
.li-link:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Company details ---------- */
.facts { display: grid; margin: 0; }
.facts > div { display: grid; gap: .3rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .facts > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; } }
.facts dt { font-size: .85rem; color: var(--ink-3); letter-spacing: .02em; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.facts a { color: var(--blue-soft); }

/* ---------- Focus ---------- */
.crumb a:focus-visible, .li-link:focus-visible, .facts a:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: .2rem;
}

@media (prefers-reduced-motion: reduce) {
  .crumb a { transition: none; }
}
