/*
 * Mein Osttirol: the few things Nexus has no setting for (yet). Everything
 * else (colors, fonts, radii, header, footer) comes from Nexus Studio.
 * Colors only use the Nexus tokens, so light and dark mode follow by themselves.
 */

/*
 * Texts use the full container width (Studio offers at most 75ch).
 * Shape: very round surfaces; card and image corner radii come from Nexus Studio.
 */
html:root {
    --mor-round: 1.75rem;
}

/*
 * Scrollbars in the site red, on a clear track: the page and every inner
 * scroller (tables, rails, menus), as scrollbar-color is inherited. Nexus has
 * no setting for it. Follows light and dark mode through the token.
 */
html:root {
    scrollbar-color: color-mix(in srgb, var(--nx-color-primary) 70%, transparent) transparent;
}

/* No section spacing above a header image that opens the page: on a
   1080 px monitor the start page image then sits centered between the bar
   space and the window bottom (owner) */
#main > .mod_article:first-child:has(> .content-nexus-header:first-child) {
    padding-block-start: 0;
}

/*
 * Header: the logo hangs out of the bar, larger than Studio allows (8rem cap,
 * reported to Nexus). The breadcrumbs sit in the bar next to it on one line
 * (Nexus Studio position "in-header", "Eine Zeile neben dem Menü"). Narrow
 * screens: the logo shrinks into the bar (breadcrumbs are hidden below
 * 1024 px, Studio breadcrumb_hide_below 1023). The trail size is the Studio
 * breadcrumb size "klein" (0.875rem).
 */

@container nx-hybrid (inline-size >= 48rem) {
    .nx-hybrid #header {
        --nx-logo-height: 10rem;
    }

    /*
     * The page starts below the logo. The space sits on <main>, not on the
     * header: smart-reveal fixes the header on scroll and its placeholder
     * keeps only the header's height, so a header margin made the page jump.
     */
    .nx-hybrid #header ~ #main {
        margin-block-start: 4rem;
    }

    .nx-hybrid #header .nx-brand img {
        max-inline-size: none;
    }
}

@container nx-hybrid (inline-size < 48rem) {
    /* Phones: a header image that opens the page keeps a little room below the bar */
    .nx-hybrid #header ~ #main:has(> .mod_article:first-child > .content-nexus-header:first-child) {
        margin-block-start: 1.75rem;
    }

    /* Nexus sizes the logo box for the large logo, which leaves no room in the bar */
    .nx-hybrid #header .nx-brand {
        min-inline-size: 0;
    }
}

/*
 * Headers with the text on the left (the drawn artwork of App\Import\HeaderArt
 * and the tourism photos alike): the Nexus scrim only shades the side with the
 * text instead of greying the whole picture; photos looked very dark under the
 * full 62% (Julle, 2026-11-14). Behind the
 * text it is 62% black: white text then reaches 4.5:1 on any picture, also on
 * snow and on the sun (accessibility audit 2026-11-13: 1.9:1 to 4.4:1 before).
 * The shaded part ends where the text column ends (about 33rem from the
 * content edge) and fades out over the next 24rem along an eased curve
 * (smoothstep): a straight 16rem ramp drew a visible edge where it started,
 * the picture looked cut in half (Julle, 2026-11-14). On phones the text needs
 * the whole width: the picture shows the calm left part with the mountains.
 */
.nx-header-align-start.nx-header-scrim-dark .nx-header-media .nx-header-scrim {
    --mor-header-shade: max(40rem, 50vw - 12rem);

    background: linear-gradient(
        90deg,
        rgb(0 0 0 / 0.62) var(--mor-header-shade),
        rgb(0 0 0 / 0.593) calc(var(--mor-header-shade) + 3rem),
        rgb(0 0 0 / 0.523) calc(var(--mor-header-shade) + 6rem),
        rgb(0 0 0 / 0.424) calc(var(--mor-header-shade) + 9rem),
        rgb(0 0 0 / 0.310) calc(var(--mor-header-shade) + 12rem),
        rgb(0 0 0 / 0.196) calc(var(--mor-header-shade) + 15rem),
        rgb(0 0 0 / 0.097) calc(var(--mor-header-shade) + 18rem),
        rgb(0 0 0 / 0.027) calc(var(--mor-header-shade) + 21rem),
        rgb(0 0 0 / 0) calc(var(--mor-header-shade) + 24rem)
    );
}

/* A phone drawing takes its focal point from the file (bottom right, so the
   corner sun stays whole in a tall hero at 320; HeaderArt::apply) */
.nx-header-media :not([data-nx-small-image]) > img[src*="/header-art-"] {
    object-position: 50% 100%;
}

/* The sun with its icon at one spot near the top right in every drawing
   (Julle, 2026-11-14; scripts/header-art.py SUN_SPOT_X), so the pictures are
   anchored top right: centre about 150px from the right, top about 60px down */
@media (width >= 48rem) {
    /* Also the drawings without a phone version (account, persons): the rule above
       is more specific and anchored them bottom centre, cutting the sun off (2026-11-17) */
    .nx-header-media img[src*="/header-art-"],
    .nx-header-media :not([data-nx-small-image]) > img[src*="/header-art-"] {
        object-position: 100% 0%;
    }

    /* The neutral drawing of the compact account headers (16rem high) shows sky only
       when anchored at the top: 25% is the lowest spot that keeps the sun whole at
       1920 (measured 2026-11-17: 768 up to 100%, 1024 63%, 1440 30%, 1920 25%) */
    .nx-header-media :not([data-nx-small-image]) > img[src*="/header-art-account"] {
        object-position: 100% 25%;
    }
}

/* The same drawings as feature card pictures ("Alles für Osttirol"): since Nexus
   35c430568 a card with a fixed ratio gets a file already cropped on the server,
   around the sun as the file's important part (HeaderArt::focusOnSun, 2026-11-21).
   This rule still keeps the right edge for cards with the "original" ratio
   (Julle, 2026-11-14) */
.nx-feature-card img[src*="/header-art-"] {
    object-position: 100% 50%;
}

@media (width < 48rem) {
    .nx-header-align-start.nx-header-scrim-dark .nx-header-media .nx-header-scrim {
        background: rgb(0 0 0 / 0.62);
    }

    /* A phone drawing (Nexus "Bild für kleine Bildschirme", Julle 2026-11-14) keeps
       its landscape and sun in the bottom band: the shade covers the text above and
       fades out over the band, measured from the bottom edge */
    .nx-header-align-start.nx-header-scrim-dark .nx-header-media:has(picture[data-nx-small-image]) .nx-header-scrim {
        background: linear-gradient(
            180deg,
            rgb(0 0 0 / 0.62) calc(100% - 16rem),
            rgb(0 0 0 / 0.31) calc(100% - 12.5rem),
            rgb(0 0 0 / 0) calc(100% - 9rem)
        );
    }

    .nx-header-media :not([data-nx-small-image]) > img[src*="/header-art-"] {
        /* A drawing with an important part (file manager, Nexus --nx-cover-position) keeps it;
           a phone drawing takes Nexus' own small-image position */
        object-position: var(--nx-cover-position, 18% 100%);
    }
}

/*
 * Account link before the search (AccountLinkListener): "Anmelden" for
 * guests, a green "Angemeldet als <name>" when logged in. Narrow bars show
 * the icon only; the name stays for screen readers. Its place in the bar
 * comes from Nexus (data-nx-header-slot="end").
 */
.mor-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-block-size: 2.75rem;
    padding-inline: 0.5rem;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* The icon-only link is 36 px wide; the tap area reaches 44 px without widening
   the link, which would push the menu button onto a second line at 320 px. */
.mor-account::after {
    content: "";
    position: absolute;
    inset: 0;
    inline-size: max(100%, 2.75rem);
    margin-inline: auto;
}

