/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
  background: #0b0b0d;
  color: #e4e4e7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.feed-header-label {
  color: #8b8b93;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feed-header-scope {
  color: #8b8b93;
  font-size: 13px;
  margin-top: 0;
  margin-bottom: 12px;
}

.tab-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-pill {
  background: transparent;
  border: 1px solid #3a3a3f;
  color: #e4e4e7;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
}

.tab-pill:hover {
  border-color: #5a5a60;
}

.tab-pill.active {
  background: #3ecf6e;
  border-color: #3ecf6e;
  color: #0b0b0d;
  font-weight: 600;
}

.post {
  padding: 16px 0;
  border-bottom: 1px solid #1f1f23;
}

.post-content {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.post-meta {
  color: #8b8b93;
  font-size: 13px;
}

.post-meta-sep {
  margin: 0 6px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-subtitle {
  color: #8b8b93;
  font-size: 14px;
}

.post-hearings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hearing-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.hearing-button:disabled {
  cursor: default;
}

.hearing-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* "Sentito" is shown by the filled pupil plus the accent colour, not
   by the colour alone (colour-blind readers get the fill). */
.hearing-button[aria-pressed="true"] {
  color: #3ecf6e;
}

.hearing-button[aria-pressed="true"] .eye-pupil {
  fill: currentColor;
}

.eye-icon {
  width: 14px;
  height: 14px;
}

.hearing-message {
  color: #8b8b93;
  font-size: 13px;
  margin: 6px 0 0 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.step-label,
.field-label,
.composer-promise {
  color: #8b8b93;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.page-title {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 1rem 0 0 0;
}

.page-text {
  color: #b4b4bb;
  line-height: 1.5;
  margin: 0;
}

.page-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #2a2a2f;
  color: #e4e4e7;
  font: inherit;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.field-input:focus-visible {
  outline: none;
  border-bottom-color: #e4e4e7;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b4b4bb;
}

.field-error {
  color: #f0a8a0;
  font-size: 0.9rem;
  margin: 0;
}

.primary-button {
  background: #e8e6e1;
  color: #0b0b0d;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.secondary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.text-button,
.text-link {
  background: none;
  border: none;
  padding: 0;
  color: #8b8b93;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.flash {
  color: #b4b4bb;
  text-align: center;
  margin: 0 0 1rem 0;
}

.crisis-resources {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.crisis-card {
  border: 1px solid #1f3a33;
  border-radius: 1rem;
  padding: 1rem;
}

.crisis-card-label {
  color: #7fd1b9;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.crisis-card-name {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.25rem 0;
}

.crisis-card-description,
.crisis-placeholder {
  color: #8b8b93;
  font-size: 0.85rem;
  margin: 0;
}

.crisis-call {
  display: block;
  background: #7fd1b9;
  color: #0b0b0d;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
}

.composer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-link {
  color: #b4b4bb;
  font-size: 1.5rem;
  text-decoration: none;
  line-height: 1;
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  margin-top: 2rem;
}

.composer-input {
  background: transparent;
  border: none;
  color: #e4e4e7;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1.35;
  resize: none;
  min-height: 8rem;
  flex: 1;
}

.composer-input:focus-visible {
  outline: none;
}

.composer-counter {
  color: #8b8b93;
  font-size: 0.8rem;
  min-height: 1rem;
  margin: 0;
}

.radius-picker {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radius-legend {
  color: #8b8b93;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

/* The radio stays in the accessibility tree and keyboard order; only its
   default look is hidden. */
.radius-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radius-pill span {
  display: inline-block;
  border: 1px solid #3a3a3f;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: #b4b4bb;
  cursor: pointer;
}

.radius-pill input:checked + span {
  background: #1f1f23;
  border-color: #1f1f23;
  color: #e4e4e7;
  font-weight: 600;
}

.radius-pill input:focus-visible + span {
  outline: 1px solid #e4e4e7;
  outline-offset: 2px;
}

.composer-footnote {
  color: #6b6b73;
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
}

.logout {
  display: block;
  margin: 1.5rem auto 0 auto;
}

.composer-teaser {
  display: block;
  border: 1px solid #2a2a2f;
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1.5rem;
  color: #b4b4bb;
  text-decoration: none;
}

.hearing-message a {
  color: inherit;
}

.report {
  margin-top: 0.4rem;
}

.report-toggle {
  font-size: 0.8rem;
}

.report-form fieldset {
  border: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-legend {
  color: #8b8b93;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.report-reason {
  color: #b4b4bb;
  font-size: 0.9rem;
}

.report-message {
  color: #8b8b93;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.report-message a {
  color: inherit;
}
