/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  overscroll-behavior: none;
  font-family: system-ui;
}

body {
  margin: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: 1fr min-content;
}

main {
  padding: 1rem;
  overflow-y: scroll;
  overscroll-behavior: contain;
}

footer {
  background: #eee;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
}

h1 {
  font-size: 24px;
}

small {
  opacity: 0.5
}

.municipality {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.municipality + .municipality {
  margin-top: 1em;
}

article {
  border-top: 1px solid black;
  padding-block: 1ex;
}

textarea {
  display: block;
  resize: vertical;
  width: 100%;
}

textarea {
  max-width: 60ch;
}

button,
input[type=submit],
.button {
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  display: inline-block;
  padding: 4px;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 0.2s ease-in-out;

  &:hover {
    box-shadow: 0 0 3px 3px rgba(0,0,0,0.3);
  }
}
table td {
  padding: .5em;
}

/* utilities */
.inline-flex { display: inline-flex }
.gap-1 { gap: .25rem }
.m-0 { margin: 0 }
.mt-0 { margin: 0 }
.leading-none { line-height: 1 }
.text-center { text-align: center }

/* every layout */
.with-icon {
  display: inline-flex;
  align-items: baseline;
}

.with-icon svg {
  fill: currentColor;
  margin-inline-end: .5em;
  width: 0.75em;
  width: 1cap;
  height: 0.75em;
  height: 1cap;
}

.flow > * + * {
  margin-top: 1em;
}

.card {
  background: #eee;
  padding-inline: 1ch;
  margin-block: 1ch;
}

.admin {
  background-color: oklch(100% 50 50 / .5);
  padding-inline: 1ch;
}