.mor-account:hover,
.mor-account[aria-current] {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.mor-account-icon {
    position: relative;
    display: inline-flex;
}

.mor-account-icon svg {
    fill: currentColor;
}

.mor-account--in {
    padding-inline: 0.75rem 1rem;
    border-radius: 999px;
    /* Fixed deep green in both schemes: the dark-scheme positive token (#7fc79a)
       gives white text only 1.99:1; #1f6b3a gives 6.52:1 (WCAG AA 4.5:1) */
    background: #1f6b3a;
    color: #fff;
}

.mor-account--in .mor-account-label {
    max-inline-size: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

@container nx-hybrid (inline-size < 40rem) {
    .mor-account-label {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .mor-account--in {
        justify-content: center;
        inline-size: 2.75rem;
        padding-inline: 0;
    }
}

/* Kontoübersicht: one card per entry type */
.mor-account-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.mor-account-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mor-account-area h3 {
    margin: 0;
    font-size: 1.375rem;
}

.mor-account-area .nx-cluster {
    margin-block-start: auto;
}

/*
 * "Meine Einträge": delete in two steps without JavaScript. The summary is a
 * plain button (no disclosure marker), reads "Abbrechen" while open, and the
 * confirmation takes a line of its own below the buttons.
 */
.mor-entry-delete > summary {
    /* Same box as the a/button.nx-button next to it */
    display: flex;
    inline-size: fit-content;
    box-sizing: border-box;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.mor-entry-delete > summary::-webkit-details-marker {
    display: none;
}

.mor-entry-delete > summary::marker {
    content: '';
}

.mor-entry-delete-cancel,
.mor-entry-delete[open] .mor-entry-delete-open {
    display: none;
}

.mor-entry-delete[open] .mor-entry-delete-cancel {
    display: inline;
}

/* "Meine ..." cards: a long word in a title (German compounds) made the card content
   wider than the card at 320 to 768 px and cut off the buttons (audit 2026-11-18). The
   flex item may shrink below its content, the title breaks anywhere. Own card markup. */
.mor-entry-list > li > .nx-stack {
    min-inline-size: 0;
}

.mor-entry-list h3 {
    overflow-wrap: anywhere;
}

/* Bin icon and label on one line (Julle, 2026-11-18: every Löschen button has the bin) */
.mor-entry-delete:not([open]) .mor-entry-delete-open {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.mor-entry-delete[open] {
    flex-basis: 100%;
}

.mor-entry-delete form {
    margin-block-start: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid color-mix(in oklab, var(--nx-color-primary) 35%, transparent);
    border-radius: var(--mor-round);
    background: color-mix(in oklab, var(--nx-color-primary) 6%, transparent);
}

.mor-entry-delete form p {
    margin-block: 0 0.75rem;
}

/*
 * "Meine Einträge": an expired or deactivated entry stays in the list, greyed
 * out (Julle, 2026-11-15). Photo in grey, title and card muted; the status line
 * and the buttons keep their full contrast. No Nexus setting for a card state.
 */
.mor-entry-list > .mor-entry-inactive {
    border-style: dashed;
    background: color-mix(in oklab, var(--nx-color-muted) 10%, var(--nx-color-surface));
}

.mor-entry-inactive img {
    filter: grayscale(1);
    opacity: 0.6;
}

.mor-entry-inactive h3,
.mor-entry-inactive h3 a {
    color: var(--nx-color-muted);
}

/* "Meine Einträge" without entries: the empty note stays at half the screen
   width on desktop (Julle, 2026-11-15); no Nexus width setting for it */
@media (min-width: 64rem) {
    .mor-entries-empty {
        max-inline-size: 50vw;
    }
}

/* Login pages: the form and the invitation to sign up side by side
   (Nexus wraps the element group's children in an nx-lane) */
.mor-login-split > .nx-lane {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem 2.5rem;
    align-items: start;
}

.mor-login-split {
    margin-block: 1.5rem;
}

/* Konto erstellen: "Alle Anzeigen kostenlos!" as a slightly tilted
   lettering, above the form on phones, beside it from 60rem (Julle,
   2026-11-09: own CSS, Nexus has no tilt setting) */
.mor-register-split {
    margin-block: 1.5rem;
}

.mor-free-stamp {
    margin-block: 2rem 1.5rem;
}

.mor-free-stamp :is(h1, h2, h3) {
    margin: 0;
    rotate: -4deg;
    transform-origin: left center;
}

@media (min-width: 60rem) {
    .mor-register-split > .nx-lane {
        display: grid;
        grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
    }

    /* Centred in the column beside the form, both ways (Julle, 2026-11-09) */
    .mor-free-stamp {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
    }

    .mor-free-stamp :is(h1, h2, h3) {
        text-align: center;
        rotate: -6deg;
        transform-origin: center;
    }
}

/* Login page: the invitation to sign up next to the form */
.mor-signup {
    padding: 1.25rem 1.5rem;
    border: 1px solid color-mix(in oklab, var(--nx-color-primary) 35%, transparent);
    border-radius: var(--mor-round);
    background: color-mix(in oklab, var(--nx-color-primary) 6%, var(--nx-color-surface, #fff));
}

/*
 * Link rows: a paragraph that holds only links, a hyperlink element or a
 * group of them (the import marks them) shows the links as buttons. Links
 * inside running text keep their underline.
 */
.mor-links,
.mor-links > .nx-lane {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.5rem;
}

/* A Nexus lane is a size container and has no width of its own in a row */
.mor-links > .nx-lane {
    flex: 1 1 100%;
}

/* Column lanes stretch each link to the full width */
.mor-links > .nx-lane > * {
    inline-size: auto;
}

/* Partner logos are dark on transparent: a light plate keeps them visible in dark mode */
.mor-partners .nx-cube-face__media img {
    padding: 0.5rem;
    border-radius: var(--nx-radius, 0.5rem);
    background: #fff;
}

/*
 * Icon tiles on the start page: icon and name, the whole tile is the link.
 * The card's own button would only repeat the name, so it stays invisible
 * but covers the tile (screen readers and keyboards still reach it).
 */
/* One row per tile instead of the card subgrid (which keeps room for text and button) */
.mor-tiles .nx-feature-grid {
    gap: 1rem;
}

.mor-tiles .nx-feature-grid > li,
.mor-tiles .nx-feature-grid > li > div {
    display: block;
    grid-row: auto;
    grid-template-rows: none;
}

.mor-tiles .nx-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    block-size: 100%;
    padding: 1rem 1.25rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mor-tiles .nx-feature-card .nx-heading {
    font-size: 1.15rem;
}

.mor-tiles .nx-card-body:empty {
    display: none;
}

/* The link covers the whole tile and its text stays hidden: the paragraph leaves the flow, so no flex gap is left under the title */
.mor-tiles .nx-feature-card-link {
    display: contents;
}

.mor-tiles .nx-feature-card-link a {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    opacity: 0;
}

.mor-tiles .nx-feature-card:hover {
    border-color: var(--nx-color-primary);
    background: color-mix(in oklab, var(--nx-color-primary) 6%, transparent);
}

.mor-tiles .nx-feature-card:has(a:focus-visible) {
    outline: var(--nx-focus-width, 2px) solid var(--nx-color-focus, Highlight);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mor-tiles .nx-feature-card {
        transition: none;
    }
}

/*
 * Catalog filters: fields, count and buttons in one Nexus card, an optional
 * picture beside them on wide screens (below on phones).
 */
.catalog-filter-box + * {
    margin-block-start: var(--nx-content-rhythm-after, 2rem);
}

.catalog-filter-box--image {
    display: grid;
    gap: var(--nx-space-5, 1.5rem);
    align-items: center;
}

@media (min-width: 48rem) {
    .catalog-filter-box--image {
        grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
    }
}

.catalog-filter-image img {
    margin-inline: auto;
    max-block-size: 22rem;
    inline-size: auto;
}

.catalog-filter-actions {
    align-items: center;
}

.catalog-submit {
    min-inline-size: min(100%, 12rem);
    justify-content: center;
}

/* A checkbox in the field grid sits at the height of the inputs beside it,
   not at the top of its cell next to their labels */
.catalog-filter .widget-checkbox {
    align-self: end;
    display: flex;
    align-items: center;
    min-block-size: var(--nx-control-height, 2.75rem);
}

/* The count sits at the end of the button row */
.catalog-count {
    margin: 0 0 0 auto;
}

/* Results head of a filtered catalog list (Julle, 2026-11-14): "Ihre
   Suchergebnisse" and the active filters as Nexus chips; MOR markup, Nexus has
   no list results head. Room below, the cards start after it. */
.catalog-active-filters {
    margin-block-end: var(--nx-space-5, 1.5rem);
}

/* The label centred on its capitals: Barlow's tall ascender left the text
   0.05em low, a full pixel in Firefox (Julle, 2026-11-14) */
.catalog-active-filters a > span {
    display: block;
    text-box: trim-both cap alphabetic;
}

/*
 * While a new result loads (catalog lists and the news feed filter): a thin running line on the filter box and the
 * old entries a little faded. Both wait a moment, so results from the cache
 * (most of them) appear without any flicker.
 */
.catalog-filter-box {
    position: relative;
    overflow: hidden;
}

.catalog-filter-box::after,
.mor-feed-filter::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    block-size: 3px;
    background: linear-gradient(90deg, transparent, var(--nx-color-primary, currentColor), transparent) 0 0 / 40% 100% no-repeat;
    opacity: 0;
    pointer-events: none;
}

[data-catalog-list][aria-busy="true"] .catalog-filter-box::after,
.catalog-filter-box[aria-busy="true"]::after,
[aria-busy="true"] > .mor-feed-filter::after {
    opacity: 1;
    transition: opacity .1s .15s;
    animation: catalog-loading 1s linear infinite;
}

[data-catalog-list] > :not(.catalog-filter-box),
.mor-feed-filter ~ * {
    transition: opacity .15s;
}

[data-catalog-list][aria-busy="true"] > :not(.catalog-filter-box),
[aria-busy="true"] > .mor-feed-filter ~ * {
    opacity: .5;
    transition-delay: .15s;
}

/* News feed filter (police page): the same line, only as wide as the
   checkbox label, so it reads as the label working (Julle, 2026-11-14) */
.mor-feed-filter {
    position: relative;
    inline-size: fit-content;
}

@keyframes catalog-loading {
    from { background-position: -40% 0; }
    to { background-position: 140% 0; }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .15s;
}

@media (prefers-reduced-motion: reduce) {
    [data-catalog-list][aria-busy="true"] .catalog-filter-box::after,
    .catalog-filter-box[aria-busy="true"]::after,
    [aria-busy="true"] > .mor-feed-filter::after {
        animation: none;
        background-size: 100% 100%;
    }
}

/*
 * Premium entries (paid): first in every company list, a tinted card with a
 * primary border. Where there is room they take two columns (the Nexus lead
 * card idea), the photo beside the text, and free cards fill the gaps next to
 * them. Lists of premium entries only ("Wir empfehlen..." on the hotel page)
 * do the same (Julle, 2026-11-10); only the recommend marquee keeps its strip.
 */
.nx-ed-list__items:has(.mor-card-premium) {
    grid-auto-flow: row dense;
}

.mor-card-premium {
    border-color: color-mix(in oklab, var(--nx-color-primary, currentColor) 55%, var(--nx-color-border, GrayText));
    background-image: linear-gradient(135deg, color-mix(in oklab, var(--nx-color-primary, currentColor) 8%, transparent), transparent 55%);
}

.mor-card-premium .nx-ed-meta-featured {
    background: var(--nx-color-primary, currentColor);
    color: var(--nx-color-on-primary, Canvas);
}

/* Premium badge: top right corner of the card (owner, 2026-10-31), not in the
   meta line. The article (Nexus .nx-ed-card) is the positioning context and clips at its radius. */
.mor-card-badge {
    position: absolute;
    inset-block-start: 0.6rem;
    inset-inline-end: 0.6rem;
    z-index: 2;
    /* Premium and Onlineshop side by side (Julle, 2026-11-14) */
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.35rem;
    /* The whole card is the link (Julle, 2026-11-04): clicks go through the badge */
    pointer-events: none;
}

/* Onlineshop and Lieferservice: an outlined pill in the primary colour, so it reads apart from
   the grey branch chips and the filled Premium badge. Nexus' plain .nx-badge
   uses the raised surface, which disappears on a white card. */
.mor-card-badge > .nx-badge:not(.nx-ed-meta-featured) {
    border: 1px solid var(--nx-color-primary, currentcolor);
    border-radius: var(--nx-radius-pill, 999rem);
    background: var(--nx-color-surface, Canvas);
    color: var(--nx-color-primary, currentcolor);
    padding: 0.1em 0.6em;
    line-height: 1.4;
}

.mor-card-badge .nx-icon {
    display: inline-flex;
    block-size: 1em;
    inline-size: 1em;
    margin-inline-end: 0.35em;
    vertical-align: -0.125em;
}

.mor-card-badge .nx-icon svg {
    block-size: 100%;
    inline-size: 100%;
}

/* A card without a photo has no image area to carry the badge, so the body
   reserves the badge's height and the title starts below it (found in the
   independent verification on 2026-10-31: the title ran under the badge). */
.nx-ed-news-card:not(.nx-ed-news-card--media):has(> .mor-card-badge) .nx-ed-news-card__body {
    padding-block-start: 2.8rem;
}

#mor-recommend .nx-ed-news-card:not(.nx-ed-news-card--media) .nx-ed-news-card__body {
    padding-block-start: 2.6rem;
}

/* "Wir empfehlen" (module cssID mor-recommend, Contao renders it as the element
   id): a dense row of small cards instead of the large lead-card grid. Smaller
   minimum width, square media, no teaser, no contact line and no "more" footer;
   the whole card is the link. */
#mor-recommend.nx-ed-list {
    --nx-ed-card-min: 11rem;
    --nx-ed-ratio: 1;
}

#mor-recommend .nx-ed-news-card__body {
    padding: 0.65rem 0.75rem;
    gap: 0.35rem;
}

#mor-recommend .nx-ed-title {
    font-size: 1rem;
    line-height: 1.3;
}

#mor-recommend .nx-ed-meta {
    font-size: 0.75rem;
}

/* Branch left, postcode and town always at the right edge */
#mor-recommend .nx-ed-meta:has(> .nx-ed-meta-item + .nx-ed-meta-item) {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: start;
    gap: 0.5rem;
}

#mor-recommend .nx-ed-meta-item:first-child {
    min-inline-size: 0;
}

#mor-recommend .nx-ed-meta-item:last-child:not(:first-child) {
    flex: none;
    text-align: end;
}

#mor-recommend :is(.nx-ed-teaser, .mor-card-contact, .nx-ed-more) {
    display: none;
}

#mor-recommend .nx-ed-news-card__body > figure {
    display: none;
}

#mor-recommend .nx-ed-list__items {
    gap: var(--nx-space-3, 1rem);
}

/* Owner: at most six cards in one row, however wide the screen gets. Above the
   width where six cards of the minimum size fit, the row is fixed to six. */
@media (min-width: 80rem) {
    #mor-recommend .nx-ed-list__items {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* "Wir empfehlen" as the Nexus marquee (module display "marquee", Julle
   2026-11-04): one endless row of cards of equal size. The picture (logo, or
   the first photo) takes the upper half and is scaled to fit, never cropped;
   name and details sit at the bottom. */
/* Only while it may move: with "reduce motion" Nexus leaves the marquee alone,
   and one unwrapped row would push the page sideways (found 2026-11-13, 2320 px
   at 1440). The cards then fall back to the wrapping grid above. */
@media (prefers-reduced-motion: no-preference) {
    /* The cards take the Nexus track gap, so the step from one copy of the
       row to the next is the same as between two cards (was 28 px against 12) */
    #mor-recommend .mor-marquee .nx-ed-list__items {
        display: flex;
        flex-wrap: nowrap;
        gap: inherit;
    }

    /* The width as well: Firefox sizes the row from the cards' content (long
       names) and left about one card of empty space at the loop seam (Julle,
       2026-11-14, seen only in Firefox) */
    #mor-recommend .mor-marquee .nx-ed-list__item {
        flex: 0 0 15rem;
        inline-size: 15rem;
    }
}

#mor-recommend .mor-marquee .nx-ed-news-card {
    display: flex;
    flex-direction: column;
    block-size: 18rem;
}

#mor-recommend .mor-marquee .nx-ed-news-card__media {
    order: -1;
    flex: 0 0 50%;
}

/* Premium pictures in every list: logo or photo scaled to fit, never cropped
   (Julle, 2026-11-04); a 3:2 box where the card has no fixed height. No own
   background, logos included: the picture sits on the card surface (Julle,
   2026-11-09) */
.mor-card-premium .nx-ed-news-card__media {
    position: relative;
    min-block-size: 9rem;
    aspect-ratio: 3 / 2;
}

#mor-recommend .mor-marquee .mor-card-premium .nx-ed-news-card__media {
    aspect-ratio: auto;
    min-block-size: 0;
}


.mor-card-premium .nx-ed-news-card__media :is(figure, a, picture) {
    display: contents;
}

.mor-card-premium .nx-ed-news-card__media img {
    position: absolute;
    inset: var(--nx-space-3, 1rem);
    inline-size: calc(100% - 2 * var(--nx-space-3, 1rem));
    block-size: calc(100% - 2 * var(--nx-space-3, 1rem));
    max-inline-size: none;
    aspect-ratio: auto;
    object-fit: contain;
}

/* The text starts right below the picture (Julle, 2026-11-14; was at the bottom) */
#mor-recommend .mor-marquee .nx-ed-news-card__body {
    flex: 1 1 auto;
    justify-content: flex-start;
}

/* The logo figure in our card template: no browser default margin (16px 40px),
   which pushed every logo and Wappen in from the text edge. */
.nx-ed-news-card__body > figure {
    margin: 0;
}

/* Municipality cards (owner, 2026-11-02): Wappen beside the name, about
   96 px tall, contacts as one tight list. In a narrow card (under 22rem) the
   Wappen is 72 px and the contacts run full width below it, so e-mail
   addresses and websites do not break mid-word. */
.mor-municipality {
    container-type: inline-size;
}

.mor-municipality .nx-ed-news-card__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--nx-space-4, 1rem);
    row-gap: var(--nx-space-1, .25rem);
    align-content: start;
}

.mor-municipality .nx-ed-news-card__body > figure {
    grid-row: 1 / span 2;
}

.mor-municipality .nx-ed-news-card__body > figure img {
    display: block;
    block-size: 4.5rem;
    inline-size: auto;
}

.mor-municipality .nx-ed-news-card__body > :not(figure) {
    grid-column: 2;
    margin: 0;
}

.mor-municipality .nx-ed-news-card__body > .mor-municipality__contact {
    grid-column: 1 / -1;
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--nx-space-1, .25rem);
    margin-block-start: var(--nx-space-3, .75rem);
    overflow-wrap: anywhere;
}

@container (min-width: 22rem) {
    .mor-municipality .nx-ed-news-card__body > figure {
        grid-row: 1 / span 3;
    }

    .mor-municipality .nx-ed-news-card__body > figure img {
        block-size: 6rem;
    }

    .mor-municipality .nx-ed-news-card__body > .mor-municipality__contact {
        grid-column: 2;
        margin-block-start: var(--nx-space-1, .25rem);
    }
}

.mor-card-premium .nx-ed-news-card__body > figure img {
    max-block-size: 4rem;
    inline-size: auto;
}

.mor-card-contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-1, .25rem) var(--nx-space-4, 1rem);
    margin: 0;
    font-weight: var(--nx-font-weight-emphasis, 600);
}

/* A long web or Facebook address breaks inside a narrow card (large default font) */
.mor-card-contact > span {
    min-inline-size: 0;
    overflow-wrap: anywhere;
}

@container nx-ed-list (inline-size >= 40rem) {
    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) > li:has(> .mor-card-premium) {
        grid-column: span 2;
    }

    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) .mor-card-premium.nx-ed-news-card--media {
        flex-direction: row;
    }

    /* Picture column 34% (was 42%) and the picture box 80% of the card height,
       centred: logos and photos both show at about 80% of their former size,
       the text gets the room (Julle, 2026-11-12). */
    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) .mor-card-premium .nx-ed-news-card__media {
        flex: 0 0 34%;
        aspect-ratio: auto;
    }

    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) .mor-card-premium .nx-ed-news-card__media img {
        inset-block: calc(var(--nx-space-3, 1rem) + (100% - 2 * var(--nx-space-3, 1rem)) * 0.1) auto;
        block-size: calc((100% - 2 * var(--nx-space-3, 1rem)) * 0.8);
    }

    /* Beside the picture the Premium badge sits over the text column: the first
       title line leaves room for it, a long name wraps below the badge
       (Julle, 2026-11-14). Nexus uses the title's ::after, ::before is free. */
    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) .mor-card-premium.nx-ed-news-card--media:has(> .mor-card-badge) .nx-ed-news-card__title::before {
        content: "";
        float: inline-end;
        inline-size: 5rem;
        block-size: 1lh;
    }

    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) .mor-card-premium.nx-ed-news-card--media:has(> .mor-card-badge > :nth-child(2)) .nx-ed-news-card__title::before {
        inline-size: 12rem;
    }

    .nx-ed-list__items:not(.mor-marquee .nx-ed-list__items) .mor-card-premium.nx-ed-news-card--media:has(> .mor-card-badge > :nth-child(3)) .nx-ed-news-card__title::before {
        inline-size: 20rem;
    }
}

/* Black graphics (silhouettes) turn light in the dark view */
/* Anreise map (TVB Osttirol): a bright white map. Capped at 800 px high and dimmed
   in dark mode (Julle, 2026-11-08); Nexus has no image dim or max-height setting
   for the core image element. */
/* The arrival map is never cropped: height capped (500px, less on short screens),
   width follows the ratio, centered in the column with the credit under its left
   edge (Julle, 2026-11-13) */
