/* Newsletter-like palette: light background + deep green buttons */
:root{
  --asa-bg: #f6faf8;
  --asa-surface: #ffffff;
  --asa-text: #0f172a;
  --asa-muted: #475569;
  --asa-border: #e2e8f0;

  --asa-primary: #0b5d4b;       /* deep green/teal */
  --asa-primary-2: #0f766e;
  --asa-chip-bg: #e7f5ef;
  --asa-chip-text: #0b5d4b;

  --asa-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.asa-home{
  background: var(--asa-bg);
  padding: 28px 0 48px;
  color: var(--asa-text);
}

.asa-wrap{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.asa-muted{ color: var(--asa-muted); }

.asa-hero{
  background: var(--asa-surface);
  border: 1px solid var(--asa-border);
  border-radius: 16px;
  box-shadow: var(--asa-shadow);
  padding: 22px;
}

.asa-hero h1{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.asa-toolbar__right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.asa-toolbar__right select{
  min-width: 160px;
}

.asa-hero p{ margin: 0 0 16px; }

.asa-search{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 14px 0 14px;
}

#asa-q{
  width: 100%;
  border: 1px solid var(--asa-border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
}

#asa-q:focus{
  border-color: rgba(11, 93, 75, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 93, 75, 0.12);
}

.asa-btn{
  border-radius: 12px;
  padding: 11px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.asa-btn--primary{
  background: var(--asa-primary);
  color: #fff;
}

.asa-btn--primary:hover{ background: #094f40; }

.asa-btn--ghost{
  background: transparent;
  border-color: var(--asa-border);
  color: var(--asa-text);
}

.asa-btn[disabled]{ opacity: 0.55; cursor: not-allowed; }

.asa-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.asa-kpi{
  border: 1px solid var(--asa-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.asa-kpi__num{
  font-size: 18px;
  font-weight: 800;
}

.asa-kpi__label{
  font-size: 12px;
  color: var(--asa-muted);
}

.asa-main{
  margin-top: 18px;
}

.asa-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

#asa-sort{
  border: 1px solid var(--asa-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.asa-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 960px){
  .asa-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .asa-grid{ grid-template-columns: 1fr; }
  .asa-search{ grid-template-columns: 1fr; }
}

.asa-card{
  background: #fff;
  border: 1px solid var(--asa-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asa-card__title{
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.asa-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asa-chip{
  background: var(--asa-chip-bg);
  color: var(--asa-chip-text);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Newsletter-style deadline badge */
.asa-deadline-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--asa-chip-bg);
  color: var(--asa-chip-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}

.asa-deadline-badge--danger{
  background: #ffe8e8;
  color: #8a1f1f;
}

.asa-deadline-badge--neutral{
  background: #eef2f7;
  color: #334155;
}

.asa-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--asa-muted);
}

.asa-card__actions{
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.asa-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--asa-primary);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.asa-link:hover{ background: #094f40; }

.asa-pager{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.asa-sections{
  display: grid;
  gap: 16px;
  margin: 14px 0 18px;
}

.asa-section{
  background: var(--asa-surface);
  border: 1px solid var(--asa-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.asa-section__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.asa-section__title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.asa-section__link{
  color: var(--asa-primary);
  text-decoration: none;
  font-weight: 700;
}

.asa-section__link:hover{
  text-decoration: underline;
}

.asa-section .asa-grid{
  margin-top: 10px;
}