/* ============================================================
   Home page (post/index_page.html): rules whose selectors name a class
   that only this template uses. Loaded only here, after the shared CSS.
   ============================================================ */

/* ---- from components.css ---- */

:where(button.podcast-card),
:where(button.upcoming-item),
:where(button.most-item),
:where(a.most-item),
:where(button.author-item),
:where(button.job-item) {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-block .sidebar-item-list,
.sidebar-block .jobs-list,
.sidebar-block .authors-list {
  margin-top: 20px;
}


/* General 2-column sidebar list pattern */

.sidebar-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.sidebar-item-list li + li {
  border-top: 1px solid #eeeeee;
}

.sidebar-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--hr-space-4);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px var(--hr-space-2);
  border-radius: 0;
  position: relative;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2F9E5B;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.sidebar-item:hover::before,
.sidebar-item:focus-visible::before {
  transform: scaleY(1);
}

.sidebar-block__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-semibold);
  font-size: 24px !important;
  line-height: 1.35;
  text-wrap: stable;
  overflow-wrap: break-word;
}

.upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.upcoming-date {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100%;
}

.upcoming-date::before,
.upcoming-date::after {
  content: none !important;
}

.upcoming-month {
  display: block;
  font-family: var(--hr-font-display);
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
  color: #111111;
  line-height: 1.1;
  text-align: center;
}

.upcoming-day {
  display: block;
  font-family: var(--hr-font-display);
  font-size: 36px;
  font-weight: var(--hr-w-bold);
  color: #111111;
  line-height: var(--hr-lh-flat);
  text-align: center;
  margin-bottom: var(--hr-space-1);
}

.upcoming-type {
  display: inline-block;
  font-size: var(--hr-kicker);
  font-weight: var(--hr-w-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--hr-space-2);
  color: #454c54;
}

.upcoming-title {
  margin: 0 0 var(--hr-space-2);
  font-size: var(--hr-dek);
  font-weight: var(--hr-w-semibold);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upcoming-time {
  font-size: var(--hr-meta);
  color: var(--hr-graphite);
}

.most-item {
  display: grid;
  grid-template-columns: auto 1fr 16px;
  gap: 0;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: var(--hr-space-2);
  border-radius: var(--hr-radius);
  border: 0;
  background: transparent;
  transition: background 180ms ease;
}

.most-item:hover,
.most-item:focus-visible {
  background: var(--hr-sand);
}

.most-media {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.most-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
}

.most-title {
  margin: 0;
  font-size: 14px;
  font-weight: var(--hr-w-bold);
  line-height: var(--hr-lh-title);
}

.most-arrow {
  font-size: 16px;
  opacity: 0.6;
  display: none;
}

.sidebar-block--most .most-item {
  grid-template-columns: 52px 1fr !important;
  align-items: start;
  gap: var(--hr-space-4);
  padding: 14px var(--hr-space-2);
  border-radius: 0;
  background: transparent;
}

.sidebar-block--most .most-item:hover,
.sidebar-block--most .most-item:focus-visible {
  background: transparent;
}

.sidebar-block--most .most-number {
  margin-left: 0;
  margin-right: 0;
  min-width: 52px;
  text-align: center;
}

.sidebar-block--most .most-title {
  font-size: var(--hr-dek);
  font-weight: var(--hr-w-semibold);
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
.page-home .sidebar-block--most .most-item {
    box-sizing: border-box;
    grid-template-columns: 112px minmax(0, 1fr) 16px;
  }

.page-home .sidebar-block--most .most-body {
    min-width: 0;
  }
}

.page-home .sidebar-block--latest .most-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hr-space-1);
  align-items: start;
  width: 100%;
  padding: var(--hr-space-2);
  border-radius: 10px;
}

.page-home .sidebar-block--latest .most-media,
.page-home .sidebar-block--latest .most-arrow {
  display: none;
}

.page-home .sidebar-block--latest .most-title {
  font-size: 15px;
  font-weight: var(--hr-w-bold);
  line-height: 1.25;
}

.page-home .sidebar-block--authors .authors-list {
  gap: 0;
}

.page-home .sidebar-block--authors .author-item {
  display: grid;
  grid-template-columns: 52px 1fr !important;
  gap: var(--hr-space-4);
  padding: 14px var(--hr-space-2);
  align-items: center;
}

