﻿:root {
  --bg: #f7f6f2;
  --ink: #1d1d1f;
  --muted: #5a5a63;
  --accent: #1f6f8b;
  --accent-2: #e2b714;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  background: #0f2e3a;
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #1b1b1b;
  font-weight: bold;
}

nav a {
  color: #d7e7ed;
  text-decoration: none;
  margin-left: 16px;
}

nav a.active {
  color: #fff;
  border-bottom: 2px solid var(--accent-2);
}

.hero {
  padding: 32px 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.button {
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.button.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.note {
  color: var(--muted);
  font-style: italic;
}

.list {
  padding-left: 20px;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  background: var(--card);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bar {
  flex: 1 1 0;
  min-width: 4px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}

.table th,
.table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e7e7e7;
  vertical-align: top;
  word-break: break-word;
}

.table th {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9534f;
}

.status-dot.ok {
  background: #2eae4e;
}

.form {
  background: var(--card);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.field input,
.field textarea {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.btn-sm {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.btn-secondary {
  background: #264653;
}

.alert {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.alert.success {
  background: #e7f7ef;
  color: #0f5132;
}

.alert.error {
  background: #fdecea;
  color: #842029;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  table-layout: fixed;
}

.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
  word-break: break-word;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.detail pre {
  background: #f3f3f3;
  padding: 8px;
  border-radius: 6px;
  white-space: pre-wrap;
}

.site-footer {
  margin-top: 48px;
  background: #0f2e3a;
  color: #d7e7ed;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.site-footer a {
  color: #d7e7ed;
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  nav a {
    margin-left: 0;
    margin-right: 12px;
  }
  .cta {
    flex-direction: column;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .responsive-table {
    table-layout: auto;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
  }

  .responsive-table tbody td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    align-items: start;
    border: none;
    padding: 6px 0;
  }

  .responsive-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
  }

  .responsive-table tbody td form {
    margin: 0;
  }
}
