@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #172c28;
  background: #f6f7f8;
}
body {
  margin: 0;
}
button {
  border: 1px solid #cbd7d3;
  background: white;
  color: #173e35;
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  cursor: pointer;
  font: inherit;
}
button:hover {
  background: #e8f2ee;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #298e72;
  outline-offset: 3px;
}
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #dde5e1;
  background: white;
}
header b {
  font-size: 1.2rem;
  margin-right: auto;
}
header small {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
}
#status {
  margin: 0.3rem 1rem 0.6rem;
  font-size: 0.85rem;
  min-height: 1.2em;
  overflow-wrap: anywhere;
}
iframe {
  border: 0;
  width: 100%;
  height: 100dvh;
  min-height: 480px;
}
section {
  margin: 0.5rem 1rem;
  padding: 1rem;
  border: 1px solid #cbd7d3;
  border-radius: 1rem;
  background: white;
}
section:empty {
  display: none;
}
section p {
  overflow-wrap: anywhere;
}
label {
  display: block;
  margin-block: 0.8rem;
}
input {
  display: block;
  width: 100%;
  margin-block: 0.4rem;
}
.revision {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-block: 1rem;
}
footer {
  font-size: 0.75rem;
  padding: 0.7rem 1rem;
  color: #506c62;
}
.welcome {
  max-width: 500px;
  margin: 12vh auto;
  padding: 2rem;
  text-align: center;
}
.welcome h1 {
  font-size: 3rem;
  margin: 1rem 0;
  font-weight: 750;
}
.welcome p {
  font-size: 1.2rem;
  line-height: 1.6;
}
.welcome button {
  background: #145b46;
  color: white;
  margin: 1.3rem 0;
  padding: 1rem 2rem;
}
.welcome small {
  display: block;
  line-height: 1.6;
}
.mark {
  display: grid;
  place-items: center;
  border-radius: 1.4rem;
  background: #145b46;
  color: white;
  font-weight: 700;
  font-size: 3rem;
  width: 80px;
  height: 80px;
  margin: auto;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  header {
    gap: 0.6rem;
  }
  nav button {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  iframe {
    height: 100dvh;
  }
}
html[data-theme="dark"] { color-scheme: dark; background: #171b20; color: #edf1f7; }
html[data-theme="dark"] section, html[data-theme="dark"] button, html[data-theme="dark"] input, html[data-theme="dark"] select { background: #242a32; color: #edf1f7; border-color: #414954; }
#profile-panel { max-width: 600px; margin: 1rem auto; }
#profile-panel details { margin: 1.2rem 0; }
#profile-panel #sign-out { display: block; margin-top: 2rem; }


