:root {
  color-scheme: light;
  --df-primary: #0F766E;
  --df-primary-deep: #0B5F59;
  --df-primary-bright: #14B8A6;
  --df-primary-soft: #CCFBF1;
  --df-secondary: #0B1220;
  --df-secondary-soft: #243044;
  --df-accent: #F59E0B;
  --df-accent-soft: #FEF3C7;
  --df-paper: #F4F7FA;
  --df-line: #E2E8F0;
  --df-muted: #667789;
  --df-white: #FFFFFF;

  --ink: var(--df-secondary);
  --ink-soft: var(--df-secondary-soft);
  --muted: var(--df-muted);
  --line: var(--df-line);
  --paper: var(--df-paper);
  --card: var(--df-white);
  --soft: #f0faf8;
  --accent: var(--df-primary);
  --accent-deep: var(--df-primary-deep);
  --accent-soft: var(--df-primary-soft);
  --amber: var(--df-accent);
  --amber-soft: var(--df-accent-soft);
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.07);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.55 var(--font);
  background: var(--paper);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--df-paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 118, 110, 0.09) 1px, transparent 0),
    radial-gradient(720px 300px at 12% -8%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(680px 280px at 90% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
    linear-gradient(180deg, #f7fbfa 0%, var(--df-paper) 100%);
  background-size: 22px 22px, auto, auto, auto;
}

.site-header,
.site-footer,
main {
  width: min(1440px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
}

.brand-word {
  height: 26px;
  width: auto;
  display: block;
}

.brand-mark-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--df-primary-bright), var(--df-primary) 48%, var(--df-primary-deep));
}

.site-banner {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: left center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 4px 0 16px;
  box-shadow: var(--shadow);
  background: var(--card);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.nav a:hover,
.nav a.active { color: var(--df-primary); }

.list-top {
  padding: 8px 0 14px;
}

.list-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-search {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-search > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hero-search input[type="search"] {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 15px 16px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  background: white;
  outline: none;
}

.hero-search input[type="search"]:focus {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  border-color: var(--accent);
}

.hero-search button,
.btn {
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search button,
.btn.primary {
  background: var(--df-primary);
  border-color: var(--df-primary);
  color: white;
}

.hero-search button:hover,
.btn.primary:hover {
  background: var(--df-primary-deep);
  border-color: var(--df-primary-deep);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.inline input {
  width: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  font: inherit;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.statusline {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dates button,
.pager button,
th button {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ink);
}

.dates button:hover,
.pager button:hover,
th button:hover { border-color: #94a3b8; }

.dates button.upcoming {
  border-style: dashed;
  background: white;
}

.dates button.active {
  background: var(--df-primary);
  color: white;
  border-color: var(--df-primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.cards article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: var(--shadow);
}

.cards h2 {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards ol { margin: 0; padding-left: 1.05rem; }
.cards li { margin: 3px 0; }
.cards button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}
.cards button:hover { color: var(--accent); }

.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--soft);
  font-size: 0.76rem;
}

th button {
  border-radius: 8px;
  font-weight: 700;
  background: transparent;
  border-color: transparent;
  padding: 3px 6px;
}

th button:hover { background: white; }
tbody tr.main { cursor: pointer; }
tbody tr.main:hover { background: #f8fafc; }
tbody tr.open { background: #f0fdfa; }
td.num, th:nth-child(n+2) { text-align: right; }
th:nth-child(n+2) button { width: 100%; text-align: right; }
.domain { font-weight: 700; letter-spacing: -0.01em; }
td.when {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
}

.badge.free { background: var(--df-accent-soft); color: #92400e; }
.badge.wait { background: var(--df-primary-soft); color: var(--df-primary-deep); }
.badge.taken { background: var(--danger-soft); color: var(--danger); }

.da {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 1.9rem;
  border-radius: 8px;
  background: #e8eef5;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.da.mid { background: #ffedd5; color: var(--amber); }
.da.high { background: var(--accent-soft); color: var(--accent-deep); }
.da.estimate {
  background: transparent;
  border: 1px dashed #94a3b8;
  font-weight: 600;
  color: var(--muted);
}

.detail { background: #f8fffd; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  padding: 6px 4px 12px;
}
.detail a { color: var(--accent-deep); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.actions a,
.detail button {
  font: inherit;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.actions a.primary {
  background: var(--df-primary);
  color: white;
  border-color: var(--df-primary);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.pager button { border-radius: 10px; background: white; }
#check-page {
  margin-left: auto;
  background: var(--df-primary);
  color: white;
  border-color: var(--df-primary);
}


.empty {
  padding: 32px 14px;
  color: var(--muted);
  text-align: center;
}

.bottom-copy {
  margin: 28px 0 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.bottom-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.bottom-copy > p,
.bottom-copy article p,
.bottom-copy details p {
  color: var(--ink-soft);
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.bottom-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.bottom-grid h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.bottom-copy details {
  border-top: 1px solid var(--line);
  padding: 10px 0 2px;
}

.bottom-copy summary {
  cursor: pointer;
  font-weight: 700;
}

.bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 14px 0 0;
}

.bottom-links a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.content {
  padding: 28px 0 48px;
}

.content h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.content .lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 42rem;
}

.content section {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content h2 { margin: 0 0 8px; font-size: 1.05rem; }
.content p, .content li { color: var(--ink-soft); }
.content ul { padding-left: 1.15rem; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 12px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .cards,
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .panel-head { flex-direction: column; align-items: start; }
  .statusline { text-align: left; }
}

@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: start; }
  .nav { justify-content: start; }
  .cards,
  .bottom-grid { grid-template-columns: 1fr; }
  .hero-search-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  #check-page { margin-left: 0; width: 100%; }
}
