/**
 * Resurskort — layout enligt legacy (header / body / footer, capacity-box, CTA).
 */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
}

.resource-grid > article {
  margin: 0;
  min-width: 0;
}

.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: var(--color-white, #fff);
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 5%);
  overflow: hidden;
  font-family: var(--font-family-sans, "Munken Sans", system-ui, sans-serif);
}

.resource-card:hover {
  box-shadow: 0 8px 28px rgb(0 0 0 / 8%);
}

.resource-card__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.resource-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border, #e0e0e0);
}

.resource-card__media-link {
  display: block;
  height: 100%;
  line-height: 0;
}

.resource-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.resource-card__media-link:hover img,
.resource-card__media-link:focus-visible img {
  transform: scale(1.03);
}

/* —— Header: titel vänster, kapacitet + ikon höger —— */
.resource-card__header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.65rem;
}

.resource-card__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0a1628;
}

.resource-card__capacity-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  color: #0a1628;
}

.resource-card__capacity-icon {
  flex-shrink: 0;
  color: currentcolor;
}

.resource-card__capacity-num {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* —— Body: intro + capacity-box —— */
.resource-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
  padding: 0 1.25rem 1rem;
}

.resource-card__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #6b6b6b;
}

.capacity-box {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 1rem 1.1rem;
  background: var(--color-white, #fff);
}

.capacity-box .pot-cap-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.pot-cap-item {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
  max-width: 5rem;
  text-align: center;
}

.pot-cap-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
}

.pot-cap-num {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0a1628;
  font-variant-numeric: tabular-nums;
}

/* —— Footer: knapp vänster, pris höger —— */
.resource-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: auto;
  padding: 1rem 1.25rem 1.2rem;
  border-top: 1px solid rgb(0 0 0 / 5%);
}

.resource-card__footer--single {
  justify-content: flex-end;
}

.resource-card__footer--single .resource-card__price {
  text-align: right;
}

.resource-card__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff !important;
  text-decoration: none !important;
  background: #000;
  border: 1px solid #000;
  border-radius: 6px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.resource-card__cta-btn:hover,
.resource-card__cta-btn:focus-visible {
  background: #222;
  border-color: #222;
  color: #fff !important;
}

.resource-card__price {
  margin: 0;
  flex: 0 1 auto;
  max-width: 100%;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #0a1628;
  text-align: right;
}

.resource-card__price-lead {
  margin-right: 0.25rem;
  font-weight: 400;
  color: #4a4a4a;
}

.resource-card__price-amount {
  font-weight: 700;
  color: #0a1628;
}

.resource-card__price-note {
  font-weight: 400;
  color: #4a4a4a;
}

/* Enkelsida resurs */
.resource-single {
  max-width: 40rem;
  margin-inline: auto;
}

.resource-single .resource-card__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.resource-single:hover {
  box-shadow: 0 4px 20px rgb(0 0 0 / 5%);
}

.resource-single__content {
  padding: 0 1.25rem 1.5rem;
  border-top: 1px solid var(--border, #e0e0e0);
  font-size: 1rem;
  line-height: 1.65;
}

.resource-single__content > *:first-child {
  margin-top: 1rem;
}

.taxonomy-plats__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.taxonomy-plats__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
}

.taxonomy-plats__description {
  margin: 0;
  max-width: 42rem;
  color: var(--muted, #5c5c5c);
  line-height: 1.55;
}

.taxonomy-plats__pagination {
  margin-top: clamp(2rem, 5vw, 3rem);
}


/* —— Hero Page —— */
.page-template-page-hero-php .site-main.hero-page,
.hero-page.site-main--hero-page {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding: 0;
}

.hero-section {
  --hero-header-overlap: clamp(4.25rem, 12vw, 6rem);
  --hero-safe-top: env(safe-area-inset-top, 0px);

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #1b2838;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: calc(-1 * (var(--hero-header-overlap) + var(--hero-safe-top)));
  padding-top: calc(var(--hero-header-overlap) + var(--hero-safe-top));
  padding-bottom: clamp(2rem, 5vw, 3rem);
  padding-inline: var(--space-main-x, clamp(1rem, 4vw, 2rem));
  isolation: isolate;
  font-family: var(--font-family-sans, "Munken Sans", system-ui, sans-serif);
}

@media (max-width: 52rem) {
  .hero-section {
    --hero-header-overlap: clamp(5.75rem, 16vw, 7.25rem);
  }
}

.hero-section--height-full {
  min-height: 100vh;
}

.hero-section--height-half {
  min-height: 60vh;
}

.hero-section__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 40%) 0%, transparent 100%);
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--content-max-width, 1200px);
  margin-inline: auto;
}

.hero-section__sub {
  margin: 0;
  max-width: 600px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
}

.hero-section__title {
  margin: 0;
  max-width: min(100%, 36rem);
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-page__content {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  padding-inline: var(--space-main-x, clamp(1rem, 4vw, 2rem));
  background: var(--color-white, #fff);
  color: var(--fg, #1a1a1a);
}

.hero-page__content-inner {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-page__content-inner > *:first-child {
  margin-top: 0;
}

/* —— Events (The Events Calendar) —— */
.tribe-events,
.tribe-events .tribe-events-l-container,
.tribe-events .tribe-events-calendar-list,
.tribe-events .tribe-events-calendar-list__event,
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-description,
.tribe-events .tribe-events-calendar-list__event-date-tag {
  font-family: var(--font-family-sans, "Munken Sans", system-ui, sans-serif);
}

.tribe-events .tribe-events-l-container {
  padding-top: clamp(1rem, 2.8vw, 1.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.tribe-events .tribe-events-calendar-list__event-row {
  margin: 0;
}

.tribe-events .tribe-events-calendar-list__event {
  margin: 0;
  padding-block: clamp(1.125rem, 2.8vw, 1.75rem);
  border-bottom: 1px solid #000;
}

.tribe-events .tribe-events-calendar-list__event:first-child {
  border-top: 1px solid #000;
}

.tribe-events .tribe-events-calendar-list__event-date-tag {
  color: #000;
  background: #fff;
  border: 1px solid #000;
}

.tribe-events .tribe-events-calendar-list__event-datetime {
  margin: 0 0 0.375rem;
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.tribe-events .tribe-events-calendar-list__event-title {
  margin: 0 0 0.375rem;
  color: #000;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-list__event-title-link:visited {
  color: inherit;
  text-decoration: none;
}

.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-list__event-title-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.tribe-events .tribe-events-calendar-list__event-description {
  color: #1a1a1a;
  line-height: 1.65;
}

.tribe-events .tribe-events-c-top-bar__nav-list-item-link,
.tribe-events .tribe-events-c-top-bar__today-button,
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
  color: #000;
}

@media (max-width: 47.9375rem) {
  .tribe-events .tribe-events-calendar-list__event {
    padding-block: 1rem;
  }

  .tribe-events .tribe-events-calendar-list__event-featured-image {
    padding-inline: 1rem;
  }
}