.mor-arrival-map figure {
    inline-size: fit-content;
    max-inline-size: 100%;
    margin-inline: auto;
}

.mor-arrival-map img {
    display: block;
    max-block-size: min(500px, 70svh);
    inline-size: auto;
    block-size: auto;
    max-inline-size: 100%;
    margin-inline: auto;
}

:root[data-nx-scheme="dark"] .mor-arrival-map img {
    filter: brightness(.6);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-nx-scheme="light"]) .mor-arrival-map img {
        filter: brightness(.6);
    }
}

/* The loaded TVB map (Osttirol-Karte) and embedded Google maps (Drauradweg route)
   are bright third-party pages: dim them in the dark scheme like the arrival map.
   The consent placeholder stays as is. */
:root[data-nx-scheme="dark"] :is(#interactive_map_osttirol iframe, iframe[src*="google.com/maps"]) {
    filter: brightness(.8);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-nx-scheme="light"]) :is(#interactive_map_osttirol iframe, iframe[src*="google.com/maps"]) {
        filter: brightness(.8);
    }
}

:root[data-nx-scheme="dark"] .mor-invert-dark img {
    filter: invert(1) hue-rotate(180deg);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-nx-scheme="light"]) .mor-invert-dark img {
        filter: invert(1) hue-rotate(180deg);
    }
}

/*
 * Fußball: per league the table and the games in two Nexus cards, side by
 * side on wide screens. Numbers are tabular so the columns line up.
 */
.mor-football-nav {
    margin-block-end: var(--nx-content-rhythm-after, 2rem);
}

.mor-football-league {
    scroll-margin-block-start: 6rem;
}

.mor-football-league + .mor-football-league {
    margin-block-start: var(--nx-content-rhythm-after, 2rem);
}

.mor-football-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nx-space-5, 1.5rem);
    align-items: start;
}

@media (min-width: 64rem) {
    .mor-football-grid {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }
}

.mor-football-table {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mor-football-table :is(th, td) {
    border-inline: 0;
    padding-inline: .5em;
    text-align: end;
}

.mor-football-table :is(th, td):nth-child(2) {
    text-align: start;
    font-weight: normal;
    white-space: normal;
    min-inline-size: 9rem;
}

/* Phones: wins, draws and losses give way, so points stay in view */
@media (max-width: 32rem) {
    .mor-football-table :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6)) {
        display: none;
    }

    .mor-football-grid > .nx-card {
        padding-inline: var(--nx-space-3, .75rem);
    }

    .mor-football-table :is(th, td) {
        padding-inline: .25em;
    }

    .mor-football-table :is(th, td):nth-child(2) {
        min-inline-size: 6rem;
    }
}

.mor-football-table thead th {
    color: var(--nx-color-muted, GrayText);
    font-weight: normal;
}

.mor-football-table abbr {
    text-decoration: none;
}

.mor-football-trend {
    font-size: .7em;
    vertical-align: .15em;
}

.mor-football-trend--up {
    color: var(--nx-color-positive, green);
}

.mor-football-trend--down {
    color: var(--nx-color-danger, red);
}

.mor-football-round {
    display: flex;
    gap: var(--nx-space-2, .5rem);
    align-items: baseline;
    justify-content: space-between;
}

.mor-football-games {
    margin: 0 0 var(--nx-space-5, 1.5rem);
    padding: 0;
    list-style: none;
}

/* Inside the accordion the panel ends the list; the source link keeps its distance (Julle, 2026-11-16) */
.nx-accordion .mor-football-games {
    margin-block-end: 0;
}

.mor-football-source {
    margin-block-start: var(--nx-space-5, 1.5rem);
}

.mor-football-game {
    padding-block: var(--nx-space-3, .75rem);
    border-block-end: 1px solid var(--nx-color-border, GrayText);
}

.mor-football-game > p {
    margin: 0;
}

.mor-football-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--nx-space-3, .75rem);
    align-items: baseline;
    margin-block: var(--nx-space-1, .25rem) !important;
}

.mor-football-team--away {
    text-align: end;
}

.mor-football-score {
    font-variant-numeric: tabular-nums;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.mor-football-score small {
    color: var(--nx-color-muted, GrayText);
    font-weight: normal;
}

.mor-football-live {
    color: var(--nx-color-danger, red);
}

/*
 * "Der heutige Tag auf einen Blick": today as a circle on the line of the
 * year (inline SVG, positions from the server; colors from the Nexus tokens),
 * centred in the wide "Tag des Jahres" card.
 */
.mor-year {
    margin: 0;
    text-align: center;
}

.mor-year .mor-year__line {
    margin-inline: auto;
}

/* The facts above the chart: day and week at the start, the share of the year at the end */
.mor-year__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 var(--nx-space-4, 1rem);
    margin-block-end: var(--nx-space-4, 1rem);
}

.mor-year__facts p {
    margin: 0;
}

/*
 * Sun and moon cards of the day page: a drawing beside the text (MOR's own
 * inline SVG; colors from the Nexus tokens, the moon in its own two tones).
 */
.mor-day-duo {
    display: grid;
    grid-template-columns: clamp(6rem, 32%, 9rem) minmax(0, 1fr);
    gap: var(--nx-space-4, 1rem);
    align-items: center;
}

.mor-day-duo svg {
    display: block;
    inline-size: 100%;
    block-size: auto;
}

.mor-day-sun__light {
    fill: var(--nx-color-primary, currentColor);
    opacity: 0.14;
}

.mor-day-sun__arc {
    fill: none;
    stroke: var(--nx-color-primary, currentColor);
    stroke-width: 3;
    stroke-linecap: round;
}

.mor-day-sun__horizon {
    stroke: var(--nx-color-border, GrayText);
    stroke-width: 3;
    stroke-linecap: round;
}

.mor-day-sun__tick {
    stroke: var(--nx-color-muted, GrayText);
    stroke-width: 1;
}

.mor-day-sun__disc {
    fill: var(--nx-color-primary, currentColor);
    stroke: var(--nx-color-surface, Canvas);
    stroke-width: 2;
}

.mor-day-sun__dot {
    fill: var(--nx-color-surface, Canvas);
    stroke: var(--nx-color-primary, currentColor);
    stroke-width: 2;
}

.mor-day-sun__hour {
    fill: var(--nx-color-muted, GrayText);
    font-size: 8px;
}

.mor-day-sun__value {
    fill: var(--nx-color-text, CanvasText);
    font-family: var(--nx-font-heading, inherit);
    font-size: 13px;
    font-weight: bold;
}

/* The unlit side stays visible on a light and on a dark card */
.mor-day-moon__dark {
    fill: #5a6270;
}

.mor-day-moon__lit {
    fill: #f4ecce;
}

.mor-day-moon__rim {
    fill: none;
    stroke: var(--nx-color-border, GrayText);
    stroke-width: 1.5;
}

/* Dialect word card: the text at the start, the share button at the end of the row */
.mor-day-dialect {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-3, 0.75rem) var(--nx-space-5, 1.5rem);
}

.mor-day-dialect p {
    margin-block: 0 var(--nx-space-1, 0.25rem);
}

/*
 * Wikipedia's picture of the day inside its timeline entry (MOR markup, no
 * Nexus timeline image): no browser figure indent, the credit right below.
 */
.mor-day-picture figure {
    margin: var(--nx-space-3, 0.75rem) 0 var(--nx-space-1, 0.25rem);
}

.mor-day-picture img {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    border-radius: var(--nx-appearance-image-radius, 0);
}

.mor-year__line {
    display: block;
    inline-size: 100%;
    max-inline-size: 48rem;
    block-size: auto;
    overflow: visible;
}

.mor-year__track,
.mor-year__past {
    stroke-width: 4;
    stroke-linecap: round;
}

.mor-year__track {
    stroke: var(--nx-color-border, GrayText);
}

.mor-year__past {
    stroke: var(--nx-color-primary, currentColor);
}

.mor-year__tick {
    stroke: var(--nx-color-muted, GrayText);
    stroke-width: 1;
}

.mor-year__day {
    fill: var(--nx-color-primary, currentColor);
    stroke: var(--nx-color-surface, Canvas);
    stroke-width: 3;
}

.mor-year__date {
    fill: var(--nx-color-text, CanvasText);
    font-family: var(--nx-font-heading, inherit);
    font-size: 14px;
    font-weight: bold;
}

.mor-year__month {
    fill: var(--nx-color-muted, GrayText);
    font-size: 11px;
}

.mor-year__month-short {
    display: none;
}

.mor-year figcaption {
    max-inline-size: none;
    margin-block-start: var(--nx-space-3, .75rem);
    justify-content: center;
    text-align: center;
}

/* Phones: month initials, slightly larger type for the scaled-down drawing */
@media (max-width: 40rem) {
    .mor-year__month-long {
        display: none;
    }

    .mor-year__month-short {
        display: inline;
    }

    .mor-year__month {
        font-size: 16px;
    }

    .mor-year__date {
        font-size: 22px;
    }

    .mor-year__track,
    .mor-year__past {
        stroke-width: 6;
    }

    .mor-year__day {
        r: 11px;
    }
}

/*
 * Notdienste: doctors per region, dentists per day, each in a Nexus card;
 * as many columns as fit.
 */
.mor-duty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--nx-space-5, 1.5rem);
    align-items: stretch;
    margin-block-end: var(--nx-space-5, 1.5rem);
}

.mor-duty-card {
    scroll-margin-block-start: 6rem;
    block-size: 100%;
}

/* Doctors' region cards: header (name and towns) and days take two rows of
   the outer grid, so the first day lines up across a row of cards even when
   one town list is a line longer (Julle, 2026-11-14). */
.mor-duty-region {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
}

.mor-duty-head > :last-child {
    margin-block-end: 0;
}

/* Region jump links: only while the region cards do not all fit side by side
   (three 18rem columns plus two gaps = 57rem of the module's own width) */
.module-mor-duty-services {
    container-type: inline-size;
}

.mor-duty-jump {
    margin-block-end: var(--nx-space-5, 1.5rem);
}

.mor-duty-jump .mor-links {
    margin: 0;
}

@container (min-width: 57rem) {
    .mor-duty-jump {
        display: none;
    }
}

/* Two columns of cards (tablets): the links in one row, each as wide as the
   widest, "Lienz und Lienzer Talboden", the row centred (Julle, 2026-11-14) */
@container (37.5rem < width < 57rem) {
    .mor-duty-jump {
        text-align: center;
    }

    .mor-duty-jump .mor-links {
        display: inline-grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }

    .mor-duty-jump .nx-button {
        justify-content: center;
    }
}

/* One column of cards (phones): each jump link takes the full width (Julle, 2026-11-14) */
@container (max-width: 37.5rem) {
    .mor-duty-jump .mor-links {
        flex-direction: column;
        align-items: stretch;
    }

    .mor-duty-jump .nx-button {
        justify-content: center;
    }
}

.mor-duty-day {
    margin-block: var(--nx-space-5, 1.5rem) var(--nx-space-2, .5rem);
    font-size: var(--nx-size-h4, 1.25rem);
}

.mor-duty-card > .mor-duty-day:first-child {
    margin-block-start: 0;
}

/* A light line between the days of a region (Julle, 2026-11-14) */
.mor-duty + .mor-duty-day {
    margin-block-start: var(--nx-space-4, 1rem);
    padding-block-start: var(--nx-space-4, 1rem);
    border-block-start: 1px solid var(--nx-color-border, GrayText);
}

.mor-duty-relative {
    padding: .1em .5em;
    border-radius: var(--nx-radius-pill, 999rem);
    background: var(--nx-color-primary, currentColor);
    color: var(--nx-color-on-primary, Canvas);
    font-size: .75em;
    /* Lighter than the day heading (Julle, 2026-11-14): 500 is the lightest
       weight the heading font ships (500, 600, 700) */
    font-weight: 500;
    vertical-align: .1em;
}

.mor-duty + .mor-duty {
    margin-block-start: var(--nx-space-3, .75rem);
    padding-block-start: var(--nx-space-3, .75rem);
    border-block-start: 1px solid var(--nx-color-border, GrayText);
}

.mor-duty p {
    margin: 0;
}

.mor-duty-name {
    font-weight: bold;
}

/*
 * Spritpreise: a fuel switch (two radios, :has shows the chosen fuel), then
 * one card per region with its lowest price on top and the stations below.
 */
.mor-fuel-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-3, .75rem) var(--nx-space-5, 1.5rem);
    align-items: center;
    margin-block-end: var(--nx-space-4, 1rem);
}

.mor-fuel-bar p {
    margin: 0;
}

.mor-fuel-switch {
    display: inline-flex;
    margin: 0;
    padding: .25rem;
    border: 1px solid var(--nx-color-border, GrayText);
    border-radius: var(--nx-radius-pill, 999rem);
}

.mor-fuel-switch label {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
    padding-inline: 1.25rem;
    border-radius: var(--nx-radius-pill, 999rem);
    font-family: var(--nx-font-ui, inherit);
    font-weight: 600;
    cursor: pointer;
}

.mor-fuel-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mor-fuel-switch label:has(input:checked) {
    background: var(--nx-color-primary, CanvasText);
    color: var(--nx-color-on-primary, Canvas);
}

.mor-fuel-switch label:has(input:focus-visible) {
    outline: var(--nx-focus-width, 2px) solid var(--nx-color-focus, Highlight);
    outline-offset: 2px;
}

.mor-fuel-prices:has(input[value="die"]:checked) .mor-fuel-block:not([data-fuel="die"]),
.mor-fuel-prices:has(input[value="sup"]:checked) .mor-fuel-block:not([data-fuel="sup"]) {
    display: none;
}

/* Wide screens show the three regions side by side, the shortcuts only help on phones */
.mor-fuel-nav {
    margin-block-end: var(--nx-space-4, 1rem);
}

@media (min-width: 64rem) {
    .mor-fuel-nav {
        display: none;
    }
}

.mor-fuel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: var(--nx-space-5, 1.5rem);
    align-items: stretch;
    margin-block-end: var(--nx-space-5, 1.5rem);
}

.mor-fuel-card {
    scroll-margin-block-start: 6rem;
    block-size: 100%;
}

.mor-fuel-card h2 {
    font-size: var(--nx-size-h4, 1.35rem);
}

.mor-fuel-block + .mor-fuel-block {
    margin-block-start: var(--nx-space-5, 1.5rem);
}

.mor-fuel-best {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--nx-space-3, .75rem);
    align-items: baseline;
    justify-content: space-between;
    margin-block: var(--nx-space-3, .75rem) 0;
    font-size: 1rem;
}

.mor-fuel-best-label {
    color: var(--nx-color-muted, GrayText);
    font-weight: 600;
}

.mor-fuel-best-price {
    color: var(--nx-color-positive, currentColor);
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
}

.mor-fuel-list {
    margin: var(--nx-space-3, .75rem) 0 0;
    padding: 0;
    list-style: none;
}