.authors-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.authors-list li > a {
  display: block;
  width: 100%;
}

.sidebar-block--authors .authors-list li,
.sidebar-block--authors .authors-list li > a {
  display: block;
  width: 100%;
}

.sidebar-block--authors .authors-list {
  gap: 0;
}

.sidebar-block--authors .authors-list li + li {
  border-top: 1px solid #eeeeee;
}

.sidebar-block--authors .authors-list .author-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--hr-space-4);
  align-items: center;
  width: 100%;
  padding: 14px var(--hr-space-2);
  border-radius: 0;
  background: transparent;
  position: relative;
}

.sidebar-block--authors .authors-list .author-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2F9E5B;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.sidebar-block--authors .authors-list .author-item:hover::before,
.sidebar-block--authors .authors-list .author-item:focus-visible::before {
  transform: scaleY(1);
}

.sidebar-block--authors .authors-list .author-item:hover,
.sidebar-block--authors .authors-list .author-item:focus-visible {
  background: transparent;
}

.author-item {
  display: flex;
  gap: var(--hr-space-3);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: var(--hr-space-4) 0;
  transition: background 180ms ease;
  border-radius: var(--hr-radius);
}

.author-item:hover,
.author-item:focus-visible {
  background: var(--hr-sand);
}

.authors-list li + li {
  border-top: 1px solid #eeeeee;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--hr-radius-pill);
  overflow: hidden;
  background: #e6e6e6;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-role {
  font-size: var(--hr-meta-sm);
  opacity: 0.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  text-wrap: stable;
}

.sidebar-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hr-space-3);
  margin-bottom: 0;
}

.jobs-list {
  list-style: none;
  margin: 20px 0 0 !important;
  padding: 0;
  display: grid;
  gap: var(--hr-space-3);
}

.job-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: var(--hr-space-4);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: var(--hr-space-3);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #ededed;
  background: var(--hr-paper);
  position: relative;
}

.job-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2F9E5B;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.job-item:hover::before,
.job-item:focus-visible::before {
  transform: scaleY(1);
}

.job-logo {
  width: 74px;
  height: 38px;
  border-radius: 8px;
  background: #e6e6e6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--hr-paper);
}

.job-title {
  font-family: var(--hr-font-display);
  font-size: var(--hr-h-row);
  font-weight: var(--hr-w-semibold);
  line-height: 1.25;
}

.job-subtitle {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 5px;
  margin-top: 7px;
}

.job-company {
  font-size: 12px;
  opacity: 0.65;
  overflow-wrap: break-word;
  min-width: 0;
}

.job-sep {
  font-size: 12px;
  opacity: 0.4;
  flex-shrink: 0;
}

.job-city {
  font-size: 12px;
  opacity: 0.65;
  overflow-wrap: break-word;
  min-width: 0;
}

.page-home .sidebar-block--jobs .sidebar-block__title {
  font-size: 24px;
}


/* Om sidebar-block__header eller accent har egna paddings/margins */

.page-home .sidebar-block--jobs .sidebar-block__header {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}


/* Listan ska inte skapa extra indrag */

.page-home .sidebar-block--jobs .jobs-list{
  margin: 0;
  padding: 0;
}

.jobs-cta-inline {
  font-size: var(--hr-kicker);
  font-weight: var(--hr-w-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2F9E5B;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
  transition: color 200ms ease;
}

.jobs-cta-inline:hover {
  color: #1b6b3a !important;
}

.jobs-partner {
  margin: var(--hr-space-4) 0 0;
  font-size: var(--hr-meta-sm);
  color: #1b2430;
  text-align: center;
}


/* Podcast block header */

.podcast-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.podcast-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.podcast-kicker__dot {
  display: none;
}

.podcast-kicker__label {
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2F9E5B;
}

.podcast-header__title {
  font-family: var(--hr-font-display);
  font-size: var(--hr-h-puff-sm) !important;
  font-weight: var(--hr-w-bold);
  margin: 0;
  line-height: 1.1;
}

.podcast-header__cta {
  font-size: var(--hr-meta-sm);
  font-weight: var(--hr-w-bold);
  letter-spacing: 0.05em;
  color: #2F9E5B;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: var(--hr-space-1);
  transition: color 200ms ease;
}

.podcast-header__cta:hover {
  color: #1b6b3a !important;
}


/* Podcast grid */

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.podcast-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  width: 100%;
}

