/*
 * Medya Gazetesi mobile/accessibility hotfix candidate.
 * Merge into birhaber-mortanas-child after staging verification.
 */

.mg-skip-link {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}

.mg-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #0b64c0 !important;
  outline-offset: 3px !important;
}

.mg-nested-menu-list {
  display: contents;
  list-style: none;
}

a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

/*
 * Visual refinement layer, 1.4.0.
 * All theme-facing rules are scoped so the package remains safe on fallback
 * templates and can be disabled by deactivating this plugin.
 */
.mg-birhaber-enhanced {
  --mg-ink: #211914;
  --mg-muted: #6e625b;
  --mg-paper: #fffdf9;
  --mg-line: rgba(66, 44, 31, 0.14);
  --mg-brand: #713116;
  --mg-brand-deep: #30140d;
  --mg-focus: #0b64c0;
  --mg-radius-card: 16px;
  --mg-shadow-card: 0 8px 24px rgba(48, 27, 17, 0.09);
  color: var(--mg-ink);
  background-color: #f7f4ef;
}

.mg-birhaber-enhanced .lastol-out {
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-card);
  background: var(--mg-paper);
  box-shadow: var(--mg-shadow-card);
  isolation: isolate;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mg-birhaber-enhanced .lastol-in,
.mg-birhaber-enhanced .lastol-in > a,
.mg-birhaber-enhanced .lastol-in > a > figure {
  border-radius: inherit;
}

.mg-birhaber-enhanced .lastol-in > a {
  color: var(--mg-ink);
}

.mg-birhaber-enhanced .lastol-out h3 {
  text-wrap: balance;
}

.mg-birhaber-enhanced .mg-card-deck {
  color: var(--mg-muted);
}

.mg-birhaber-enhanced .mg-card-open,
.mg-birhaber-enhanced .mg-card-time,
.mg-birhaber-enhanced .tag {
  letter-spacing: 0.055em;
}

.mg-birhaber-enhanced #agenda > .mg-archive-title {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto 18px;
  color: var(--mg-ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mg-birhaber-enhanced.mg-homepage .mg-feed-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 5px 10px;
  color: var(--mg-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mg-birhaber-enhanced.mg-homepage .mg-feed-heading::before {
  width: 5px;
  height: 1.05em;
  flex: 0 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b75b27, var(--mg-brand-deep));
  content: "";
}

.mg-birhaber-enhanced.mg-homepage #home .mg-ai-writer-top small {
  color: #654c82 !important;
  font-size: 8.5px !important;
  line-height: 1.35;
  letter-spacing: 0.09em !important;
}

.mg-birhaber-enhanced.mg-homepage #home .mg-ai-writer-top p {
  color: #645a70 !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.mg-birhaber-enhanced.mg-homepage #home .mg-ai-writer > a > span {
  color: #6e607c !important;
  font-size: 9px !important;
  line-height: 1.35;
}

.mg-birhaber-enhanced.mg-homepage #home .mg-ai-writer > a > strong {
  font-size: 14px !important;
}

.mg-birhaber-enhanced.mg-homepage #home .mg-ai-writer > a > em {
  font-size: 10px !important;
  line-height: 1.2;
}

.mg-birhaber-enhanced .owl-prev,
.mg-birhaber-enhanced .owl-next,
.mg-birhaber-enhanced .mg-card-save,
.mg-birhaber-enhanced .mg-back-top,
.mg-birhaber-enhanced .mg-reading-list-trigger,
.mg-birhaber-enhanced .mg-reading-list-close {
  min-width: 44px;
  min-height: 44px;
}

@media (hover: hover) and (min-width: 781px) {
  .mg-birhaber-enhanced .lastol-out:hover {
    box-shadow: 0 14px 34px rgba(48, 27, 17, 0.16);
    transform: translateY(-3px);
  }
}

.mg-consent {
  position: fixed;
  z-index: 99998;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  max-width: 880px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #d8cdc6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(30, 18, 11, 0.24);
  color: #2a211d;
  gap: 16px;
}

.mg-consent[hidden],
.mg-consent-open[hidden],
.mg-consent__details[hidden],
.mg-consent__actions button[hidden] {
  display: none !important;
}

.mg-consent__summary strong {
  font-size: 18px;
}

.mg-consent__summary p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.mg-consent__details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.mg-consent__details label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.mg-consent__details input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #713116;
}