.mor-fuel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--nx-space-3, .75rem);
    align-items: baseline;
}

.mor-fuel + .mor-fuel {
    margin-block-start: var(--nx-space-3, .75rem);
    padding-block-start: var(--nx-space-3, .75rem);
    border-block-start: 1px solid var(--nx-color-border, GrayText);
}

.mor-fuel p {
    margin: 0;
}

.mor-fuel-price {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mor-fuel--cheapest .mor-fuel-price {
    color: var(--nx-color-positive, currentColor);
}

/* The station name on the left, its badges on the right (they wrap below on narrow cards) */
.mor-fuel-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .5rem;
    font-weight: bold;
}

.mor-fuel-name > span:first-of-type {
    margin-inline-start: auto;
}

.mor-fuel-badge,
.mor-fuel-closed {
    display: inline-block;
    padding: .1em .5em;
    border-radius: var(--nx-radius-pill, 999rem);
    font-size: .75rem;
    font-weight: normal;
    vertical-align: .1em;
}

.mor-fuel-badge {
    background: var(--nx-color-positive, currentColor);
    color: var(--nx-color-on-primary, Canvas);
}

.mor-fuel-closed {
    border: 1px solid var(--nx-color-border, GrayText);
    color: var(--nx-color-muted, GrayText);
}

.mor-fuel-unpriced {
    margin-block: var(--nx-space-3, .75rem) 0;
}

/*
 * E-Ladestationen: filter checkboxes, sorting and location controls,
 * region shortcuts, then per region a grid of site cards with the live
 * state on top: free (positive), all busy (warning), none available (muted).
 */
/* Tools: the filter card (catalog filter look) and the location card beside
   it on wide screens, below it on phones */
.mor-charging-tools {
    display: grid;
    gap: var(--nx-space-4, 1rem);
    margin-block-end: var(--nx-space-3, .75rem);
}

@media (min-width: 64rem) {
    .mor-charging-tools {
        grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    }
}

.mor-charging-tools .catalog-filter-box + * {
    margin-block-start: 0;
}

/* No submit button here (filters apply at once): the count row ends the card,
   without the trailing field margin, at button height for "Filter zurücksetzen" */
.mor-charging-filter-box .widget:last-child {
    margin-block-end: 0;
}

.mor-charging-filter-box .catalog-filter-actions {
    min-block-size: var(--nx-control-height, 2.75rem);
}

/* The location card comes first ("near me" is the main use on the road);
   wide screens put it on the right of the filters */
@media (min-width: 64rem) {
    .mor-charging-locate {
        order: 1;
    }
}

/* Location card: pin in a primary circle beside the title, text and buttons below */
.mor-charging-locate {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--nx-space-3, .75rem) var(--nx-space-3, .75rem);
    align-content: start;
    align-items: center;
}

.mor-charging-locate > :not(.mor-charging-locate-icon, .mor-charging-locate-title) {
    grid-column: 1 / -1;
    margin: 0;
}

.mor-charging-locate-icon {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    padding: .6rem;
    border-radius: 50%;
    background: var(--nx-color-primary, CanvasText);
    color: var(--nx-color-on-primary, Canvas);
}

/* Located: a soft ring around the pin */
.is-located .mor-charging-locate-icon {
    box-shadow: 0 0 0 .3rem color-mix(in oklab, var(--nx-color-primary, CanvasText) 30%, transparent);
}

.mor-charging-locate-title {
    margin: 0;
    font-size: var(--nx-size-h5, 1.15rem);
}

.mor-charging-locate-status:empty {
    display: none;
}

/* Stand line, region chips and the first region each get room (Julle, 2026-11-15) */
.mor-charging-stand {
    margin-block: 0 var(--nx-space-5, 1.5rem);
}

.mor-charging-nav {
    margin-block-end: var(--nx-space-6, 2.5rem);
}

.mor-charging-region {
    margin-block-end: var(--nx-space-6, 2.5rem);
    scroll-margin-block-start: 6rem;
}

.mor-charging-region > h2 {
    margin-block-end: 0;
}

.mor-charging-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: var(--nx-space-4, 1rem);
    margin: var(--nx-space-4, 1rem) 0 0;
    padding: 0;
    list-style: none;
}

.mor-charging-site {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-2, .5rem);
}

/* Cards in one row share their row tracks (subgrid): address, facts, operator
   and route start at the same height in every card of the row (Julle,
   2026-11-15). Six children per card; without subgrid the flex column stays. */
@supports (grid-template-rows: subgrid) {
    .mor-charging-site {
        display: grid;
        grid-row: span 6;
        grid-template-rows: subgrid;
        row-gap: var(--nx-space-2, .5rem);
        align-content: start;
    }
}

.mor-charging-site :is(h3, p) {
    margin: 0;
}

.mor-charging-site h3 {
    font-size: var(--nx-size-h5, 1.15rem);
}

.mor-charging-state {
    display: inline-flex;
    gap: .5em;
    align-items: center;
    font-weight: 600;
}

/* "*" on "Derzeit kein freier Ladepunkt", explained below the region list */
.mor-charging-mark {
    margin-inline-start: .1em;
}

.mor-charging-note {
    display: block;
    margin-block-start: var(--nx-space-3, .75rem);
    max-inline-size: 70ch;
}

/* The dot keeps its size and sits on the first line when the label wraps */
.mor-charging-state::before {
    content: "";
    flex: none;
    align-self: start;
    margin-block-start: calc((1lh - .7em) / 2);
    inline-size: .7em;
    block-size: .7em;
    border-radius: 50%;
    background: currentColor;
}

[data-state="free"] .mor-charging-state {
    color: var(--nx-color-positive, currentColor);
}

[data-state="busy"] .mor-charging-state {
    color: var(--nx-color-warning, currentColor);
}

[data-state="off"] .mor-charging-state {
    color: var(--nx-color-muted, GrayText);
}

.mor-charging-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem var(--nx-space-3, .75rem);
    align-items: baseline;
}

.mor-charging-fast {
    padding: .1em .5em;
    border-radius: var(--nx-radius-pill, 999rem);
    background: var(--nx-color-primary, CanvasText);
    color: var(--nx-color-on-primary, Canvas);
    font-size: .75rem;
}

.mor-charging-site .mor-charging-route {
    margin-block-start: auto;
    padding-block-start: var(--nx-space-2, .5rem);
    font-weight: 600;
}

.mor-charging a[href^="tel:"] {
    white-space: nowrap;
}

.mor-charging [hidden] {
    display: none;
}

.mor-charging-near {
    margin-block-end: var(--nx-space-6, 2.5rem);
}

.mor-charging-near h2 {
    margin: 0;
}

.mor-charging-near > p {
    margin: 0;
}

/* In the Nexus meta row beside the address */
.mor-charging-distance {
    font-weight: 600;
    color: var(--nx-color-text, CanvasText);
}

/* Let the article own the space after our data modules, not their last paragraph. */
.mod_article > [class*="module-mor-"] > p:last-child {
    margin-block-end: 0;
}

/*
 * Kinoprogramm: the day switch reuses the fuel switch look; per day one
 * card per film, poster beside the text (above it on narrow cards).
 */
.mor-cinema-switch {
    flex-wrap: wrap;
    margin-block-end: var(--nx-space-5, 1.5rem);
}

.mor-cinema-day > h2 {
    font-size: var(--nx-size-h4, 1.35rem);
}

.mor-cinema-films {
    display: grid;
    /* 27.5rem: two films per row from 1024 px (tablet landscape), still two at 1440 */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 27.5rem), 1fr));
    gap: var(--nx-space-4, 1rem);
    margin: 0 0 var(--nx-space-5, 1.5rem);
    padding: 0;
    list-style: none;
}

.mor-cinema-film {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-4, 1rem);
    align-items: start;
}

.mor-cinema-poster {
    flex: 0 1 9rem;
    min-inline-size: 0;
}

.mor-cinema-poster :is(figure, img) {
    display: block;
    margin: 0;
    inline-size: 100%;
    block-size: auto;
    border-radius: var(--nx-radius-md, .5rem);
}

.mor-cinema-body {
    display: flex;
    flex: 1 1 14rem;
    min-inline-size: 0;
    flex-direction: column;
    gap: var(--nx-space-2, .5rem);
}

.mor-cinema-body :is(h3, p) {
    margin: 0;
}

.mor-cinema-body h3 {
    font-size: var(--nx-size-h5, 1.15rem);
}

.mor-cinema-body .nx-ed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem var(--nx-space-3, .75rem);
}

.mor-cinema-3d {
    padding: 0 .5em;
    border-radius: var(--nx-radius-pill, 999rem);
    background: var(--nx-color-primary, CanvasText);
    color: var(--nx-color-on-primary, Canvas);
    font-weight: 600;
}

.mor-cinema-shows {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-2, .5rem);
    margin: var(--nx-space-1, .25rem) 0 0;
    padding: 0;
    list-style: none;
}

.mor-cinema-shows li {
    padding: .25em .75em;
    border: 1px solid var(--nx-color-border, GrayText);
    border-radius: var(--nx-radius-pill, 999rem);
    font-size: .9rem;
}

.mor-cinema-shows strong {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

/* Traueranzeigen: the parte as a portrait thumbnail, the whole card links to trauer.link */
.mor-obituary-list {
    display: grid;
    /* Five across on wide screens, two on phones */
    grid-template-columns: repeat(auto-fill, minmax(max(9rem, 18%), 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.mor-obituary {
    position: relative;
    padding: 0.75rem;
    text-align: center;
}

.mor-obituary-image figure {
    margin: 0;
}

.mor-obituary-image img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    border: 1px solid color-mix(in oklab, currentColor 15%, transparent);
}

/* Lighter than the default heading weight (Julle, 2026-11-15): a quiet list */
.mor-obituary-name {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.mor-obituary-name a {
    color: inherit;
    text-decoration: none;
}

.mor-obituary-name a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.mor-obituary:has(a:focus-visible) {
    outline: var(--nx-focus-width, 2px) solid var(--nx-color-focus, Highlight);
    outline-offset: 2px;
}

.mor-obituary .nx-ed-meta {
    justify-content: center;
    margin: 0;
}

/* The burial place may wrap anywhere in a narrow card ("Friedhof St. Jakob in Defereggen") */
.mor-obituary-place {
    overflow-wrap: anywhere;
}

/* No advertising of any kind on the Traueranzeigen (Julle, 2026-11-15): the page
   class mor-no-ads (page settings, CSS class) also hides our GRATIS sticker */
.mor-no-ads #mor-gratis {
    display: none;
}

/* The imported recommendation module is our own HTML, not a Nexus element. */
.weiterempfehlen {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-3, .75rem) var(--nx-space-6, 2rem);
    /* Clear distance from the news text above it (Julle, 2026-11-21) */
    margin-block-start: var(--nx-space-6, 3rem);
}

.weiterempfehlen h2 {
    flex-basis: 100%;
    margin: 0;
}

.weiterempfehlen > a {
    display: inline-flex;
    align-items: center;
    min-inline-size: 2.75rem;
    min-block-size: 2.75rem;
    gap: var(--nx-space-2, .5rem);
}

.weiterempfehlen > a img {
    flex: none;
}

.weiterempfehlen .share_whatsapp img {
    box-sizing: border-box;
    padding: .25rem;
    border-radius: 50%;
    background: #25d366;
}

/*
 * Lottozahlen (start page): one band, the balls as circles in the primary
 * colour, the Zusatzzahl as an outlined circle, the quotes folded away.
 */
.mor-lotto {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-4, 1rem) var(--nx-space-6, 2.5rem);
    align-items: center;
}

/* MOR component: fill the space allocated to the Lotto card. */
.mor-lotto-slot {
    display: flex;
    flex: 1 1 auto;
    min-block-size: 0;
}

.mor-lotto-slot > .mor-lotto {
    flex: 1 1 auto;
    min-block-size: 0;
    min-inline-size: 0;
}

.mor-lotto-content {
    inline-size: 100%;
    min-inline-size: 0;
    gap: .375rem;
}

.mor-lotto :is(h2, h3, p, details) {
    margin: 0;
}

.mor-lotto-head {
    flex: 1 1 12rem;
}

.mor-lotto h2 {
    font-size: var(--nx-size-h4, 1.35rem);
}

.mor-lotto-draw {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-3, .75rem);
    align-items: center;
}

.mor-lotto-balls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-1, .25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mor-lotto-balls li,
.mor-lotto-extra span {
    display: grid;
    place-items: center;
    inline-size: 1.65rem;
    block-size: 1.65rem;
    border-radius: 50%;
    font-size: .9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mor-lotto-balls li {
    background: radial-gradient(ellipse at 30% 17%, rgba(255, 255, 255, .7), transparent 28%),
        radial-gradient(circle at 35% 25%, transparent 30%, rgba(0, 0, 0, .4) 100%),
        var(--nx-color-primary, CanvasText);
    box-shadow: inset .08rem .1rem .16rem rgba(255, 255, 255, .35), inset -.15rem -.22rem .35rem rgba(0, 0, 0, .38), 0 .15rem .25rem rgba(0, 0, 0, .28);
    color: var(--nx-color-on-primary, Canvas);
}

.mor-lotto-extra {
    display: flex;
    gap: var(--nx-space-2, .5rem);
    align-items: center;
    margin: 0;
    font-weight: 600;
}

.mor-lotto-extra abbr {
    text-decoration: none;
}

.mor-lotto-extra span {
    border: 2px solid var(--nx-color-primary, CanvasText);
}

.mor-lotto-joker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nx-space-2, .5rem);
    font-weight: 600;
}

.mor-lotto-joker-balls li {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    font-size: .9rem;
    background: radial-gradient(ellipse at 30% 17%, rgba(255, 255, 255, .7), transparent 28%),
        radial-gradient(circle at 35% 25%, transparent 30%, rgba(0, 0, 0, .4) 100%),
        var(--nx-color-text, CanvasText);
    color: var(--nx-color-surface, Canvas);
}

.mor-lotto-ranks,
.mor-lotto > p:last-child {
    flex-basis: 100%;
}

.mor-lotto-ranks summary {
    box-sizing: border-box;
    min-block-size: 2.75rem;
    padding-block: .5rem;
    font-weight: 600;
    cursor: pointer;
}

.mor-lotto-rank-list {
    margin: var(--nx-space-3, .75rem) 0 0;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.mor-lotto-rank {
    display: grid;
    gap: .15rem .5rem;
    grid-template-columns: minmax(0, 1fr);
    padding-block: .35rem;
    border-block-start: 1px solid color-mix(in srgb, var(--nx-color-border, currentColor) 35%, transparent);
}

.mor-lotto-rank:first-child {
    border-block-start: 0;
    padding-block-start: 0;
}

.mor-lotto-rank-label {
    font-weight: 600;
    line-height: 1.25;
}

.mor-lotto-rank-value {
    color: var(--nx-color-text-muted, inherit);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/*
 * SARI page charts (mor/health-charts.js): filters above the chart, the
 * canvas gets a fixed height once the script has replaced the SVG line.
 */
/* Browsers indent figures by 40px */
figure.mor-chart {
    margin-inline: 0;
}

.mor-chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-4, 1rem) var(--nx-space-6, 2rem);
    align-items: start;
}

