/* ==================================================
   Base
================================================== */
body {
  font-size: 16px;
}
h1 {
  color: #163853;
  font-size: 2.0em;
}
h2{
  color: #162f44;
  font-size: 1.8em;
}
h3{
  color: #162f44;
  font-size: 1.5em;
}

header {
  border-bottom: 1px solid lightgray;
  margin-bottom: 55px;
}

.site-title {
  color: burlywood;
}

.helptext {
  font-size: 14px;
}

ul li,
ol li {
  margin-bottom: 0.75rem;
}


/* ==================================================
   Links / Buttons
================================================== */

.linklike {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  opacity: 0.85;
}

.linklike:hover {
  opacity: 1;
}

.danger-link {
  color: #b91c1c;
  text-decoration: none;
  font-weight: 500;
}

.danger-link:hover {
  text-decoration: underline;
}


/* ==================================================
   Header / Footer
================================================== */

footer nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ==================================================
   Project List Cards
   project_list.html
================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px #999;
}

.project-card h3 {
  margin-top: 0;
}

.link-cont {
  display: flex;
  justify-content: space-between;
}

.plan-features {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.plan-features li {
  margin: 0.2rem 0;
}


/* ==================================================
   Modal Delete
================================================== */

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
}

.modal-actions button {
  width: 33%;
  display: inline-flex;
}

.modal-actions form {
  margin: 0;
}


/* ==================================================
   Case Detail
================================================== */

.case-header {
  display: flex !important;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
}

div.case-actions form {
  margin-left: auto;
  display: flex;
  justify-content: space-between;
}

.case-actions button {
  width: 300px;
}

.case-country form {
  margin-top: 0.75rem;
}

.case-country details summary {
  cursor: pointer;
  margin-bottom: 0.75rem;
}


/* ==================================================
   Result Toggle / Responses
================================================== */

.result-toggle summary {
  box-sizing: border-box;
  width: 100%;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-toggle summary strong {
  flex: 1;
  text-align: left;
}

.result-toggle summary small {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

.result-toggle summary::after {
  content: "▸";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.result-toggle[open] summary::after {
  transform: rotate(90deg);
}

.result-body {
  padding: 1.2rem;
  border-top: 1px solid var(--muted-border-color);
}

/* ==================================================
   NO Result end reloading message
================================================== */
.reload-status-message {
    margin-top: .5rem;
    font-size: .8rem;
    color: #d32f2f;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 768px) {
  footer nav,
  header nav {
    flex-direction: column;
    align-items: center;
  }

  footer nav ul {
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --pico-font-size: 95%;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  small,
  .muted {
    font-size: 0.9rem;
  }
}