:root {
  --ink: #111111;
  --muted: #666666;
  --line: #e0e0e0;
  --surface: #ffffff;
  --soft: #f0f0f0;
  --accent: #1a6e42;
  --accent-light: #eaf4ee;
  --warn: #9a4e0d;
  --bad: #9b2626;
  --bad-light: #fdf0f0;
  --good-light: #eaf4ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

.checker {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 20px 16px;
  overflow-x: clip;
}

/* ── Intro ── */

.intro {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

h1 {
  margin: 0 0 6px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.dek {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

/* ── Form panel ── */

.panel {
  background: var(--soft);
  border-radius: 4px;
  padding: 14px;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.field { display: flex; flex-direction: column; }

label {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 0 10px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}

input[type="text"],
input:not([type]) { width: 100%; min-width: 0; max-width: 100%; }

input:focus {
  outline: none;
  border-color: var(--ink);
}

/* ── Address autocomplete ── */

.address-wrap { position: relative; width: 100%; }

.suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.1);
}

.suggestions.open { display: block; }

.suggestions li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
}

.suggestions li:hover,
.suggestions li[aria-selected="true"] { background: var(--soft); }

.suggestion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-icon svg { width: 12px; height: 12px; fill: var(--muted); }

.suggestion-text { display: flex; flex-direction: column; gap: 1px; }
.suggestion-main { font-weight: 700; font-size: 13px; }
.suggestion-sub  { color: var(--muted); font-size: 11px; }

/* ── Submit ── */

button[type="submit"] {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

button[type="submit"]:hover { opacity: 0.85; }
button[type="submit"]:disabled { cursor: wait; opacity: 0.55; }

/* ── Result ── */

.result { background: var(--soft); border-radius: 4px; }

.result-body { padding: 18px; }

.verdict { margin-bottom: 16px; }

.status {
  margin: 0 0 6px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.status.off-week  { color: var(--bad); }
.status.on-week   { color: var(--accent); }
.status.uncertain { color: var(--ink); }

.summary {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.schedule {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
}

.schedule-label {
  display: block;
  margin-bottom: 4px;
}

.schedule-entries strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

#reset-button {
  width: 100%;
  height: 36px;
  margin-top: 12px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

#reset-button:hover { background: var(--soft); }

.byline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.note a {
  color: inherit;
  text-decoration: underline;
}

.note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

@media (max-width: 440px) {
  .details { grid-template-columns: 1fr; }
}
