/* Saved tastings read as pages from the user's coffee notebook. */
.nb-tasting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 30px 0 40px;
}
.nb-tasting-paper {
  background: #fffdf7;
  color: #22362a;
  border: 1px solid #c9c3b4;
  border-radius: 3px 14px 14px 3px;
  box-shadow: 0 7px 20px #2630220d;
  padding: 28px 30px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.nb-tasting-paper time {
  display: block;
  color: #626454;
  font: 13px/1.6 Arial, sans-serif;
  margin-bottom: 12px;
}
.notebook .nb-tasting-paper h2 {
  font: 400 30px/1.2 Georgia, serif;
  margin: 0 0 10px;
  letter-spacing: -.5px;
}
.notebook .nb-tasting-method {
  color: #59614f;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.nb-paper-lines {
  background: repeating-linear-gradient(to bottom, transparent 0 31px, #d8ddcf 31px 32px);
  background-position: 0 3px;
  min-height: 100px;
}
.notebook .nb-paper-lines p {
  font: 17px/32px Georgia, serif;
  margin: 0;
  padding: 0 0 4px;
  white-space: pre-wrap;
}
.nb-tasting-grid .nb-paper-lines p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-paper-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
}
.nb-paper-actions .nb-link {
  min-height: 44px;
}
.nb-paper-actions .nb-delete-tasting {
  color: #943a30;
  margin-left: auto;
}
.nb-tasting-sheet {
  max-width: 960px;
  margin: 12px auto 32px;
  padding: 38px clamp(24px, 5vw, 64px) 44px;
}
.notebook .nb-tasting-sheet h1 {
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -1.4px;
  margin: 0 0 14px;
}
.nb-tasting-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  border-top: 1px solid #c9c3b4;
  border-bottom: 1px solid #c9c3b4;
  padding: 24px 0;
  margin: 24px 0 32px;
}
.nb-tasting-facts dt, .nb-sensory-values dt {
  color: #59614f;
  font-size: 13px;
}
.nb-tasting-facts dd {
  margin: 7px 0 0;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.nb-paper-section {
  margin: 32px 0;
}
.nb-sensory-values {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin: 20px 0 0;
}
.nb-sensory-values dd {
  font: 30px/1.5 Georgia, serif;
  margin: 4px 0 0;
}
.nb-sensory-values dd span {
  color: #626454;
  font: 13px Arial, sans-serif;
}
.nb-pending-tastings {
  border-top: 1px solid #b5b4a7;
  margin: 36px 0;
  padding-top: 20px;
}
.nb-pending-tastings summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}
.nb-tasting-confirm {
  padding: 28px;
  background: #fffdf7;
  color: #22362a;
  border: 1px solid #a8a996;
  border-radius: 12px;
}
.nb-tasting-confirm h2 {
  font: 30px/1.2 Georgia, serif;
}
.nb-tasting-confirm p {
  line-height: 1.6;
}
.nb-tasting-confirm [role=alert] {
  color: #943a30;
}
.nb-tasting-confirm .nb-delete-tasting {
  color: #943a30;
  border-color: #943a30;
}
.nb-tasting-confirm button:disabled {
  opacity: .65;
  cursor: wait;
}
@media (max-width: 850px) {
  .nb-tasting-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nb-tasting-paper { padding: 24px 20px; }
  .nb-tasting-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .nb-paper-actions { gap: 10px 18px; }
  .nb-tasting-sheet { padding: 28px 22px; }
}
.nb-legacy-note { width: min(620px, calc(100vw - 32px)); max-width: 620px; box-sizing: border-box; }
.nb-legacy-note label { display: block; font-size: 14px; margin: 16px 0; }
.nb-legacy-note :is(input, select, textarea) { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #a8a996; border-radius: 5px; background: #fffdf7; color: #22362a; font: 16px/1.5 Arial, sans-serif; box-sizing: border-box; }
.nb-legacy-note textarea { min-height: 130px; }
.nb-legacy-note h2 { overflow-wrap: anywhere; }
