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;
  background: #f5f7fb;
  color: #182230;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
}

.page-narrow {
  max-width: 680px;
  margin: 0 auto;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 .125rem .5rem rgba(31, 41, 55, .06);
}

.metric-card span {
  color: #667085;
  font-size: .875rem;
}

.metric-card strong {
  font-size: 2rem;
  line-height: 1;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e7eaf0;
}

.feed-row:first-of-type {
  border-top: 0;
}

.article-url {
  max-width: 520px;
}

.article-detail {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.article-meta {
  padding: 1rem;
  background: #f8fafc;
  border-radius: .5rem;
}

.classification-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #dbe4f0;
  border-radius: .75rem;
  background: #fbfdff;
}

.generated-draft {
  padding-top: 1rem;
  border-top: 1px solid #e7eaf0;
}

.generated-draft summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
}

.generated-draft-content {
  padding: 1rem;
  white-space: pre-wrap;
  border: 1px solid #dbe4f0;
  border-radius: .5rem;
  background: #fff;
  line-height: 1.6;
}

.extracted-content {
  white-space: pre-wrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 78ch;
}

.article-image {
  display: block;
  max-width: min(100%, 900px);
  max-height: 560px;
  margin-bottom: 1.5rem;
  border-radius: .75rem;
  object-fit: contain;
}

.prompt-editor {
  font-family: Consolas, "Courier New", monospace;
  font-size: .9rem;
}

.prompt-version {
  padding: 1rem 0;
  border-top: 1px solid #e7eaf0;
}

.prompt-version summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
}

.prompt-version pre {
  margin-top: 1rem;
  padding: 1rem;
  white-space: pre-wrap;
  background: #f8fafc;
  border-radius: .5rem;
  font-size: .85rem;
}

.prompt-edit-page {
  max-width: 900px;
}

.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;
}