.podcast-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #8DC99A 0%, #3A7D52 60%, #2a5c3c 100%);
  position: relative;
  margin-bottom: 14px;
  /* Safari: force recalc on resize */
  transform: translateZ(0);
}

.podcast-card__placeholder {
  width: 100%;
  height: 100%;
}

.podcast-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.podcast-card__play {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.podcast-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.podcast-card__episode {
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-graphite);
}

.podcast-card__title {
  margin: 0;
  font-family: var(--hr-font-display);
  font-size: 18px;
  font-weight: var(--hr-w-bold);
  line-height: var(--hr-lh-title);
  transition: color 200ms ease;
  overflow-wrap: break-word;
  text-wrap: stable;
}

.podcast-card:hover .podcast-card__title,
.podcast-card:focus-visible .podcast-card__title {
  color: #2F9E5B;
}

.podcast-card__meta {
  display: flex;
  align-items: center;
  gap: var(--hr-space-1);
  font-size: 12px;
  color: #6b7280;
  margin-top: var(--hr-space-1);
}

.podcast-card__meta-sep {
  color: #9ca3af;
}

@media (max-width: 768px) {
.sidebar-block--authors .sidebar-block__title {
  }

.sidebar-block--authors .authors-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hr-space-3);
    text-align: left;
  }

.sidebar-block--authors .author-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--hr-space-3);
    padding: var(--hr-space-2) 0;
    width: 100%;
  }

.sidebar-block--authors .author-item:hover,
  .sidebar-block--authors .author-item:active {
    background: var(--hr-sand);
  }

.sidebar-block--authors .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--hr-radius-pill);
    overflow: hidden;
  }

.sidebar-block--authors .author-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

.sidebar-block--authors .author-role {
    color: #777777;
    font-size: var(--hr-meta-sm);
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

.sidebar-block--authors .author-body {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
.sidebar-block--authors .author-avatar {
    width: 56px;
    height: 56px;
  }
}

.most-media {
  position: relative;
}

.most-number {
  font-family: var(--hr-font-display);
  font-size: var(--hr-h-puff-sm);
  font-weight: var(--hr-w-bold);
  color: var(--hr-green-brand);
  line-height: var(--hr-lh-flat);
  margin-left: var(--hr-space-4);
  margin-right: 20px;
}

/* ---- from pages.css ---- */

.upcoming-item,
.most-item,
.author-item,
.job-item {
  width: 100%;
  justify-self: stretch;
  align-self: stretch;
}

.block-curated .block-title__topic {
  color: #1b2430;
}

.section-divider {
  height: 1px;
  background: #e6e6e6;
  margin: var(--hr-space-10) 0 20px;
}

.all-content__title {
  text-align: center;
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
}

.all-content__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px var(--hr-space-5);
  border-radius: var(--hr-radius-pill);
  border: 1px solid #e6e6e6;
  background: #5EAF6B1F;
  text-decoration: none;
  color: inherit;
  font-weight: var(--hr-w-semibold);
  cursor: pointer;
  margin: var(--hr-space-7) auto 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.all-content__cta:hover,
.all-content__cta:focus-visible {
  background: #5EAF6B;
  color: var(--hr-paper);
  border-color: #5EAF6B;
}

.curated-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hr-space-9);
  align-items: start;
}

.curated-2col__left {
  display: flex;
  flex-direction: column;
}

.curated-2col__left .card-excerpt {
  display: none;
}

.curated-2col__right {
  display: flex;
  flex-direction: column;
}

.curated-text-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px 0;
  border-bottom: 1px solid #d8d8d8;
}

.curated-text-item:first-child {
  padding-top: 0;
}

.curated-2col__right .curated-text-item:last-child {
  border-bottom: none;
}

