.hushall-search-wrapper {
  position: relative;
  margin-bottom: 20px;
}

#hushall-search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 16px;
  transition: all 0.2s ease;
}

/* ikon */
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.6;
}

/* hover */
#hushall-search:hover {
  border-color: #9fbfdb;
}

/* focus */
#hushall-search:focus {
  outline: none;
  border-color: #2271b1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* placeholder */
#hushall-search::placeholder {
  color: #9ca3af;
}

#hushall-search.has-value {
  padding-right: 40px;
}

#hushall-search.has-value::after {
  content: '×';
}

.clear-btn {
  position: absolute;
  color: #6b7280;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* visa */
.hushall-search-wrapper.has-value .clear-btn {
  opacity: 1;
  pointer-events: auto;
}

/* hover */
.clear-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}


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

.hushall-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hushall-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,10.08);
}

.hushall-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.hushall-content {
  padding: 15px;
  font-size: 0.9rem;
}

.hushall-content h2 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.hushall-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* innehåll */
	.hushall-body {
  	padding: 16px;
	}

/* bild i modal */
.hushall-bild {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
}

.hushall-person-kort {
  background: #f3f4f6;
  padding: 14px;
  border-radius: 12px;
  margin-top: 12px;
}

/* kontakt */
.hushall-namn {
  font-weight: 600;
  margin-bottom: 4px;
}

.hushall-kontakt a {
  text-decoration: none;
  font-size: 14px;
}

.hushall-kontakt a:hover {
  text-decoration: underline;
}


/* =====================================================
   🔹 DOWNLOAD 
===================================================== */

.downloads-wrapper {
  background: #f2f2f2;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 25px;
}

.downloads-title {
  font-weight: 600;
  margin-bottom: 15px;
}

.downloads-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease;
}

.download-card:hover {
  transform: translateY(-2px);
}

.download-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.download-card:hover img {
  transform: scale(1.1);
}

.download-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.downloads-meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

/* =========================
   🔹 TOOLBAR
========================= */

.hushall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* =========================
   🔹 SÖK
========================= */

.hushall-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 460px;
}

#hushall-search {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 16px;
  transition: all 0.2s ease;
}

#hushall-search:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}

.search-icon {
  display: none;
}

/* =========================
   🔹 CLEAR BTN
========================= */

.clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.hushall-search-wrapper.has-value .clear-btn {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   🔹 DOWNLOADS INLINE
========================= */

.downloads-inline {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.downloads-label {
  font-weight: 600;
  color: #111827;
}

.download-link {
  text-decoration: none;
  color: #2271b1;
  font-weight: 500;
}

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

.downloads-meta {
  color: #6b7280;
  font-size: 13px;
}

/* =========================
   🔹 MOBIL
========================= */

@media (max-width: 700px) {

  .hushall-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .downloads-inline {
    justify-content: space-between;
  }

}

/* =========================
   🔹 TOOLBAR
========================= */

.hushall-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
  align-items: start;
}

.toolbar-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111827;
}

/* =========================
   🔹 SÖK
========================= */

.hushall-search-wrapper {
  position: relative;
}

#hushall-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 16px;
  transition: all 0.2s ease;
}

#hushall-search:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.hushall-search-wrapper.has-value .clear-btn {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   🔹 DOWNLOADS
========================= */

.downloads-panel {
  text-align: left;
}

.downloads-links {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.download-link img {
  width: 28px;
  height: 28px;
}

.download-link:hover {
  opacity: 0.75;
}

.downloads-meta {
  font-size: 13px;
  color: #6b7280;
}

/* =========================
   🔹 MOBIL
========================= */

@media (max-width: 800px) {

  .hushall-toolbar {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

/* =========================
   🔹 INLINE TOOLBAR
========================= */

.search-inline,
.downloads-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-inline .toolbar-label,
.downloads-top .toolbar-label {
  margin-bottom: 0;
  white-space: nowrap;
}

/* sökruta */
.search-inline .hushall-search-wrapper {
  width: 100%;
  min-width: 280px;
}

/* download-länkar */
.downloads-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* datum under */
.downloads-meta {
  margin-top: 10px;
}

/* mobil */
@media (max-width: 800px) {

  .search-inline,
  .downloads-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-inline .hushall-search-wrapper {
    width: 100%;
    min-width: 0;
  }

}

.person {
  position: relative;
}

.person-edit-link {

  position: absolute;

  right: 12px;
  bottom: 10px;

  font-size: 15px;

  opacity: 0.35;

  text-decoration: none;

  transition: opacity 0.15s ease;
}

.person-edit-link:hover {
  opacity: 1;
}