.mor-chart-controls[hidden] {
    display: none;
}

.mor-chart-control {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-1, .25rem) var(--nx-space-3, .75rem);
    align-items: center;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.mor-chart-control > label:first-child,
.mor-chart-control > legend {
    flex-basis: 100%;
    float: inline-start;
    padding: 0;
    font-weight: bold;
}

.mor-chart-control label:has(input) {
    display: inline-flex;
    gap: .35em;
    align-items: center;
    min-block-size: 2.75rem;
    cursor: pointer;
}

.mor-chart-summary {
    margin: 0;
    font-weight: bold;
}

.mor-chart-fallback[hidden] {
    display: none;
}

.mor-chart-canvas.is-live {
    position: relative;
    block-size: clamp(16rem, 45vw, 24rem);
}

.mor-chart-canvas--small.is-live {
    block-size: 12rem;
}

/*
 * "Osttirol heute" (mor_osttirol_today): map and region card side by side,
 * shown by Nexus in the empty half of the open main menu (menu panel page).
 */
.mor-today-date {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--nx-space-3, .75rem);
    align-items: baseline;
    margin: 0 0 var(--nx-space-4, 1rem);
}

.mor-today-date strong {
    font-family: var(--nx-font-heading, inherit);
    font-size: 1.35rem;
}

/* Sun and moon in the date row: MOR's own digest markup, each part stays whole when the row wraps */
.mor-today-sky {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 var(--nx-space-3, .75rem);
}

.mor-today-sky > span {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    white-space: nowrap;
}

.mor-today-sky .nx-icon,
.mor-today-sky .nx-icon svg {
    inline-size: 1em;
    block-size: 1em;
}

.mor-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--nx-space-5, 1.5rem);
    align-items: start;
}

/* Below 44rem of digest width (portrait tablets, the menu panel at 1024 px) the map
   sits above the region tabs at a capped size instead of a squeezed half column
   (Julle, 2026-11-08). A container query, so the page and the menu panel both follow. */
[data-mor-today] {
    container-type: inline-size;
}

@container (width < 44rem) {
    .mor-today-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mor-today-map {
        max-inline-size: 22rem;
    }
}

.mor-map {
    display: block;
    inline-size: 100%;
    block-size: auto;
    overflow: visible;
    /* Mobile browsers flash a tinted box over the tapped region's bounding box; the region fill already shows the tap */
    -webkit-tap-highlight-color: transparent;
}

.mor-map-region {
    -webkit-tap-highlight-color: transparent;
    fill: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 14%, transparent);
    stroke: var(--nx-color-surface, Canvas);
    stroke-width: 2;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill .2s ease;
}

.mor-map-region:hover {
    fill: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 30%, transparent);
}

.mor-map-region.is-active {
    fill: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 55%, transparent);
}

/* Places and peaks let the pointer through, so hovering a dot lights its region */
.mor-map-place,
.mor-map-peak {
    pointer-events: none;
}

.mor-map-place circle {
    fill: currentColor;
}

.mor-map-peak path {
    fill: var(--nx-color-muted, GrayText);
}

.mor-map text {
    fill: currentColor;
    font-size: 12px;
    font-weight: 600;
    paint-order: stroke;
    stroke: var(--nx-color-surface, Canvas);
    stroke-width: 3px;
    pointer-events: none;
}

.mor-map-peak text {
    fill: var(--nx-color-muted, GrayText);
    font-weight: normal;
}

.mor-today-switch {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-2, .5rem);
    margin-block-end: var(--nx-space-4, 1rem);
}

.mor-today-switch[hidden] {
    display: none;
}

.mor-today-switch button {
    min-block-size: 2.75rem;
    padding-inline: 1rem;
    border: 1px solid var(--nx-color-border, GrayText);
    border-radius: var(--nx-radius-pill, 999rem);
    background: transparent;
    color: inherit;
    font: inherit;
    font-family: var(--nx-font-ui, inherit);
    font-weight: 600;
    cursor: pointer;
}

.mor-today-switch button:hover {
    border-color: var(--nx-color-primary, CanvasText);
    background: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 14%, transparent);
}

.mor-today-switch button[aria-pressed="true"] {
    border-color: var(--nx-color-primary, CanvasText);
    background: var(--nx-color-primary, CanvasText);
    color: var(--nx-color-on-primary, Canvas);
}

.mor-today-region h2 {
    margin: 0 0 var(--nx-space-3, .75rem);
    font-size: var(--nx-size-h4, 1.35rem);
}

.mor-today-region + .mor-today-region:not([hidden]) {
    margin-block-start: var(--nx-space-5, 1.5rem);
}

/* With the switch active all regions sit in one grid cell: the cell keeps the
   tallest region's height and a hidden region keeps its place invisibly, so
   switching never moves the rows below. */
[data-mor-today-ready] .mor-today-regions {
    display: grid;
}

[data-mor-today-ready] .mor-today-regions > .mor-today-region {
    grid-area: 1 / 1;
    margin-block-start: 0;
}

[data-mor-today-ready] .mor-today-region[hidden] {
    display: block;
    visibility: hidden;
}

.mor-today-region dl,
.mor-today-region dd,
.mor-today-region p {
    margin: 0;
}

.mor-today-region dl > div + div {
    margin-block-start: var(--nx-space-4, 1rem);
    padding-block-start: var(--nx-space-4, 1rem);
    border-block-start: 1px solid var(--nx-color-border, GrayText);
}

.mor-today-region dt {
    margin-block-end: var(--nx-space-1, .25rem);
    font-weight: bold;
}

/* Weather: icon, day and sky, temperatures; the icons are drawn for light backgrounds */
.mor-today-weather {
    display: grid;
    gap: var(--nx-space-1, .25rem);
}

.mor-today-weather p {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    align-items: center;
    gap: var(--nx-space-3, .75rem);
}

.mor-today-weather img {
    inline-size: 2.5rem;
    block-size: 2.5rem;
}

.mor-today-temp {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Diesel and Super 95 side by side, the station below each price */
.mor-today-fuels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: var(--nx-space-2, .5rem) var(--nx-space-4, 1rem);
}

.mor-today-fuel {
    display: inline-block;
    min-inline-size: 4.5rem;
}

.mor-today-price {
    color: var(--nx-color-positive, currentColor);
    font-variant-numeric: tabular-nums;
}

/* "Heute" and "Morgen" equally wide, so the sky texts start in one line */
.mor-today-weather .mor-today-when {
    display: inline-block;
    min-inline-size: 4.5em;
    text-align: center;
}

.mor-today-when {
    padding: .05em .5em;
    border-radius: var(--nx-radius-pill, 999rem);
    background: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 12%, transparent);
    font-size: .85em;
}

.mor-today a[href^="tel:"] {
    white-space: nowrap;
}

/* The rows below the regions. Dentist and emergency continue the duty doctor
   above them as one block without lines; one line sets the dialect word apart
   at the end (Julle, 2026-11-04). */
.mor-today-row {
    display: grid;
    gap: var(--nx-space-1, .25rem);
    margin-block: var(--nx-space-4, 1rem) 0;
}

.mor-today-dialect {
    margin-block-start: var(--nx-space-5, 1.5rem);
    padding-block-start: var(--nx-space-4, 1rem);
    border-block-start: 1px solid var(--nx-color-border, GrayText);
}

/* Section labels linked to their pages (Julle, 2026-11-04): they look exactly like
   the plain label, visited or not; only hovering shows the link colour */
.mor-today-topic,
.mor-today-topic:visited {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.mor-today-topic:hover {
    color: var(--nx-appearance-link-text, var(--nx-color-primary, LinkText));
}

/* The date links to "Was geschah am..." (Julle, 2026-11-08): it looks exactly like
   the plain date in every state (no colour, decoration, hover or visited change);
   only the chevron after it marks the link. Focus keeps the browser outline. */
.mor-today .mor-today-history,
.mor-today .mor-today-history:visited,
.mor-today .mor-today-history:hover,
.mor-today .mor-today-history:active {
    color: inherit;
    font: inherit;
    text-decoration: none;
    background: none;
}

.mor-today-history-arrow {
    display: inline-block;
    inline-size: .7em;
    block-size: .7em;
    margin-inline-start: .3em;
    vertical-align: .05em;
}

.mor-today-credits {
    margin-block: var(--nx-space-4, 1rem) 0;
    color: var(--nx-color-muted, GrayText);
}

/* IT and EN: the button to the German day page closes the right column; room above it
   sets it apart from the emergency numbers (MOR markup, no Nexus setting; Julle, 2026-11-21) */
.mor-today-info .mor-today-more {
    margin-block-start: var(--nx-space-8, 2rem);
}

/*
 * Open main menu: a mountain ridge on a line sets "Osttirol heute" apart
 * from the submenu above and draws itself when the menu opens. The start
 * page has its own headline, so the divider shows only in the menu.
 */
.mor-today-divider {
    display: none;
}

.nx-splitmenu-extra .mor-today-divider {
    display: flex;
    align-items: flex-end;
    margin-block: 0 var(--nx-space-5, 1.5rem);
}

/* No submenu above (a page without subpages): just the label, the digest moves up */
.nx-splitmenu-panels:not(:has(> .nx-splitmenu-panel:not([hidden]))) .mor-today-divider svg {
    display: none;
}

.nx-splitmenu-panels:not(:has(> .nx-splitmenu-panel:not([hidden]))) .nx-splitmenu-extra {
    margin-block-start: 0;
}

.mor-today-divider-line {
    flex: 1 1 0;
    border-block-end: 1px solid var(--nx-splitmenu-muted, GrayText);
}

.mor-today-divider-line:last-child {
    flex: 0 1 6rem;
    border-image: linear-gradient(to right, var(--nx-splitmenu-muted, GrayText), transparent) 1;
}

.mor-today-divider-label {
    display: block;
    padding-block-end: var(--nx-space-2, .5rem);
    font-family: var(--nx-font-heading, inherit);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mor-today-divider svg {
    flex: none;
    inline-size: clamp(10rem, 24vw, 20rem);
    block-size: auto;
    margin-block-end: -1px;
    overflow: visible;
}

.mor-today-divider-fill {
    fill: var(--nx-color-primary, currentcolor);
    opacity: .14;
}

.mor-today-divider-ridge {
    fill: none;
    stroke: var(--nx-color-primary, currentcolor);
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.mor-today-divider-peak {
    fill: var(--nx-color-primary, currentcolor);
}

@media (prefers-reduced-motion: no-preference) {
    .nx-splitmenu[open] .mor-today-divider-ridge {
        stroke-dasharray: 1;
        animation: mor-ridge-draw 1.4s cubic-bezier(.4, 0, .2, 1) .25s both;
    }

    .nx-splitmenu[open] :is(.mor-today-divider-fill, .mor-today-divider-peak) {
        animation: mor-ridge-fade .6s ease-out 1.1s both;
    }
}

@keyframes mor-ridge-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes mor-ridge-fade {
    from { opacity: 0; }
}

@media (forced-colors: active) {
    .mor-today-divider-ridge {
        stroke: CanvasText;
    }

    .mor-today-divider-peak {
        fill: CanvasText;
    }

    .mor-today-divider-fill {
        display: none;
    }
}

/*
 * Statistics pages (mor_statistics): key figures as a row of cards, number
 * tables aligned right, baby names in two columns (girls, boys).
 */
.mor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--nx-space-4, 1rem);
    margin: 0 0 var(--nx-space-6, 2rem);
}

.mor-stats > div {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-1, .25rem);
}

.mor-stats dt {
    font-weight: 600;
}

.mor-stats dd {
    margin: 0;
}

.mor-stats-value {
    order: -1;
    font-family: var(--nx-font-heading, inherit);
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--nx-color-primary, currentColor);
    font-variant-numeric: tabular-nums;
}

.mor-stats-table {
    font-variant-numeric: tabular-nums;
}

.mor-stats-table :is(td, thead th:not(:first-child)) {
    text-align: end;
    white-space: nowrap;
}

.mor-stats-table tfoot :is(th, td) {
    font-weight: 700;
}

/* Municipality names in the tables are buttons that show the municipality in
   the chart above (stats-charts.js): they read as links (own markup) */
.mor-stats-place {
    min-block-size: 0;
    padding: 0;
    line-height: inherit;
    /* Wraps between words only, like the plain name before */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    border: 0;
    background: none;
    color: var(--nx-color-primary, currentColor);
    font: inherit;
    text-align: start;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    cursor: pointer;
}

.mor-stats-place:hover {
    text-decoration-thickness: 2px;
}

/* The chart lands below the sticky header */
figure.mor-chart {
    scroll-margin-block-start: 6rem;
}

.mor-names-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-3, .75rem);
    align-items: end;
    margin-block-end: var(--nx-space-5, 1.5rem);
}

.mor-names {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--nx-space-5, 1.5rem) var(--nx-space-6, 2rem);
    margin-block-end: var(--nx-space-6, 2rem);
}