.curated-text-item__cat {
  font-size: var(--hr-kicker-ad);
  font-weight: var(--hr-w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: var(--hr-space-2);
  line-height: var(--hr-lh-flat);
}

.curated-text-item__title {
  font-family: var(--hr-font-display);
  font-size: 20px;
  font-weight: var(--hr-w-bold);
  line-height: 1.25;
  margin: 0 !important;
  text-wrap: stable;
  overflow-wrap: break-word;
  transition: color 180ms ease;
}

.curated-text-item:hover .curated-text-item__title {
  color: #2F9E5B;
}

.page-home .sidebar-block.sidebar-block--jobs > .jobs-module {
  padding-inline: 0;
}

.page-home .jobs-module .jobs-list {
  width: 100%;
  margin: 0;
  padding: 0;
}


/* Jobs: tighten card layout so arrow/text spacing feels balanced */

.page-home .sidebar-block--jobs .job-item {
  grid-template-columns: 52px 1fr;
  gap: var(--hr-space-4);
  padding: 14px var(--hr-space-2);
  box-sizing: border-box;
  max-width: 100%;
  align-items: center;
}

.page-home .sidebar-block--jobs .job-logo {
  width: 52px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .sidebar-block--jobs .jobs-list {
  gap: var(--hr-space-2);
}

.page-home .sidebar-block--jobs .job-item__ad-badge {
  margin-left: auto;
  align-self: center;
}

.page-home .sidebar-block--jobs .jobs-list li {
  margin-bottom: 0;
}

.page-home .sidebar-block--jobs .jobs-list li:last-child {
  margin-bottom: 0;
}

.page-home .authors-list li,
.page-home .jobs-list li,
.page-home .upcoming-list li {
  margin-bottom: 0;
}

.page-home .authors-list li:last-child,
.page-home .jobs-list li:last-child,
.page-home .upcoming-list li:last-child {
  margin-bottom: 0;
}

.page-home .sidebar-block__title {
  letter-spacing: 0.1px;
}

.page-home main .block-podcast .block-title {
  font-size: 32px;
  line-height: 1.1;
}

.page-home .sidebar-block__title {
  font-size: 24px;
  line-height: var(--hr-lh-title);
  font-weight: var(--hr-w-semibold);
  margin: 0;
}

.page-home main h2.all-content__title {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  padding: var(--hr-space-10) 0 var(--hr-space-10);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-home .section-divider {
  height: 1px;
  background: #e6e6e6;
}

.page-home .upcoming-month,
.page-home .upcoming-day {
  color: #111111;
}

.page-home .block-podcast--new {
  margin-top: var(--hr-space-14);
  background: var(--hr-paper);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
}

@media (max-width: 1024px) {
.page-home section.block.block-podcast:not(.block-podcast--new) {
    display: none;
  }
}

@media (max-width: 768px) {
.podcast-grid {
    grid-template-columns: 1fr;
    gap: var(--hr-space-4);
  }

.podcast-card__media {
    aspect-ratio: 16 / 9;
  }

.podcast-header__title {
    font-size: 24px;
  }
}

@media (max-width: 768px), (any-pointer: coarse) and (max-width: 1366px) {
.page-home section.block.block-podcast:not(.block-podcast--new) {
    display: none;
  }

.curated-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
.page-home .section-divider {
    margin: 0 0 20px;
  }

.page-home [data-mobile-slot="after-top2"] .sidebar-block__title {
  }

.page-home [data-mobile-slot="after-top2"] .upcoming-list,
.page-home [data-mobile-slot="after-top2"] .authors-list,
.page-home [data-mobile-slot="after-top2"] .jobs-list {
    gap: var(--hr-space-4);
  }

.page-home [data-mobile-slot="after-top2"] .upcoming-list li + li,
.page-home [data-mobile-slot="after-top2"] .authors-list li + li,
.page-home [data-mobile-slot="after-top2"] .jobs-list li + li {
    padding-top: 0;
    margin-top: 0;
  }

.page-home [data-mobile-slot="after-top2"] .authors-list li,
.page-home [data-mobile-slot="after-top2"] .upcoming-list li,
.page-home [data-mobile-slot="after-top2"] .jobs-list li {
    margin-bottom: 0;
  }

.page-home [data-mobile-slot="after-top2"] .jobs-list li:last-child {
    margin-bottom: 0;
  }
}

/* "Aktuellt: …" heading above the curated block */
.page-home .block-title.block-title--topical {
  font-family: var(--hr-font-body);
  font-size: var(--hr-lead) !important;
  margin-bottom: var(--hr-space-5) !important;
}
