html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.learning-note-header {
  align-items: stretch;
  background: #fbfbfc;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.learning-note-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.learning-note-kicker,
.learning-note-meta {
  align-items: center;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.55rem;
}

.learning-note-kicker span,
.learning-note-meta span,
.learning-note-meta a {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  color: #6c757d;
  line-height: 1.25;
  padding: 0.25rem 0.6rem;
  text-decoration: none;
}

.learning-note-kicker a {
  font-weight: 600;
  text-decoration: none;
}

.learning-note-title {
  color: #212529;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0;
}

.learning-note-side {
  align-items: flex-end;
  display: flex;
  flex: 0 0 280px;
  flex-direction: column;
  gap: 0.75rem;
}

.learning-note-thumbnail {
  aspect-ratio: 16 / 9;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  max-width: 280px;
  object-fit: cover;
  width: 100%;
}

.learning-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.job-status-panel {
  border-bottom: 1px solid #dee2e6;
  color: #495057;
  padding-bottom: 0.75rem;
}

.job-status-panel summary {
  cursor: pointer;
  font-weight: 600;
}

.job-status-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.job-status-item {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.learning-note-flow {
  display: grid;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 980px;
}

.learning-note-section {
  margin-bottom: 0;
}

.reader-section-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.reader-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.reader-header-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reader-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.reader-meta span {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.25rem 0.55rem;
}

.transcript-reader {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  max-height: 68vh;
  overflow: auto;
}

.transcript-content {
  color: #212529;
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
  padding: 1.25rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.summary-content {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  color: #212529;
  font-size: 1rem;
  line-height: 1.75;
  padding: 1.25rem;
}

.summary-content > :first-child {
  margin-top: 0;
}

.summary-content > :last-child {
  margin-bottom: 0;
}

.summary-content h1,
.summary-content h2,
.summary-content h3 {
  line-height: 1.3;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.summary-content h1 {
  font-size: 1.35rem;
}

.summary-content h2 {
  font-size: 1.15rem;
}

.summary-content h3 {
  font-size: 1.05rem;
}

.summary-content ul,
.summary-content ol {
  padding-left: 1.35rem;
}

.summary-content li {
  margin-bottom: 0.35rem;
}

.summary-content p {
  margin-bottom: 0.9rem;
}

.summary-content code {
  background: #f8f9fa;
  border-radius: 0.25rem;
  color: #212529;
  padding: 0.1rem 0.25rem;
}

@media (max-width: 767.98px) {
  .learning-note-header {
    display: block;
    padding: 0.875rem;
  }

  .learning-note-title {
    font-size: 1.35rem;
  }

  .learning-note-side {
    align-items: stretch;
    margin-top: 0.9rem;
  }

  .learning-note-thumbnail {
    max-width: none;
  }

  .learning-note-actions {
    justify-content: flex-start;
  }

  .reader-section-header {
    display: block;
  }

  .reader-meta {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .reader-header-side {
    align-items: flex-start;
  }

  .reader-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .transcript-reader {
    max-height: 62vh;
  }

  .transcript-content {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