.mor-names-list {
    columns: 2 10rem;
    column-gap: var(--nx-space-5, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Rows with the light lines of the statistics tables (a ranked list, no Nexus
   element for it; Julle, 2026-11-17) */
.mor-names-list {
    border-block-start: 1px solid var(--nx-color-border);
}

.mor-names-list li {
    display: flex;
    gap: .4em;
    align-items: baseline;
    padding: .4em .6em;
    border-block-end: 1px solid var(--nx-color-border);
    break-inside: avoid;
}

.mor-names-list li:hover {
    background: color-mix(in srgb, var(--nx-color-primary, currentColor) 6%, transparent);
}

.mor-names-note {
    margin-block-end: var(--nx-space-6, 2rem);
}

/* While another year or name loads in place (stats-charts.js) */
[data-mor-names] :is([data-mor-part], [data-mor-acc]) {
    transition: opacity .15s;
}

[data-mor-names][aria-busy="true"] :is([data-mor-part], [data-mor-acc]) {
    opacity: .5;
    transition-delay: .15s;
}

/* The search result takes the focus after a click on a name: no ring on a block */
[data-mor-part="result"]:focus {
    outline: none;
}

.mor-names-rank {
    min-inline-size: 2.2em;
    color: var(--nx-color-muted, GrayText);
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.mor-names-count {
    margin-inline-start: auto;
    color: var(--nx-color-muted, GrayText);
    font-variant-numeric: tabular-nums;
}

.mor-names-search .mor-names-form {
    margin-block-end: 0;
}

/* "#vorname" jumps land below the sticky header */
.mor-names-search {
    scroll-margin-block-start: 6rem;
}

/* Horoscopes: twelve cards, as many per row as fit */
.mor-horoscopes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
    gap: var(--nx-space-4, 1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mor-horoscope {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--nx-color-border);
    border-radius: var(--mor-round);
    background: var(--nx-color-surface);
}

.mor-horoscope h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.mor-horoscope-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-3, 0.75rem);
}

.mor-horoscope-element {
    color: var(--nx-color-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.mor-horoscope-symbol {
    color: var(--nx-color-primary);
    font-size: 1.6em;
    line-height: 1;
}

.mor-horoscope-meta {
    margin-block: 0.25rem 0.75rem;
    color: var(--nx-color-muted);
    font-size: 0.875rem;
}

.mor-horoscope p:last-child {
    margin-block-end: 0;
}

/*
 * AdSense (App\Ads\AdSense, docs/ADS.md): a quiet band with a small label,
 * fixed size per screen width (Google's "exact size per breakpoint" for
 * responsive units: 320x100 on phones, 728x90 from tablets up). Collapsed
 * until Google marks the unit filled, so no empty box without consent or ad.
 */
.mor-ad {
    margin-block: 2.5rem;
    text-align: center;
}

.mor-ad:not(:has(ins[data-ad-status="filled"])) {
    block-size: 0;
    margin-block: 0;
    overflow: hidden;
    /* Screen readers skip an empty unit as well */
    visibility: hidden;
}

.mor-ad__label {
    margin: 0 0 0.35rem;
    color: var(--nx-color-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

/* The 728 px unit from 50rem: at 768 px the content column is about 718 px, too
   narrow for it (the list ad stuck out 10 px). No container query: before it is
   filled, the list row is out of the flow and would measure 0 px, so AdSense
   would always get the small slot. */
.mor-ad__unit {
    display: inline-block;
    inline-size: 320px;
    block-size: 100px;
}

@media (min-width: 50rem) {
    .mor-ad__unit {
        inline-size: 728px;
        block-size: 90px;
    }
}

/* The list break spans the whole card grid; unfilled it leaves the grid (no extra gap) */
.mor-ad-row {
    grid-column: 1 / -1;
    list-style: none;
}

.mor-ad-row:not(:has(ins[data-ad-status="filled"])) {
    position: absolute;
    block-size: 0;
    overflow: hidden;
    visibility: hidden;
}

.mor-ad-row .mor-ad {
    margin-block: 1rem;
}

/* Footer bottom band: Impressum, Datenschutz and Sitemap as equally wide buttons
   (the widest label, "Datenschutz", sets the width; longer IT labels just grow) */
.nx-cluster:has(.mor-languages) > .content-hyperlink > .nx-button {
    min-inline-size: 6.75rem;
}

/* Footer: the other languages' start pages (SiteChrome): a globe, then
   each language as a code chip and its own name, rather than link-row buttons */
.mor-languages.mor-links {
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin: 0;
}

.mor-languages.mor-links::before {
    content: "";
    inline-size: 1.25rem;
    block-size: 1.25rem;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.75;
}

.mor-languages.mor-links a,
.mor-languages.mor-links a:hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
    padding: 0 0.25rem 0 2.5rem;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
}

/* The chip repeats the name for the eye only: empty alt text keeps it out of
   the link name. Positioned out of flow, so the link's hover underline does
   not run through it. */
.mor-languages.mor-links a::before {
    content: attr(hreflang) / "";
    position: absolute;
    inset-inline-start: 0.25rem;
    inset-block-start: 50%;
    translate: 0 -50%;
    box-sizing: border-box;
    inline-size: 1.75rem;
    padding-block: 0.125rem;
    border: 1px solid currentColor;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.85;
}

.mor-languages.mor-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

/* Hover fills the chip in the footer text color and writes the code in the
   footer background color (Nexus Studio footer colors) */
.mor-languages.mor-links a:hover::before {
    border-color: var(--nx-appearance-footer-text, CanvasText);
    background: var(--nx-appearance-footer-text, CanvasText);
    color: var(--nx-appearance-footer-background, Canvas);
    opacity: 1;
}

/* The ad consent box in our consent dialog (data/consent.json infoText, German only,
   placed first in the groups row by templates/juhe_consent/banner.html.twig): MOR's own
   markup, drawn like the consent groups beside it (same frame, radius and height); title
   and sentence share one line and wrap only when there is no room. In the groups row it
   shrinks to 24rem rather than push a group onto a line of its own, and takes the row's
   height. Beside the groups the
   Nexus row gap separates them; stacked, the first group keeps the groups' 10px. */
.mor-consent-ads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 24rem;
    align-self: stretch;
    max-inline-size: 50rem;
    margin: 0;
    padding-block: var(--nx-space-1, 0.25rem);
    padding-inline: 1rem 0.375rem;
    border: 1px solid var(--juhe-consent-line);
    border-radius: var(--nx-consent-radius-group, 0);
    background: var(--juhe-consent-surface);
}

.mor-consent-ads p {
    flex: 1 1 16rem;
    margin: 0;
    color: var(--juhe-consent-muted);
}

.mor-consent-ads button {
    flex: 0 0 auto;
}

/* Below 72rem the bar stacks its groups with a 10px margin (Nexus); the box keeps that
   rhythm. From 72rem the groups row is a flex row with its own gap. */
@media (width < 72rem) {
    .mor-consent-ads {
        margin-block-end: 10px;
    }
}

/* While a group's details are open, Nexus turns the groups row into a column: the
   24rem flex basis above (a width in the row) became a 384px height (Julle,
   2026-11-18). In the column the box keeps its own height. */
.juhe-consent__inner:has(.nx-consent-details[open]) .mor-consent-ads {
    flex: none;
}

.mor-consent-ads strong {
    margin-inline-end: 0.25em;
    color: var(--juhe-consent-text);
}

/* Weather page: the wetter-osttirol.com widget with its links beside it (stacked on phones) */
.mor-weather {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* From 75rem the forecast stands left, the links right (Julle, 2026-11-14); below
   it both stack, forecast first (at 1024 the link column was only 330px, one card
   a row). 75rem leaves the links 30rem beside the 550px forecast, room for two
   cards a row */
@media (min-width: 75rem) {
    .mor-weather {
        grid-template-columns: minmax(0, 34.375rem) minmax(30rem, 1fr);
    }
}

/* The widget draws its box (at most 550px) with an 8px margin inside its shadow root:
   flush with the heading, and the column above is 34.375rem (550px) wide */
.mor-weather weather-forecast {
    display: block;
    margin-inline: -8px;
}

/* Both headings keep the site's h2 size (Julle, 2026-11-14) and start level with each other */
.mor-weather__links {
    container-type: inline-size;
}

.mor-weather :is(.mor-weather__widget, .mor-weather__links) > h2 {
    margin-block-start: 0;
}

/* The four links as a 2x2 grid once the column has room for two cards (Julle, 2026-11-14) */
.mor-weather__links ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@container (min-width: 30rem) {
    .mor-weather__links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* One card per link: a line icon in a tinted tile, title and sentence beside it,
   Nexus' external link marker in the top corner (Julle, 2026-11-14) */
.mor-weather__links a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-content: start;
    gap: 0.2rem 0.9rem;
    box-sizing: border-box;
    block-size: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid color-mix(in oklab, var(--nx-color-primary) 22%, transparent);
    border-radius: calc(var(--mor-round) - 0.75rem);
    background: color-mix(in oklab, var(--nx-color-primary) 4%, var(--nx-color-raised));
    color: var(--nx-color-text);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, translate 0.15s ease;
}

.mor-weather__icon {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: calc(var(--mor-round) - 1rem);
    background: color-mix(in oklab, var(--nx-color-primary) 12%, var(--nx-color-raised));
    color: var(--nx-color-primary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mor-weather__icon svg {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mor-weather__links strong {
    grid-area: 1 / 2;
    align-self: center;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-family: var(--nx-font-ui);
    font-size: 1.05rem;
}

.mor-weather__links strong + span {
    grid-area: 2 / 2;
    color: var(--nx-color-muted, GrayText);
    font-size: 0.95rem;
}

/* Nexus' marker for external links sits in the corner instead of on a line of its own */
.mor-weather__links .nx-external-icon {
    grid-area: 1 / 3;
    align-self: center;
    color: var(--nx-color-muted, GrayText);
}

.mor-weather__links a:hover {
    border-color: var(--nx-color-primary);
    background: color-mix(in oklab, var(--nx-color-primary) 9%, var(--nx-color-raised));
    box-shadow: 0 0.4rem 1rem -0.6rem color-mix(in oklab, var(--nx-color-primary) 45%, transparent);
    translate: 0 -2px;
}

.mor-weather__links a:hover strong {
    color: var(--nx-color-primary);
}

.mor-weather__links a:hover .mor-weather__icon {
    background: var(--nx-color-primary);
    color: var(--nx-color-on-primary, Canvas);
}

.mor-weather__links a:focus-visible {
    outline: var(--nx-focus-width, 2px) solid var(--nx-color-focus, Highlight);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mor-weather__links a,
    .mor-weather__icon {
        transition: none;
    }

    .mor-weather__links a:hover {
        translate: none;
    }
}

@media (forced-colors: active) {
    .mor-weather__links a {
        border-color: LinkText;
    }

    .mor-weather__icon {
        border: 1px solid CanvasText;
    }
}

/* Text for screen readers only (corner cell of the contact tables) */

/*
 * 404 and 503 pages (content element mor_error_page): text, search and
 * section buttons left, a header art drawing right (below on phones).
 */

/* Detail titles share the compact page header's section and gutter alignment. */
.mod_article:has(.module-mor-catalog-reader) {
    padding-block-start: var(--nx-space-section);
}

.module-mor-catalog-reader {
    padding-inline: var(--nx-gutter);
}

/* Nexus keeps error pages at reading width; the two columns need the room */
html[data-nx-page-type^="error_"] main:has(.mor-lost) {
    max-inline-size: none;
}

.mor-lost {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-block: calc(var(--nx-space-section) * .5) clamp(1.5rem, 5vw, 4rem);
    padding-inline: var(--nx-gutter);
}

@media (min-width: 56rem) {
    .mor-lost {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.mor-lost__title {
    margin: 0 0 1.25rem;
    /* Same size as every other H1 (Nexus :where(h1) rule), not a second clamp */
    font-size: var(--nx-type-h1-size, var(--nx-size-h1));
    line-height: 1.08;
    text-wrap: balance;
}

.mor-lost__lead {
    max-inline-size: 46ch;
    margin: 0 0 2rem;
    font-size: 1.125rem;
}

.mor-lost__search {
    margin-block-end: 2rem;
}

.mor-lost__search label {
    display: block;
    margin-block-end: 0.5rem;
    font-weight: 600;
}

/* Field and button side by side, centered on each other */
.mor-lost__field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-inline-size: 32rem;
}

/* The Nexus search field (input plus clear button) takes the room beside the button */
.mor-lost__field .nx-search-input,
.mor-chart-control > .nx-search-input {
    flex: 1 1 auto;
    min-inline-size: 0;
}

.mor-lost__field .nx-button {
    flex: none;
}

.mor-lost__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mor-lost__art {
    margin: 0;
}

/* The wide drawing, cut to its sun with the signpost */
.mor-lost__art img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 70% 50%;
    border-radius: var(--nx-appearance-image-radius);
}

/*
 * Snow (content element mor_snow, hidden in the footer bottom band, shown by
 * the owner on snowy days): soft flakes fall over the screen for about a
 * minute and a half, swaying, then stop. A faint shadow keeps them visible
 * on the light theme. Nothing with reduced motion.
 */
.mor-snow {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    pointer-events: none;
}

.mor-snow i {
    position: absolute;
    inset-block-start: -1rem;
    inset-inline-start: var(--x);
    inline-size: var(--s);
    block-size: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 30%, rgb(255 255 255 / 0.85) 45%, rgb(255 255 255 / 0) 70%);
    filter: drop-shadow(0 0 2px rgb(30 33 38 / 0.5));
    opacity: var(--o);
    animation:
        mor-snow-fall var(--d) linear var(--delay) 6 backwards,
        mor-snow-sway calc(var(--d) / 3) ease-in-out var(--delay) infinite alternate;
}

/* The fall ends below the screen and stays there */
.mor-snow i {
    translate: 0 calc(100dvb + 2rem);
}

@keyframes mor-snow-fall {
    from {
        translate: 0 0;
    }

    to {
        translate: 0 calc(100dvb + 2rem);
    }
}

@keyframes mor-snow-sway {
    from {
        transform: translateX(calc(var(--drift) * -1));
    }

    to {
        transform: translateX(var(--drift));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mor-snow {
        display: none;
    }
}

/* A missing listing is still an actionable, full-height slot. */
#mor-neu .mor-latest-empty {
    border: 1px dashed var(--nx-color-border, GrayText);
    padding: 0;
    height: 100%;
}

#mor-neu .mor-latest-empty-link {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 1.5rem;
    color: var(--nx-color-text, CanvasText);
}

#mor-neu .mor-latest-empty-link:focus-visible {
    outline: var(--nx-focus-width, 2px) solid var(--nx-color-focus, Highlight);
    outline-offset: -2px;
}

/* "Neu auf Mein Osttirol" (section mor-neu): the Lottozahlen module lays its figure
   and content out as a wrapping flex row and centres each line. On a wide desktop the
   tile grows taller, so the centred figure drifted down (39px from the top instead of
   the 25px the four category tiles use). Top-align it so all five images share the
   same top edge at every width. */
#mor-neu .mor-lotto {
    align-items: flex-start;
}

/* GRATIS sticker (import GratisEyecatcher): gold, top right on every German page, over the
   corner of the hero. Fixed dark text on gold in both colour schemes. Swings gently now and
   then; without motion it stays still. */
#mor-gratis {
    position: absolute;
    z-index: 1;
    inset-block-start: var(--mor-gratis-top, 6.25rem);
    inset-inline-end: clamp(0.5rem, 2.5vw, 2.5rem);
    margin: 0;
    transform: rotate(3deg);
    transform-origin: 100% 0;
}

#mor-gratis a {
    display: block;
    inline-size: 15.5rem;
    padding: 0.7rem 1rem 0.8rem;
    border: 2px solid #fff3c9;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe08a, #e0ac2b);
    box-shadow: 0 0.4rem 1.2rem rgb(0 0 0 / 28%);
    color: #2b1d00;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: start;
    text-decoration: none;
}

#mor-gratis a::before {
    content: "GRATIS";
    display: block;
    color: #7a0019;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

#mor-gratis a:hover {
    background: #ffe08a;
}

/* Tablet: fits between the header bar and the hero. */
@media (max-width: 63.99rem) {
    #mor-gratis {
        --mor-gratis-top: 5rem;
    }
}

