/* TIPCHECK - mobile-first, no external fonts or URLs */

* {
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  background: #f6f7f9;
  color: #1c2228;
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0 16px;
  border-bottom: 2px solid #16324f;
  margin-bottom: 16px;
}

.wordmark {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.4rem;
  color: #16324f;
}

#tagline {
  font-size: 0.8rem;
  color: #5b6672;
  flex: 1;
  text-align: right;
}

#bannerNote {
  font-size: 0.85rem;
  color: #5b6672;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #16324f;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #c3cbd4;
  padding: 10px 12px;
  font-size: 1rem;
  background: #ffffff;
  margin-bottom: 12px;
}

input:focus {
  outline: 2px solid #16324f;
  outline-offset: 1px;
}

small {
  display: block;
  font-size: 0.75rem;
  color: #5b6672;
  margin: -8px 0 12px;
}

button {
  background: #16324f;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #24486e;
}

button:active {
  background: #0e2237;
}

form#payForm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
  background: #ffffff;
  border: 1px solid #d7dde4;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

form#payForm button {
  margin-top: 4px;
}

#errBox {
  background: #fdecec;
  border-left: 5px solid #b42318;
  color: #7a1c13;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

section#verdict {
  background: #ffffff;
  border: 1px solid #d7dde4;
  border-left: 6px solid #16324f;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

#verdict.ok {
  border-left-color: #1a7f37;
}

#verdict.short {
  border-left-color: #b42318;
}

#verdict p {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

#vFlag {
  font-weight: 700;
  margin-top: 10px;
}

#vSaved {
  color: #1a7f37;
  font-size: 0.8rem;
}

section#ytdBox {
  background: #ffffff;
  border: 1px solid #d7dde4;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

section#ytdBox p {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

#ydEmpty {
  color: #5b6672;
  font-style: italic;
}

footer {
  padding: 16px 0 8px;
  border-top: 1px solid #d7dde4;
}

#footLine {
  font-size: 0.75rem;
  color: #5b6672;
  margin: 0;
}

@media (min-width: 700px) {
  form#payForm {
    grid-template-columns: 1fr 1fr;
  }

  form#payForm label,
  form#payForm input,
  form#payForm small,
  form#payForm button {
    grid-column: auto;
  }
}

@media print {
  header button,
  form#payForm,
  button#clearLogBtn,
  footer {
    display: none !important;
  }

  body {
    background: #ffffff;
  }
}
