/*
Theme Name: Mini-Bladet Glejbjerg
Theme URI: https://glejbjerg.dk/
Author: Mini-Bladet
Description: Et varmt og moderne lokalt WordPress-tema til Mini-Bladet i Glejbjerg. Temaet samler ugeblad, lokale nyheder, arrangementer, mærkedage og annoncører.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: minibladet
*/

:root {
  --mb-blue: #313a98;
  --mb-blue-dark: #20286f;
  --mb-blue-soft: #eef0ff;
  --mb-red: #ed1c2b;
  --mb-yellow: #ffd700;
  --mb-ink: #1f2430;
  --mb-muted: #626a77;
  --mb-paper: #fbfaf6;
  --mb-line: #dedcd4;
  --mb-white: #fff;
  --mb-shadow: 0 18px 50px rgba(25, 31, 73, 0.12);
  --mb-radius: 20px;
  --mb-wrap: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--mb-ink);
  background: var(--mb-paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.32;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(41, 45, 76, 0.08) 0.7px,
    transparent 0.7px
  );
  background-size: 8px 8px;
}
a {
  color: var(--mb-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--mb-red);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--mb-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.018em;
}
p {
  margin: 0 0 1.15em;
}
.mb-wrap {
  width: var(--mb-wrap);
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #fff;
  background: var(--mb-blue);
}

.mb-topline {
  color: #fff;
  background: var(--mb-blue-dark);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.mb-topline__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mb-topline a {
  color: #fff;
}
.mb-topline__deadline {
  opacity: 0.82;
}

.mb-brand {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mb-line);
}
.mb-brand__inner {
  display: grid;
  grid-template-columns: minmax(240px, 470px) 1fr;
  min-height: 145px;
  align-items: center;
  gap: 50px;
}
.mb-logo img {
  width: min(470px, 100%);
}
.mb-brand__claim {
  justify-self: end;
  max-width: 360px;
  padding-left: 24px;
  border-left: 4px solid var(--mb-yellow);
  color: var(--mb-muted);
  font-family: Georgia, serif;
  font-size: 1.08rem;
}
.mb-brand__claim strong {
  display: block;
  color: var(--mb-blue);
  font-family: Inter, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mb-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  color: #fff;
  background: var(--mb-blue);
  box-shadow: 0 8px 24px rgba(31, 39, 111, 0.16);
}
.mb-nav__inner {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mb-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.mb-nav a {
  display: block;
  padding: 17px 15px;
  color: #fff;
  font-size: 0.91rem;
  font-weight: 760;
  text-decoration: none;
}
.mb-nav a:hover,
.mb-nav .current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.mb-nav__issue {
  display: inline-flex;
  padding: 9px 16px;
  align-items: center;
  gap: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}
.mb-nav__issue:hover {
  color: var(--mb-blue-dark);
  background: #fff;
}
.mb-menu-toggle {
  display: none;
  padding: 9px 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 800;
}

.mb-alert {
  overflow: hidden;
  color: var(--mb-ink);
  background: var(--mb-yellow);
}
.mb-alert__inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
}
.mb-alert__label {
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  background: var(--mb-red);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mb-hero {
  padding: clamp(28px, 5vw, 68px) 0 46px;
}
.mb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: 28px;
}
.mb-lead {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 28px;
  background: #222;
  box-shadow: var(--mb-shadow);
}
.mb-lead::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    transparent 28%,
    rgba(12, 18, 45, 0.9) 100%
  );
}
.mb-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mb-lead:hover img {
  transform: scale(1.02);
}
.mb-lead__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(28px, 5vw, 58px);
  color: #fff;
}
.mb-lead__content h1 {
  max-width: 800px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.3);
}
.mb-lead__content p {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}
.mb-kicker {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 6px 10px;
  align-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--mb-red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mb-issue-card {
  position: relative;
  display: flex;
  min-height: 580px;
  padding: 28px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #d9d8d0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--mb-shadow);
}
.mb-issue-card::before {
  position: absolute;
  top: -45px;
  right: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--mb-yellow);
  content: "";
}
.mb-issue-card__label {
  position: relative;
  z-index: 1;
  color: var(--mb-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.mb-issue-card h2 {
  margin: 6px 0 4px;
  font-size: 2.15rem;
}
.mb-issue-card__date {
  color: var(--mb-muted);
  font-size: 0.9rem;
}
.mb-issue-card__cover {
  width: 170px;
  margin: 19px auto;
  overflow: hidden;
  border: 1px solid #bbb;
  background: #eee;
  box-shadow: 0 12px 28px rgba(24, 28, 67, 0.22);
  transform: rotate(-1.5deg);
}
.mb-issue-card__cover img {
  aspect-ratio: 210 / 297;
  object-fit: cover;
}
.mb-issue-card__actions {
  display: grid;
  margin-top: auto;
  gap: 10px;
}
.mb-button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--mb-blue);
  border-radius: 8px;
  color: #fff;
  background: var(--mb-blue);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: 0.18s ease;
}
.mb-button:hover {
  color: #fff;
  background: var(--mb-blue-dark);
  border-color: var(--mb-blue-dark);
  transform: translateY(-1px);
}
.mb-button--ghost {
  color: var(--mb-blue);
  background: transparent;
}
.mb-button--ghost:hover {
  color: #fff;
  background: var(--mb-blue);
}