/* Phone: no free corner above the hero text, so it joins the flow as a slim strip. */
@media (max-width: 47.99rem) {
    #mor-gratis {
        position: static;
        margin: 0.25rem 1.625rem 0.75rem;
        transform: none;
        animation: none !important;
    }

    #mor-gratis a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        inline-size: auto;
        padding: 0.25rem 0.6rem;
        border-width: 1px;
        border-radius: 10px;
        box-shadow: 0 0.15rem 0.4rem rgb(0 0 0 / 18%);
        font-size: 0.6875rem;
        line-height: 1.2;
    }

    #mor-gratis a::before {
        font-size: 0.875rem;
        flex: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes mor-gratis-swing {
        0%, 86%, 100% { transform: rotate(3deg); }
        90% { transform: rotate(-1deg); }
        94% { transform: rotate(4.5deg); }
        97% { transform: rotate(2deg); }
    }

    #mor-gratis {
        animation: mor-gratis-swing 9s ease-in-out infinite;
    }

    #mor-gratis:hover,
    #mor-gratis:focus-within {
        animation-play-state: paused;
    }
}

@media print {
    #mor-gratis {
        display: none;
    }
}

/* Municipality list: clear space between the region sections, so each region
   headline sits apart from the cards above it (owner, 2026-11-02). */
.mor-municipalities {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-6, 3rem);
}

/* The first region has no flex gap above it, only the intro text; give its
   h2 the same clear space as the other regions (heading-space pass 2026-11-02). */
.mor-municipalities > section:first-child {
    margin-block-start: var(--nx-space-5, 1.5rem);
}

/* Heading space in our own modules (strict heading-space pass 2026-11-02):
   an h2 gets clearly more space above than below, using the Nexus spacing
   tokens. Scoped to our module classes; Nexus prose headings are untouched. */

/* Catalog reader: the "Öffnungszeiten" section after the gallery or the text */
.module-mor-catalog-reader section[aria-labelledby^="catalog-hours-"] {
    margin-block-start: var(--nx-space-5, 1.5rem);
}

/* Health dashboard: the second section (Viruslast im Abwasser) after the
   SARI section with its table */
.module-mor-health-dashboard > section + section {
    margin-block-start: var(--nx-space-6, 3rem);
}

/* Health dashboard: a closed <details> table still lays out (author display
   rules beat the UA hide, and table-scroll.js may unwrap the scroller), so its
   rows measure as the box right above the next h2. Keep everything but the
   summary out of layout while the details is closed; table-scroll.js re-wraps
   the table on toggle. */
.module-mor-health-dashboard details:not([open]) > :not(summary) {
    display: none;
}

/* Statistics: every h2 after a chart figure or card list */
.module-mor-statistics h2 {
    margin-block-start: var(--nx-space-6, 3rem);
}

/* "Erstellt mit Nexus" and JUHE IT-solutions. with their marks (ConsistencyFixes::nexusCredit),
   footer next to the copyright line and imprint */
.mor-nexus-credit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
}

.nx-footer-band-bottom .mor-nexus-credit {
    justify-content: center;
}

.mor-nexus-credit a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.mor-nexus-credit img {
    inline-size: 1.25em;
    block-size: 1.25em;
}

/* Tourism guides: top accommodation CTA (compact padding comes from the Nexus card look). */
.mor-tourism-accommodation-top .nx-cta-band-text p {
    margin-block: var(--nx-space-2, 0.5rem) 0;
}

/* Company detail ("Schaufenster", catalog/detail_company): hero over the full
   content width, description next to the contact card, then photos and video
   as full-width bands. Layout only; colours, type and buttons come from Nexus. */
.mor-co {
  --mor-co-gap: clamp(1.5rem, 4vw, 3.5rem);
  gap: var(--mor-co-gap);
}

.mor-co-hero {
  display: grid;
  gap: var(--mor-co-gap);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: calc(var(--nx-radius, 0.25rem) * 3);
  /* Light theme: the 6% tint on white over the light grey page hardly showed,
     so the hero read as an empty margin. A stronger tint and a light border
     in the primary colour mark the box; dark keeps its tint (Julle, 2026-11-14). */
  border: 1px solid light-dark(color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 22%, var(--nx-color-surface, Canvas)), transparent);
  background: light-dark(color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 9%, var(--nx-color-surface, Canvas)), color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 6%, var(--nx-color-surface, Canvas)));
}

@media (min-width: 56rem) {
  .mor-co-hero--media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

.mor-co-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}

.mor-co-logo {
  inline-size: fit-content;
}

.mor-co-logo :is(figure, img) {
  display: block;
  margin: 0;
  max-block-size: 5.5rem;
  max-inline-size: min(16rem, 100%);
  inline-size: auto;
  block-size: auto;
}

/* Project references in a company description (JUHE IT-solutions., Julle
   2026-11-10): one card per project, every picture in the same 380:280 frame.
   Member rich text has no Nexus element, so the list is MOR markup. */
.mor-co-main .mor-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nx-gutter, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .mor-co-main .mor-projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mor-co-main .mor-projects li {
  margin: 0;
  padding: 0;
}

/* A block, not flex: the outbound arrow Nexus adds after a new-tab link then
   follows the address on its line */
.mor-co-main .mor-projects a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mor-co-main .mor-projects img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-inline-size: none;
  aspect-ratio: 380 / 280;
  object-fit: cover;
  margin: 0 0 0.375rem;
  border-radius: var(--nx-radius, 0.25rem);
  background: color-mix(in srgb, currentColor 6%, transparent);
}

/* A logo (SVG) shows whole on the neutral frame instead of being cropped */
.mor-co-main .mor-projects img[src*=".svg"] {
  object-fit: contain;
  padding: 0.75rem;
  box-sizing: border-box;
}

.mor-co-main .mor-projects strong {
  display: block;
  margin-block-end: 0.125rem;
  line-height: 1.3;
}

.mor-co-main .mor-projects span {
  font-size: 0.875em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mor-co-main .mor-projects a:is(:hover, :focus-visible) span {
  text-decoration-thickness: 2px;
}

/* A video a member put into the description (old site markup, width 100%):
   at most 800 px high, kept in its own aspect ratio, so a portrait clip does
   not fill a whole screen (Julle, 2026-11-10); at the start of the text
   column like the company video (Julle, 2026-11-14). */
.mor-co-main video {
  display: block;
  inline-size: auto;
  max-inline-size: 100%;
  block-size: auto;
  max-block-size: 50rem;
}

/* Awards in a company description (Das Pfleger, Julle, 2026-11-14): one
   card per guide, the rating large, the guide below. Member rich text, so no
   Nexus element covers it. */
.mor-co-main .mor-awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: var(--nx-space-3, 0.75rem);
  padding: 0;
  list-style: none;
}

.mor-co-main .mor-awards li {
  display: grid;
  margin: 0;
}

.mor-co-main .mor-awards :is(li > a, li:not(:has(a))) {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: var(--nx-space-4, 1rem);
  border: 1px solid color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 22%, var(--nx-color-surface, Canvas));
  border-radius: calc(var(--nx-radius, 0.25rem) * 2);
  background: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 6%, var(--nx-color-surface, Canvas));
  color: inherit;
  text-decoration: none;
}

.mor-co-main .mor-awards li > a {
  position: relative;
  padding-inline-end: calc(var(--nx-space-4, 1rem) + 1.25rem);
}

.mor-co-main .mor-awards li > a:hover {
  border-color: var(--nx-color-primary, #8b1a1a);
}

/* The external-link mark of Nexus in the corner, not on a row of its own */
.mor-co-main .mor-awards .nx-external-icon {
  position: absolute;
  inset-block-start: var(--nx-space-4, 1rem);
  inset-inline-end: var(--nx-space-4, 1rem);
}

.mor-co-main .mor-awards strong {
  font-family: var(--nx-font-headline, inherit);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--nx-color-primary, #8b1a1a);
}

.mor-co-main .mor-awards strong + span {
  font-size: var(--nx-size-small, 0.875rem);
}

/* Thermomix Osttirol (company 4854): the member's description heading holds
   two star icons and the word mark; keep them on one row with a small gap
   (Julle, 2026-11-10). Rich text images are blocks in Nexus; no setting
   covers member-written markup. */
.mor-co-main h2.illy img:nth-of-type(-n + 3) {
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 0.25rem;
  block-size: auto;
}

.mor-co-main h2.illy strong {
  display: block;
}

.mor-co-main h2.illy img:nth-of-type(2) {
  inline-size: min(25rem, calc(100% - 7rem));
}

/* Its portrait photo below (600x800) at a third of the size, so the text
   starts on the first screen (Julle, 2026-11-14) */
.mor-co-main h2.illy img:nth-of-type(4) {
  inline-size: min(100%, 15rem);
  block-size: auto;
  border-radius: var(--nx-appearance-image-radius, var(--nx-radius, 0.25rem));
}

.mor-co-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mor-co-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.8em;
  border: 1px solid var(--nx-color-border, GrayText);
  border-radius: 999px;
  background: var(--nx-color-surface, Canvas);
  font-size: 0.875rem;
}

.mor-co-lead {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  max-inline-size: 40ch;
}

.mor-co .nx-icon {
  display: inline-flex;
  flex: none;
  inline-size: 1em;
  block-size: 1em;
  vertical-align: -0.125em;
}

.mor-co .nx-icon svg {
  inline-size: 100%;
  block-size: 100%;
}

.mor-co-hero-media :is(figure, picture) {
  margin: 0;
}

/* A photo is never shown larger than its file (Julle, 2026-11-08): a small one keeps its own
   width (the width attribute), centred with its caption; a large one fills the column */
.mor-co-hero-media figure {
  inline-size: fit-content;
  max-inline-size: 100%;
  margin-inline: auto;
}

.mor-co-hero-media img {
  display: block;
  inline-size: auto;
  max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--nx-radius, 0.25rem) * 2);
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgb(0 0 0 / 0.35);
}

/* Description and contact card: side by side from 64rem, card first on small screens is not wanted (the text sells) */
.mor-co-body {
  display: grid;
  /* One column that never grows past the page: a wide table in the description scrolls in its own region */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--mor-co-gap);
  align-items: start;
}

@media (min-width: 64rem) {
  .mor-co-body {
    grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 1fr);
  }
}

.mor-co-card h2 {
  margin: 0;
}

.mor-co-place {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

details.mor-co-place {
  display: block;
  border: 1px solid var(--nx-color-border, GrayText);
  border-radius: calc(var(--nx-radius, 0.25rem) * 2);
  overflow: clip;
}

.mor-co-place summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  align-items: start;
  padding: 0.875rem 1rem;
  cursor: pointer;
  list-style: none;
}

.mor-co-place summary::-webkit-details-marker {
  display: none;
}

.mor-co-place summary:hover {
  background: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 5%, transparent);
}

.mor-co-place summary:focus-visible {
  outline: var(--nx-focus-width, 2px) solid var(--nx-color-focus, Highlight);
  outline-offset: -2px;
}

.mor-co-place > .nx-icon,
.mor-co-place summary > .nx-icon {
  margin-block-start: 0.2em;
  color: var(--nx-color-primary, #8b1a1a);
  font-size: 1.25rem;
}

.mor-co-place address {
  font-style: normal;
}

.mor-co-place-toggle {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--nx-color-primary, #8b1a1a);
  font-weight: 600;
  font-size: 0.9375rem;
}

.mor-co-place-toggle .nx-icon {
  transition: rotate 0.2s ease;
}

.mor-co-place[open] .mor-co-place-toggle .nx-icon {
  rotate: 180deg;
}

.mor-co-place-hide,
.mor-co-place[open] .mor-co-place-show {
  display: none;
}

.mor-co-place[open] .mor-co-place-hide {
  display: inline;
}

.mor-co-map {
  block-size: clamp(16rem, 70vw, 24rem);
  border-block-start: 1px solid var(--nx-color-border, GrayText);
}

.mor-co-map > * {
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

/* Until consent the consent bundle's placeholder stands in for the iframe. On
   phones its text and buttons need more than the map height and ran over the
   route link (layout audit batch 9): the box follows the placeholder then. */
.mor-co-map:has(> .juhe-consent-placeholder) {
  block-size: auto;
}

.mor-co-map > .juhe-consent-placeholder {
  block-size: auto;
  min-block-size: clamp(16rem, 70vw, 24rem);
}

details.mor-co-place > p {
  margin: 0;
  padding: 0.75rem 1rem;
}

/* Our own details (map, delete confirmation) open like the Nexus accordions; no Nexus setting for MOR markup */
@media (prefers-reduced-motion: no-preference) {
  details.mor-co-place::details-content,
  details.mor-entry-delete::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
  }

  details.mor-co-place[open]::details-content,
  details.mor-entry-delete[open]::details-content {
    block-size: auto;
  }

  details.mor-co-place,
  details.mor-entry-delete {
    interpolate-size: allow-keywords;
  }
}

.mor-co-facts {
  inline-size: 100%;
  margin: 0;
}

.mor-co-facts td,
.mor-facts td {
  overflow-wrap: anywhere;
}

/* Label and value tables (ad facts, company contact, opening hours): in a
   narrow column (phones, the ad sidebar at 768) the label goes above its value
   instead of squeezing it to a few letters per line (2026-11-15: "Sonntag" and
   its times took 174 px at 320). One bordered box per row, as before. Nexus has
   no setting for this; the tables are MOR markup or member text. */
.mor-facts-box,
.mor-co-hours {
  container-type: inline-size;
}

@container (max-width: 20rem) {
  :is(.mor-facts, .mor-co-facts, .mor-co-hours table),
  :is(.mor-facts, .mor-co-facts, .mor-co-hours table) :is(tbody, tr, th, td) {
    display: block;
  }

  :is(.mor-facts, .mor-co-facts, .mor-co-hours table) tr + tr {
    margin-block-start: -1px;
  }

  :is(.mor-facts, .mor-co-facts, .mor-co-hours table) :is(th, td) + :is(th, td) {
    border-block-start: 0;
    padding-block-start: 0;
  }

  :is(.mor-facts, .mor-co-facts, .mor-co-hours table) :is(th, td):has(+ :is(th, td)) {
    border-block-end: 0;
    padding-block-end: 0;
  }
}

/* Member text wraps cells in a paragraph; its margins doubled the row height */
.mor-co-hours :is(th, td) > :first-child {
  margin-block-start: 0;
}

.mor-co-hours :is(th, td) > :last-child {
  margin-block-end: 0;
}

.mor-co-hours h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.125rem;
}

.mor-co-band > h2 {
  margin: 0;
}

/* Company video: 16:9, never the full page width, at the start of the column
   like the heading (Julle, 2026-11-14); the consent placeholder takes the same box */
.mor-co-video {
  inline-size: 100%;
  max-inline-size: 56rem;
}

/* A black box like the player's own: the rounded corners and any letterbox
   edge show black, never the page background */
.mor-video {
  aspect-ratio: 16 / 9;
  inline-size: 100%;
  border-radius: var(--nx-appearance-image-radius, var(--nx-radius, 0.25rem));
  overflow: clip;
  background: #000;
}