.mg-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-consent__actions button,
.mg-consent-open {
  min-height: 44px;
  padding: 10px 15px;
  border: 2px solid #713116;
  border-radius: 9px;
  background: #fff;
  color: #713116;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mg-consent__actions button:hover,
.mg-consent-open:hover {
  background: #fff5ee;
}

.mg-consent__actions button[data-mg-consent-action="accept"] {
  border-color: #713116;
  background: #713116;
  color: #fff;
  box-shadow: 0 7px 16px rgba(113, 49, 22, 0.2);
}

.mg-consent__actions button[data-mg-consent-action="accept"]:hover {
  background: #54220f;
}

.mg-consent__actions button[data-mg-consent-action="preferences"] {
  border-color: #bca89d;
}

.mg-consent-open {
  position: fixed;
  z-index: 99997;
  bottom: 12px;
  left: 12px;
  min-height: 44px;
  padding: 7px 10px;
  background: #fff;
  font-size: 12px;
}

@media (min-width: 760px) {
  .mg-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .mg-consent__details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .mg-consent {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    padding: 17px;
    border-radius: 15px;
    gap: 14px;
  }

  .mg-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mg-consent__actions button[data-mg-consent-action="preferences"],
  .mg-consent__actions button[data-mg-consent-action="save"] {
    grid-column: 1 / -1;
  }

  /* The parent theme keeps the publication time floated and nudged down on
     phones. In the enhanced article header that makes it overlap the H1.
     Restore document flow and keep the metadata readable as one compact row. */
  .mg-birhaber-enhanced.mg-article-reader-v2 #newsRead .top > time {
    position: static !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    display: flex !important;
    width: fit-content !important;
    max-width: 100%;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 14px !important;
    border-radius: 11px !important;
    line-height: 1.45 !important;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 #newsRead .top .siteMap {
    min-height: 20px;
    line-height: 1.4;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 #newsRead .top h1 {
    position: relative;
    clear: both;
    text-wrap: pretty;
  }

  .mg-birhaber-enhanced footer .center .menu a {
    display: flex;
    min-height: 32px;
    align-items: center;
    padding-block: 4px;
    line-height: 1.35;
  }

  .mg-birhaber-enhanced footer .bulletin .form input,
  .mg-birhaber-enhanced footer .bulletin .form button,
  .mg-birhaber-enhanced footer .bulletin li a {
    min-width: 44px;
    min-height: 44px;
  }

  .mg-birhaber-enhanced footer .bulletin li a {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 780px) {
  html.mg-site-guard,
  html:has(body.mg-birhaber-enhanced) {
    margin-top: 80px !important;
    scroll-padding-top: 92px;
  }

  .mg-birhaber-enhanced .header-middle {
    height: 80px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(31, 14, 8, 0.2);
  }

  .mg-birhaber-enhanced .header-middle > .container,
  .mg-birhaber-enhanced .header-middle .hm-in {
    height: 80px !important;
  }

  .mg-birhaber-enhanced #logo > a.des-gizle {
    display: none !important;
  }

  .mg-birhaber-enhanced .header-middle nav {
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .mg-birhaber-enhanced .header-middle nav > ul > li {
    scroll-snap-align: start;
  }

  .mg-birhaber-enhanced .header-middle nav > ul > li > a,
  .mg-birhaber-enhanced .header-middle .openSearch {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mg-birhaber-enhanced .header-middle nav::-webkit-scrollbar {
    display: none;
  }

  .mg-birhaber-enhanced .storiler {
    min-height: 78px;
    padding-block: 9px !important;
    border-bottom: 1px solid var(--mg-line);
    background: rgba(255, 253, 249, 0.96);
  }

  .mg-birhaber-enhanced .storiler .container,
  .mg-birhaber-enhanced #stories {
    min-height: 60px;
  }

  .mg-birhaber-enhanced #stories {
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .mg-birhaber-enhanced #stories .story {
    scroll-snap-align: start;
  }

  .mg-birhaber-enhanced #agenda > .mg-archive-title {
    margin: 10px 10px 14px;
    font-size: 28px;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide,
  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-stage-outer,
  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-stage,
  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item,
  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item > div,
  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item a {
    height: 330px !important;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide {
    position: relative !important;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    isolation: isolate;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item a::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 8, 5, 0.03) 30%, rgba(16, 8, 5, 0.9) 100%);
    content: "";
    pointer-events: none;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item img {
    width: 100% !important;
    height: 330px !important;
    object-fit: cover;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-item strong {
    z-index: 3 !important;
    right: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    display: -webkit-box !important;
    width: auto !important;
    max-height: calc(1.25em * 3 + 26px);
    padding: 11px 13px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(23, 14, 9, 0.76);
    color: #fff !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    backdrop-filter: blur(7px);
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-dots {
    position: absolute !important;
    z-index: 4;
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: auto !important;
    height: 44px !important;
    align-items: center;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(25, 15, 10, 0.7) !important;
    backdrop-filter: blur(7px);
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-dots button {
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-dots button::before {
    display: block;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58) !important;
    color: transparent !important;
    content: "" !important;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-dots button span {
    display: none !important;
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-dots button.active::before {
    border-color: #fff;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  }

  .mg-birhaber-enhanced #agenda #owl-mainSlide .owl-dots button:nth-child(n + 6):not(.active) {
    display: none !important;
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea > div {
    width: 100% !important;
    min-height: 126px;
    margin: 0 !important;
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea .newsBox {
    display: grid !important;
    grid-template-columns: 116px minmax(0, 1fr);
    width: 100% !important;
    min-height: 126px;
    overflow: hidden;
    border: 1px solid var(--mg-line);
    border-radius: 14px;
    background: var(--mg-paper);
    box-shadow: 0 6px 18px rgba(46, 32, 27, 0.09);
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea .newsBox > span:first-child {
    display: block !important;
    width: 116px !important;
    height: 126px !important;
    overflow: hidden;
    background: linear-gradient(135deg, #e8ddd5, #cdb9aa);
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea .newsBox > span:first-child:not(:has(img))::before {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(73, 44, 29, 0.7);
    content: "MG";
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea .newsBox > span:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea .newsBox > strong {
    display: flex !important;
    min-width: 0;
    min-height: 126px;
    align-items: center;
    padding: 14px !important;
    color: var(--mg-ink);
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .mg-birhaber-enhanced #agenda .sixNews.loadArea .newsBox > strong > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-item > div > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    isolation: isolate;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-item > div > a::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(15, 8, 5, 0.04) 20%,
      rgba(15, 8, 5, 0.5) 54%,
      rgba(15, 8, 5, 0.94) 100%
    );
    content: "";
    pointer-events: none;
  }

  .mg-birhaber-enhanced.mg-homepage #home .lastmin-slider #owl-lastmin-slider h2 {
    z-index: 3 !important;
    right: 0 !important;
    bottom: 38px !important;
    left: 0 !important;
    display: -webkit-box !important;
    max-height: calc(1.2em * 3 + 28px);
    overflow: hidden;
    width: auto !important;
    margin-inline: 14px !important;
    padding: 12px 14px 13px !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    background: rgba(22, 13, 9, 0.74);
    color: #fff !important;
    font-size: clamp(21px, 6vw, 26px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    backdrop-filter: blur(7px);
  }

  .mg-birhaber-enhanced.mg-homepage .lastmin-slider,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-stage-outer,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-stage,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-item,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-item > div,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-item > div > a {
    min-height: 250px !important;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider figure,
  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider figure img {
    width: 100% !important;
    height: 218px !important;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider figure img {
    object-fit: cover;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-item > div > a > svg {
    display: none !important;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 32px;
    padding: 5px 8px 7px;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-dots button,
  .mg-birhaber-enhanced.mg-homepage #home .owl-dots button {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-dots button span {
    display: block;
    width: 11px !important;
    height: 11px !important;
    margin: 0 !important;
    border: 1px solid rgba(80, 56, 42, 0.22);
    border-radius: 999px !important;
    background: #d8d1cb !important;
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-dots button.active span {
    border-color: var(--mg-brand);
    background: var(--mg-brand) !important;
    box-shadow: 0 0 0 3px rgba(113, 49, 22, 0.12);
  }

  .mg-birhaber-enhanced.mg-homepage #owl-lastmin-slider .owl-dots button:nth-child(n + 6):not(.active) {
    display: none !important;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol {
    gap: 12px !important;
    margin-top: 10px;
    padding: 8px 5px 14px !important;
  }

  .mg-birhaber-enhanced.mg-homepage .mg-feed-heading {
    margin: 20px 5px 8px;
    font-size: 24px;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol-out {
    min-height: 160px;
    overflow: hidden;
    border-color: rgba(58, 42, 74, 0.16) !important;
    box-shadow: 0 7px 20px rgba(46, 32, 27, 0.1) !important;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol-in,
  .mg-birhaber-enhanced.mg-homepage .lastol-in > a {
    min-height: 160px;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol-out .lastol-in > a,
  .mg-birhaber-enhanced.mg-homepage .mg-card-lead .lastol-in > a,
  .mg-birhaber-enhanced.mg-homepage .mg-card-standard .lastol-in > a,
  .mg-birhaber-enhanced.mg-homepage .mg-card-brief .lastol-in > a {
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr) !important;
    padding-bottom: 10px !important;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol-out .lastol-in > a > figure,
  .mg-birhaber-enhanced.mg-homepage .mg-card-lead figure,
  .mg-birhaber-enhanced.mg-homepage .mg-card-standard figure,
  .mg-birhaber-enhanced.mg-homepage .mg-card-brief figure {
    width: 100% !important;
    height: 142px !important;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol-out .lastol-in > a > figure img,
  .mg-birhaber-enhanced.mg-homepage .mg-card-lead figure img,
  .mg-birhaber-enhanced.mg-homepage .mg-card-standard figure img,
  .mg-birhaber-enhanced.mg-homepage .mg-card-brief figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .mg-birhaber-enhanced.mg-homepage .lastol-out h3 {
    display: -webkit-box !important;
    max-height: calc(1.36em * 3 + 4px);
    padding: 12px 12px 2px !important;
    overflow: hidden;
    font-size: 15px !important;
    line-height: 1.36 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mg-birhaber-enhanced.mg-homepage .mg-card-footer {
    align-self: end;
    min-height: 36px;
    padding: 5px 9px 7px !important;
  }

  .mg-birhaber-enhanced.mg-homepage .mg-card-save {
    top: 8px !important;
    right: 8px !important;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    backdrop-filter: blur(5px);
  }

  .mg-birhaber-enhanced.mg-homepage .mg-card-save .mg-save-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  /* Keep the primary feed vertical, but turn the two deep category stacks
     inside .cuff into swipeable rails. No story is hidden and the page no
     longer requires thousands of pixels of repetitive vertical scrolling. */
  .mg-birhaber-enhanced.mg-homepage #home .cuff .lastol {
    display: grid !important;
    grid-auto-columns: min(88vw, 328px);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    grid-template-rows: 1fr !important;
    gap: 12px !important;
    height: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-inline: -5px;
    padding: 8px 5px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(113, 49, 22, 0.48) transparent;
    scrollbar-width: thin;
  }

  .mg-birhaber-enhanced.mg-homepage #home .cuff .lastol-out {
    width: auto !important;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .mg-birhaber-enhanced.mg-homepage #home .cuff .lastol:focus-visible {
    outline: 3px solid var(--mg-focus) !important;
    outline-offset: 3px;
  }

  /* Replace the theme's oversized single-column related-news tiles with a
     compact reading-continuation list on article pages. */
  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    height: auto !important;
    margin-inline: 0 !important;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .row > div {
    width: 100% !important;
    min-height: 126px;
    margin: 0 !important;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .newsBox {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 126px;
    overflow: hidden;
    border: 1px solid var(--mg-line);
    border-radius: 15px;
    background: var(--mg-paper);
    box-shadow: 0 6px 18px rgba(46, 32, 27, 0.09);
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .newsBox > span:first-child {
    width: 118px !important;
    height: 126px !important;
    overflow: hidden;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .newsBox > span:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .newsBox > strong {
    display: flex !important;
    align-items: center;
    min-width: 0;
    padding: 14px !important;
    color: var(--mg-ink);
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .mg-birhaber-enhanced.mg-article-reader-v2 .sixNews .newsBox > strong > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .mg-birhaber-enhanced .gt_switcher_wrapper > .mg-language-trigger-floating {
    right: auto !important;
    bottom: 69px !important;
    left: 12px !important;
  }

  .mg-reading-list-trigger {
    right: 12px !important;
    bottom: 69px !important;
  }
}

@media (max-width: 420px) {
  .mg-birhaber-enhanced.mg-homepage #home .lastmin-slider #owl-lastmin-slider h2 {
    bottom: 37px !important;
    margin-inline: 12px !important;
    padding: 11px 12px 12px !important;
    font-size: 21px !important;
  }
}

/* The parent theme switches the header from fixed to in-flow above phone
   widths. Remove the phone-only compensation in that tablet interval. */
@media (min-width: 576px) and (max-width: 780px) {
  html.mg-site-guard,
  html:has(body.mg-birhaber-enhanced) {
    margin-top: 0 !important;
    scroll-padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-birhaber-enhanced .owl-carousel,
  .mg-birhaber-enhanced .owl-stage,
  .mg-birhaber-enhanced .owl-item {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .mg-birhaber-enhanced .lastol-out {
    transition: none !important;
  }
}

/* 1.4.2 footer polish: do not present unavailable social actions as working
   controls, and use the phone width efficiently without removing content. */
.mg-birhaber-enhanced footer .bulletin .mg-social-unavailable,
.mg-birhaber-enhanced footer .bulletin a[aria-disabled="true"] {
  display: none !important;
}

@media (max-width: 575px) {
  body.mg-birhaber-enhanced footer .center .menu > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 0 12px !important;
    margin-inline: 0 !important;
  }

  html body.mg-birhaber-enhanced footer .center .menu > div > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    flex: none !important;
    justify-self: stretch;
    padding: 10px 0 !important;
  }

  html body.mg-birhaber-enhanced footer .center .menu > div > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  body.mg-birhaber-enhanced footer .center .menu > div > div:nth-child(3) > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  body.mg-birhaber-enhanced footer .center .menu strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }
}