.mb-quick {
  padding: 8px 0 78px;
}
.mb-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mb-quick__item {
  display: grid;
  min-height: 120px;
  padding: 22px;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--mb-line);
  border-radius: 14px;
  color: var(--mb-ink);
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.mb-quick__item:hover {
  color: var(--mb-ink);
  background: #fff;
  border-color: #bfc3e8;
  box-shadow: 0 12px 25px rgba(30, 36, 92, 0.08);
  transform: translateY(-2px);
}
.mb-quick__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--mb-blue);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}
.mb-quick__item strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.08rem;
}
.mb-quick__item small {
  display: block;
  margin-top: 2px;
  color: var(--mb-muted);
  line-height: 1.35;
}

.mb-section {
  padding: clamp(70px, 9vw, 112px) 0;
}
.mb-section--white {
  background: #fff;
}
.mb-section--blue {
  color: #fff;
  background: var(--mb-blue-dark);
}
.mb-section--blue h2,
.mb-section--blue h3 {
  color: #fff;
}
.mb-section__head {
  display: flex;
  margin-bottom: 34px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.mb-section__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--mb-red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mb-section__head h2 {
  margin: 0;
}
.mb-section__head p {
  max-width: 450px;
  margin: 0;
  color: var(--mb-muted);
}
.mb-section--blue .mb-section__head p {
  color: rgba(255, 255, 255, 0.72);
}
.mb-text-link {
  font-weight: 800;
  white-space: nowrap;
}

.mb-news-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}
.mb-card {
  overflow: hidden;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius);
  background: #fff;
  box-shadow: 0 14px 35px rgba(30, 35, 75, 0.07);
}
.mb-card__media {
  display: block;
  overflow: hidden;
  background: var(--mb-blue-soft);
}
.mb-card__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.mb-card:hover .mb-card__media img {
  transform: scale(1.025);
}
.mb-card--feature .mb-card__media img {
  height: 330px;
}
.mb-card__body {
  padding: 24px;
}
.mb-card__meta {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  gap: 9px;
  color: var(--mb-muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}
.mb-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mb-red);
}
.mb-card h3 {
  margin-bottom: 10px;
}
.mb-card h3 a {
  color: var(--mb-ink);
  text-decoration: none;
}
.mb-card h3 a:hover {
  color: var(--mb-blue);
}
.mb-card p {
  margin-bottom: 0;
  color: var(--mb-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.mb-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mb-event {
  display: grid;
  min-height: 230px;
  padding: 26px;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--mb-radius);
  color: var(--mb-ink);
  background: #fff;
}
.mb-event__top {
  display: flex;
  margin-bottom: 26px;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.mb-event__date {
  display: grid;
  width: 62px;
  min-width: 62px;
  height: 70px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--mb-red);
  line-height: 1;
  text-align: center;
}
.mb-event__date strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}
.mb-event__date span {
  display: block;
  margin-top: 3px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mb-event__type {
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--mb-blue);
  background: var(--mb-blue-soft);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mb-event h3 {
  margin: 0 0 10px;
}
.mb-event__details {
  color: var(--mb-muted);
  font-size: 0.86rem;
}
.mb-event__link {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.mb-community {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 35px;
  align-items: stretch;
}
.mb-community__intro {
  padding: clamp(30px, 5vw, 56px);
  border-radius: 24px;
  color: #fff;
  background: var(--mb-blue);
}
.mb-community__intro h2 {
  color: #fff;
}
.mb-community__intro p {
  color: rgba(255, 255, 255, 0.8);
}
.mb-notices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.mb-notice {
  padding: 24px;
  border: 1px solid var(--mb-line);
  border-radius: 16px;
  background: #fff;
}
.mb-notice__label {
  display: block;
  margin-bottom: 12px;
  color: var(--mb-red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.mb-notice h3 {
  font-size: 1.35rem;
}
.mb-notice p {
  margin: 0;
  color: var(--mb-muted);
  font-size: 0.9rem;
}

.mb-ad-strip {
  padding: 32px 0;
  border-top: 1px solid var(--mb-line);
  border-bottom: 1px solid var(--mb-line);
  background: #efeee9;
}
.mb-ad-strip__label {
  margin-bottom: 15px;
  color: var(--mb-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.mb-ads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mb-ad {
  display: grid;
  min-height: 118px;
  padding: 18px;
  place-items: center;
  border: 1px solid #d3d1c9;
  background: #fff;
  text-align: center;
}
.mb-ad strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}
.mb-ad span {
  color: var(--mb-muted);
  font-size: 0.75rem;
}
.mb-ad img {
  max-height: 82px;
  object-fit: contain;
}

.mb-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #171c42;
}
.mb-footer__main {
  display: grid;
  padding: 70px 0 55px;
  grid-template-columns: 1.1fr 0.75fr 0.75fr;
  gap: 70px;
}
.mb-footer__logo {
  width: 270px;
  margin-bottom: 18px;
  padding: 13px;
  background: #fff;
}
.mb-footer h3 {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mb-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mb-footer li {
  margin: 5px 0;
}
.mb-footer a {
  color: #fff;
  text-decoration: none;
}
.mb-footer a:hover {
  color: var(--mb-yellow);
}
.mb-footer__bottom {
  display: flex;
  padding: 20px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.mb-content {
  padding: 70px 0 100px;
}
.mb-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
}
.mb-article {
  padding: clamp(26px, 5vw, 62px);
  border: 1px solid var(--mb-line);
  border-radius: 20px;
  background: #fff;
}
.mb-article__meta {
  margin-bottom: 16px;
  color: var(--mb-muted);
  font-size: 0.82rem;
  font-weight: 750;
}
.mb-article__image {
  width: 100%;
  max-height: 560px;
  margin: 30px 0;
  border-radius: 14px;
  object-fit: cover;
}
.mb-entry > * {
  max-width: 760px;
}
.mb-entry > .alignwide {
  max-width: 1000px;
}
.mb-entry > .alignfull {
  max-width: none;
}
.mb-sidebar {
  align-self: start;
  padding: 26px;
  border-radius: 16px;
  background: var(--mb-blue-soft);
}
.mb-pagination {
  display: flex;
  margin-top: 35px;
  gap: 8px;
}
.mb-pagination .page-numbers {
  padding: 8px 13px;
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
}
.mb-empty {
  padding: 45px;
  border: 1px dashed #b8b7b0;
  border-radius: 16px;
  text-align: center;
}

@media (max-width: 980px) {
  .mb-brand__inner {
    min-height: 120px;
    gap: 25px;
  }
  .mb-brand__claim {
    font-size: 0.95rem;
  }
  .mb-hero__grid {
    grid-template-columns: 1fr;
  }
  .mb-lead {
    min-height: 520px;
  }
  .mb-issue-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: center;
    gap: 24px;
  }
  .mb-issue-card__cover {
    grid-area: 1 / 2 / 5 / 3;
  }
  .mb-issue-card__actions {
    max-width: 340px;
  }
  .mb-quick__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mb-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mb-card--feature {
    grid-column: 1 / -1;
  }
  .mb-events {
    grid-template-columns: 1fr 1fr;
  }
  .mb-community {
    grid-template-columns: 1fr;
  }
  .mb-ads {
    grid-template-columns: repeat(2, 1fr);
  }
  .mb-content__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --mb-wrap: min(100% - 28px, 1180px);
  }
  body {
    font-size: 16px;
  }
  .mb-topline__deadline,
  .mb-brand__claim,
  .mb-nav__issue {
    display: none;
  }
  .mb-topline__inner {
    justify-content: center;
  }
  .mb-brand__inner {
    display: block;
    min-height: 0;
    padding: 20px 0 17px;
  }
  .mb-logo img {
    width: 320px;
    max-width: 90%;
    margin: 0 auto;
  }
  .mb-menu-toggle {
    display: block;
  }
  .mb-nav__inner {
    min-height: 52px;
  }
  .mb-nav__menu {
    display: none;
    position: absolute;
    top: 52px;
    right: -14px;
    left: -14px;
    padding: 10px 14px 16px;
    background: var(--mb-blue);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
  }
  .mb-nav__menu.is-open {
    display: block;
  }
  .mb-nav ul {
    display: block;
  }
  .mb-nav a {
    padding: 11px 7px;
  }
  .mb-alert__inner {
    padding: 10px 0;
    line-height: 1.3;
  }
  .mb-alert__label {
    display: none;
  }
  .mb-hero {
    padding-top: 20px;
  }
  .mb-lead {
    min-height: 470px;
    border-radius: 18px;
  }
  .mb-lead__content {
    padding: 25px;
  }
  .mb-issue-card {
    display: flex;
    padding: 23px;
    border-radius: 18px;
  }
  .mb-issue-card__cover {
    width: 130px;
    margin: 15px auto 22px;
  }
  .mb-quick {
    padding-bottom: 55px;
  }
  .mb-quick__grid,
  .mb-news-grid,
  .mb-events,
  .mb-notices,
  .mb-ads {
    grid-template-columns: 1fr;
  }
  .mb-quick__item {
    min-height: 90px;
  }
  .mb-card--feature {
    grid-column: auto;
  }
  .mb-card--feature .mb-card__media img,
  .mb-card__media img {
    height: 230px;
  }
  .mb-section__head {
    display: block;
  }
  .mb-section__head p {
    margin-top: 12px;
  }
  .mb-events {
    gap: 14px;
  }
  .mb-footer__main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 55px 0 35px;
  }
  .mb-footer__bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