.mor-video > * {
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

/* The same for the video placeholder: at least 16:9, taller when its content
   needs it. Firefox and WebKit clipped it at 320 and 390, Chromium grew the
   box (layout audit batch 9). */
.mor-video:has(> .juhe-consent-placeholder) {
  aspect-ratio: auto;
  container-type: inline-size;
}

/* A minimum, not aspect-ratio: WebKit aligned the content against the ratio
   height and then grew the box, so the top was cut off */
.mor-video > .juhe-consent-placeholder {
  block-size: auto;
  min-block-size: max(16rem, 56.25cqi);
}

/* The players declare no colour scheme. In the dark theme the browser would
   paint their transparent page white behind the video, which showed as a
   bright rim (Julle, 2026-11-14). The same scheme as the player keeps it
   transparent over the black box. */
.mor-video > iframe {
  color-scheme: light;
}

.mor-co-hero-media figcaption {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--nx-color-muted, GrayText);
}

/* Photo credits under the company photos */
.mor-co-credits {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--nx-color-muted, GrayText);
}

/* Sitemap links at 500 instead of the button weight 600 (Julle, 2026-11-10). Nexus has no
   setting for this on purpose: links drawn as buttons follow the button settings, and a
   weight field per element is what the Nexus weight model removes. The token snaps to
   the nearest weight the button font has. */
.nx-sitemap[data-nx-sitemap-layout="buttons"] a {
  font-weight: var(--nx-button-weight-500, 500);
}

/* Catalog cards (MOR's own card markup, no Nexus equivalent; Julle,
   2026-11-14): branches (a doctor's specialties in place of "Ärzte") are
   chips. A free entry shows them beside the title, right-aligned, or on
   their own line below it when they do not fit; every card shows the address under the title in one line,
   town first ("9900 Lienz, Kreuzgasse 15"), the pin on its first line. */
.mor-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

/* The title keeps at least 9rem; chips that do not fit beside it move to
   their own line (right-aligned) instead of wrapping inside a narrow column,
   which left wide empty chips (Julle, 2026-11-14) */
.mor-card-head > .nx-ed-title {
  flex: 1 1 9rem;
  min-inline-size: 0;
}

.mor-card-head > :not(.nx-ed-title) {
  flex: 0 1 auto;
  max-inline-size: 100%;
  margin: 0 0 0 auto;
}

.mor-card-head > .mor-card-chips {
  justify-content: end;
  text-align: end;
}

.mor-card-address {
  display: flex;
  align-items: start;
  gap: 0.4em;
  margin: 0;
  font-size: var(--nx-size-small, 0.875rem);
  line-height: 1.4;
  color: var(--nx-color-muted, GrayText);
}

.mor-card-address > .nx-icon {
  flex: none;
  block-size: 1.4em;
  color: var(--nx-color-primary, currentcolor);
}


/* The phone number closes a free card: no margin below it (Julle, 2026-11-14) */
.mor-card-phone {
  margin-block: auto 0;
}

.mor-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mor-card-chips > .nx-badge {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-inline: 0.65em;
  border: 1px solid var(--nx-color-border, GrayText);
  border-radius: 999px;
  font-weight: 400;
}

/* Offer chip (Biete, Suche) beside the title: tinted, no border, so it
   reads apart from the outlined category chips (Julle, 2026-11-14). */
.mor-card-offer {
  padding-inline: 0.65em;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--nx-color-primary, #8b1a1a) 14%, var(--nx-color-surface, Canvas));
  color: var(--nx-color-text, CanvasText);
  font-weight: 400;
}

/* Ad detail pages: the overview card's chips under the title (Julle,
   2026-11-15). MOR markup, Nexus has no chip list setting. */
.mor-card-chips > .mor-card-offer {
  border-color: transparent;
}

.mor-detail-chips > .nx-badge {
  gap: 0.4em;
  padding-block: 0.25em;
}

/* Three kinds, three looks (Julle, 2026-11-15): the offer is the Nexus primary
   badge (nx-badge-primary), categories outlined, the date filled neutral */
.mor-detail-chips > .nx-badge-primary {
  border-color: transparent;
  font-weight: 600;
}

.mor-detail-chips > .mor-card-date {
  border-color: transparent;
  background-color: color-mix(in oklab, var(--nx-color-text, CanvasText) 9%, transparent);
  color: var(--nx-color-text, CanvasText);
}

.mor-detail-chips .nx-icon {
  flex: none;
  block-size: 1.1em;
  color: var(--nx-color-primary, currentcolor);
}

/* Classified, car, property and job cards (Julle, 2026-11-14): the date as a
   badge on the picture, price and "more" in one row at the bottom of the
   card, so the price sits at the same height in every card of a row. */
.nx-ed-news-card__media:has(> .mor-card-date) {
  position: relative;
}

.mor-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.mor-card-top > figure {
  margin: 0;
}

.mor-card-top > .mor-card-date {
  flex: none;
  margin-inline-start: auto;
  font-weight: 400;
}

.nx-ed-news-card__media > .mor-card-date {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-start: 0.6rem;
  z-index: 1;
  pointer-events: none;
}

.mor-card-date {
  border: 1px solid var(--nx-color-border, GrayText);
  /* Same radius token as the Premium badge (.nx-ed-meta-featured) */
  border-radius: var(--nx-radius-pill, 999rem);
  background-color: var(--nx-color-surface, Canvas);
  font-weight: 400;
}

.nx-ed-news-card__body:has(> .mor-card-foot),
.nx-ed-news-card__body:has(> .mor-card-phone) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.mor-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-block-start: auto;
}

.mor-card-foot > * {
  margin: 0;
}

/* A footer without a price (jobs): the link keeps its place at the right. */
.mor-card-foot > :only-child {
  margin-inline-start: auto;
}

/* Nexus has no frontend HugeRTE setting; match the form field tokens. */
.mor-member-form .tox.tox-hugerte {
  border-color: var(--nx-appearance-form-border, var(--nx-color-border, currentColor));
  border-radius: var(--nx-appearance-form-radius, var(--nx-radius, .25rem));
  max-inline-size: 100%;
}

.mor-member-form .tox.tox-hugerte:focus-within {
  outline: 2px solid var(--nx-color-primary, Highlight);
  outline-offset: 2px;
}

/* The skin draws a row line every 39px for wrapped toolbars; with the 44px Nexus
   targets it lands beside the buttons as a stray line and dots. One row: no lines. */
.mor-member-form .tox.tox-hugerte .tox-toolbar,
.mor-member-form .tox.tox-hugerte .tox-toolbar__primary {
  background: none;
}

/* Member-owned upload controls have no Nexus equivalent. The grid itself is Nexus. */
.mor-upload-preview .nx-card {
  overflow-wrap: anywhere;
}

.mor-upload-preview img {
  max-inline-size: 100%;
  block-size: auto;
}

.mor-existing-file {
  display: block;
  padding: var(--nx-space-3, .75rem);
  border: 1px solid var(--nx-color-border, currentColor);
  border-radius: var(--nx-radius, .25rem);
  overflow-wrap: anywhere;
}

.mor-existing-file-content {
  display: block;
}

/* The thumbnail fills its cell like the upload previews (it shrank to 56 px at 390) */
.mor-existing-file-content figure,
.mor-existing-file-content img {
  inline-size: 100%;
  block-size: auto;
}

.mor-existing-file-content figure {
  margin: 0 0 var(--nx-space-2, .5rem);
}

.mor-existing-file-removed {
  display: none;
}

.mor-existing-file:has(input:checked) .mor-existing-file-content {
  position: relative;
  opacity: .5;
  text-decoration: line-through;
}

.mor-existing-file:has(input:checked) .mor-existing-file-content:has(figure)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  border-block-start: 2px solid var(--nx-color-danger, currentColor);
  pointer-events: none;
}

.mor-existing-file:has(input:checked) .mor-existing-file-removed {
  display: block;
}

/* Cards without picture and logo: offer chip and date share the title row. */
.mor-card-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 0.35rem;
}

/*
 * WhatsApp share buttons in WhatsApp green, light and dark theme alike
 * (Julle, 2026-11-18: no per-button colour fields in Nexus, too many options
 * for one button). Dark text: 9.4:1 on #25d366, 6.8:1 on hover.
 */
a.nx-button[href^="https://wa.me/"] {
  background-color: #25d366;
  border-color: #25d366;
  color: #0b141a;
}

a.nx-button[href^="https://wa.me/"]:hover,
a.nx-button[href^="https://wa.me/"]:focus-visible {
  background-color: #1fb457;
  border-color: #1fb457;
  color: #0b141a;
}

/*
 * "Alle Dialektwörter" (glossary lists): three columns on wide screens and a
 * light line under each entry (Julle, 2026-11-18). Nexus's price list has
 * only two columns and no row lines; an exception to "no column counts in
 * mor.css", decided by Julle so that Nexus does not grow another option.
 */
.mor-glossary .nx-price-row {
  border-block-end: 1px solid color-mix(in srgb, var(--nx-color-text) 14%, transparent);
}

@container (width >= 56rem) {
  .nx-price-list.mor-glossary .nx-price-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* "Meine Dialekteinträge" (Julle, 2026-11-18): compact cards, and the standard
   German meaning on one line, cut with an ellipsis (full text in the title), so
   a long meaning neither grows the card nor runs out of it. MOR's own member
   list markup; Nexus has no gap setting for the stack and cluster inside it. */
.mor-entry-list-compact {
  gap: min(var(--nx-gutter, 1rem), var(--nx-space-4, 1rem));
}

.mor-entry-list-compact > li > .nx-stack {
  flex: 1 1 100%;
  min-inline-size: 0;
  gap: var(--nx-space-2, .5rem);
}

.mor-entry-list-compact > li > .nx-stack > .nx-cluster {
  gap: var(--nx-space-3, .75rem);
  margin-block-start: var(--nx-space-2, .5rem);
}

.mor-entry-meaning {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Meine ..." lists: the entry photo gets the Studio image radius like every
   other picture on the site (Julle, 2026-11-18). MOR's own member list markup;
   Nexus rounds images per component, not in a free card. */
.mor-entry-list .nx-figure img,
.mor-entry-list figure img,
.mor-existing-file img {
  border-radius: var(--nx-appearance-image-radius, 1.25rem);
}

/* Detail page of the member's own ad: "Eintrag bearbeiten" right of the h1,
   below it when the title needs the width (Julle, 2026-11-18). Own markup;
   a Nexus cluster puts its items at the start. */
.mor-detail-title {
  /* The button sits right beside the title, a small gap after it (Julle, 2026-11-18) */
  align-items: center;
  column-gap: var(--nx-space-4, 1rem);
}

.mor-detail-title > h1 {
  flex: 0 1 auto;
  margin: 0;
}

/* Confirmation dialog for the entry form's Nexus danger button. */
.mor-delete-dialog {
  inline-size: min(30rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--nx-color-danger) 40%, transparent);
  border-radius: var(--nx-appearance-dialog-radius, 0.75rem);
  background: var(--nx-color-surface);
  color: var(--nx-color-text);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.25);
}

.mor-delete-dialog::backdrop {
  background: rgb(0 0 0 / 0.45);
}

.mor-delete-dialog h2,
.mor-delete-dialog p {
  margin: 0;
}

/* "Ihre Anzeige" on list cards (Julle, 2026-11-18): the member's own ad gets
   an edit link in the badge corner. The corner lets clicks through to the
   card link; this one badge takes them. MOR's own card markup. */
.mor-card-badge > a.mor-card-own {
  pointer-events: auto;
  text-decoration: none;
}

.mor-card-badge > a.mor-card-own:hover,
.mor-card-badge > a.mor-card-own:focus-visible {
  background: var(--nx-color-primary);
  color: var(--nx-color-surface);
}

/* Bike icon before the label of the hero button to the Drava cycle path on the three summer
   pages (Julle, 2026-11-21). The Nexus hero button has no icon field, Julle wants it in MOR only.
   Icon: Font Awesome solid/bicycle (CC BY 4.0), the copy Nexus ships. Decorative: the label stays the text. */
.nx-hero-actions a:is([href$="/drauradweg-pustertal.html"], [href$="/ciclabile-val-pusteria.html"], [href$="/drava-cycle-path.html"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.nx-hero-actions a:is([href$="/drauradweg-pustertal.html"], [href$="/ciclabile-val-pusteria.html"], [href$="/drava-cycle-path.html"])::before {
    content: "";
    flex: none;
    inline-size: 1.25em;
    block-size: 1em;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M331.7 43.3C336 36.3 343.7 32 352 32l104 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-65.6 0 72.2 148.4c10.7-2.9 21.9-4.4 33.4-4.4 70.7 0 128 57.3 128 128s-57.3 128-128 128-128-57.3-128-128c0-42 20.2-79.2 51.4-102.6l-20.4-41.9-73.5 147c-2.3 4.8-6.3 8.8-11.4 11.2-.6 .3-1.2 .5-1.8 .7-2.9 1.1-5.9 1.6-8.9 1.5L271 368c-7.9 63.1-61.7 112-127 112-70.7 0-128-57.3-128-128S73.3 224 144 224c10.8 0 21.2 1.3 31.2 3.8l28.5-56.9-11.5-26.9-40.2 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l56 0c9.6 0 18.3 5.7 22.1 14.5l14.3 33.5 123.7 0-37.7-77.5c-3.6-7.4-3.2-16.2 1.2-23.2zM228.5 228.7l-45.6 91.3 84.8 0-39.1-91.3zM305.7 287l47.5-95-88.2 0 40.7 95zm168.7 75.5l-29.7-61c-12.8 13-20.7 30.8-20.7 50.5 0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72c-2.7 0-5.5 .2-8.1 .5l29.7 61c5.8 11.9 .8 26.3-11.1 32.1s-26.3 .8-32.1-11.1zM149.2 368c-20.2 0-33.4-21.3-24.3-39.4l24.2-48.5c-1.7-.1-3.4-.2-5.1-.2-39.8 0-72 32.2-72 72s32.2 72 72 72c34.3 0 62.9-23.9 70.2-56l-65 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Emergency numbers box on the emergency pages (DE, IT, EN; Julle, 2026-11-22): MOR's own list in a
   Nexus callout, number and label in two columns so all labels start at the same x. No Nexus
   setting lays out a list as a table (checked: callout fields and Studio). The column is a subgrid,
   so it is as wide as the widest number, whatever the font. */
.mor-emergency-numbers .nx-notice-body ul {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.75em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mor-emergency-numbers .nx-notice-body li {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    margin: 0;
    padding: 0;
}

.mor-emergency-numbers .nx-notice-body li::before,
.mor-emergency-numbers .nx-notice-body li::marker {
    content: none;
}

.mor-emergency-numbers .nx-notice-body li > strong {
    font-variant-numeric: tabular-nums;
}
