/* Bedtime Calculator - lightweight, AdSense-safe styling */
.btc-wrap { margin: 18px 0; }
.btc-card {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.btc-header { padding: 18px 18px 10px; }
.btc-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.btc-sub { font-size: 13px; opacity: .75; margin-top: 6px; }

.btc-tabs { display: flex; gap: 8px; padding: 0 18px 14px; }
.btc-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #f7f7f9;
  cursor: pointer;
  font-weight: 600;
}
.btc-tab[aria-selected="true"] { background: #111827; color: #fff; border-color: #111827; }

.btc-body { padding: 0 18px 18px; }
.btc-row { margin-top: 12px; }
.btc-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.btc-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  font-size: 16px;
}
.btc-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btc-chipgroup { display: flex; gap: 8px; flex-wrap: wrap; }
.btc-chip {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
}
.btc-chip.is-active { background: #111827; color: #fff; border-color: #111827; }

.btc-btn {
  margin-left: auto;
  padding: 11px 14px;
  border-radius: 10px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btc-btn:focus, .btc-chip:focus, .btc-tab:focus, .btc-input:focus { outline: 2px solid rgba(37,99,235,.35); outline-offset: 2px; }

.btc-help { font-size: 12.5px; opacity: .8; margin: 10px 2px 0; }

.btc-results { margin-top: 14px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 14px; }
.btc-results-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.btc-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .btc-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.btc-pill {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
}
.btc-pill-time { font-size: 18px; font-weight: 900; }
.btc-pill-meta { font-size: 12px; opacity: .75; margin-top: 6px; }

.btc-note { margin-top: 12px; font-size: 12.5px; opacity: .85; }
.btc-note-strong { font-weight: 800; }

.btc-footer { padding: 12px 18px 16px; border-top: 1px solid rgba(0,0,0,.08); background: #fcfcfd; }
.btc-brand { font-weight: 800; font-size: 12.5px; opacity: .85; }
.btc-disclaimer { margin-top: 6px; font-size: 12px; opacity: .8; line-height: 1.35; }
