/* Loonymoon Email Gate — minimal, themeable */
.lmeg-locked-wrap {
    max-width: 720px;
    margin: 3em auto;
    padding: 0 1em;
}

.lmeg-gate {
    margin: 2em 0;
    padding: 2em 1.5em;
    border: 1px solid var(--lmeg-border, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    background: var(--lmeg-card-bg, #fff);
    color: var(--lmeg-card-text, #1a1a1a);
}

.lmeg-gate a { color: inherit; }
.lmeg-gate .lmeg-tab { color: var(--lmeg-card-text, #1a1a1a); }
.lmeg-gate .lmeg-tab.is-active { color: var(--lmeg-card-text, #1a1a1a); }

.lmeg-gate-inner {
    max-width: 520px;
    margin: 0 auto;
}

.lmeg-heading {
    margin: 0 0 0.4em;
    font-size: 1.4em;
    line-height: 1.2;
}

.lmeg-message {
    margin: 0 0 1.1em;
    line-height: 1.5;
}

/* Channel pill toggle */
.lmeg-tabs {
    display: inline-flex;
    gap: 0;
    margin: 0 0 1em;
    padding: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
}

.lmeg-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.5em 1em;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1;
}

.lmeg-tab.is-active {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lmeg-form {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.lmeg-field {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.lmeg-label {
    font-weight: 600;
    font-size: 0.9em;
}

.lmeg-input,
.lmeg-select {
    padding: 0.75em 1em;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: inherit;
}

.lmeg-input:focus,
.lmeg-select:focus {
    outline: 2px solid var(--lmeg-accent, currentColor);
    outline-offset: 1px;
}

/* Phone row: country select + dial + number */
.lmeg-phone-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto 2fr;
    gap: 0.4em;
    align-items: stretch;
}

.lmeg-dial {
    display: inline-flex;
    align-items: center;
    padding: 0 0.6em;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Address block */
.lmeg-address-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.4em 0;
    cursor: pointer;
    font-size: 0.9em;
    text-align: left;
    text-decoration: underline;
    opacity: 0.75;
}

.lmeg-address-toggle:hover {
    opacity: 1;
}

.lmeg-address-toggle::before {
    content: "+ ";
}

.lmeg-address-toggle.is-open::before {
    content: "− ";
}

.lmeg-address-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5em;
    margin-top: 0.4em;
}

.lmeg-address-block .lmeg-address-message {
    grid-column: 1 / -1;
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0 0 0.25em;
}

.lmeg-address-block .lmeg-field-street,
.lmeg-address-block .lmeg-field-country-addr {
    grid-column: 1 / -1;
}

.lmeg-button {
    padding: 0.85em 1.5em;
    background: var(--lmeg-primary, #111);
    color: var(--lmeg-primary-text, #fff);
    border: 0;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
    margin-top: 0.4em;
}

.lmeg-button:hover,
.lmeg-button:focus {
    opacity: 0.88;
}

.lmeg-consent {
    font-size: 0.8em;
    opacity: 0.7;
    margin: 0.25em 0 0;
    line-height: 1.4;
}

/* Honeypot */
.lmeg-hp-wrap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .lmeg-address-block { grid-template-columns: 1fr; }
    .lmeg-phone-row    { grid-template-columns: 1fr auto 1fr; }
}

/* Upgrade CTA — shown to free members hitting a paid post */
.lmeg-upgrade {
    padding: 2em 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    max-width: 560px;
    margin: 2em auto;
}

.lmeg-tiers {
    display: grid;
    gap: 1em;
    margin-top: 1.2em;
}

.lmeg-tier {
    padding: 1.2em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
}

.lmeg-tier__name {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.lmeg-tier__desc {
    font-size: 0.92em;
    opacity: 0.72;
    margin-bottom: 0.9em;
    line-height: 1.45;
}

.lmeg-tier__prices {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.lmeg-button--outline {
    background: transparent;
    color: var(--lmeg-primary, inherit);
    border: 1px solid var(--lmeg-primary, currentColor);
}

/* Soft paywall variant — same layout, softer tone */
.lmeg-upgrade--soft {
    background: color-mix(in srgb, var(--lmeg-accent, #3b82f6) 5%, transparent);
    border-color: color-mix(in srgb, var(--lmeg-accent, #3b82f6) 20%, transparent);
}

.lmeg-soft-decline {
    font-size: 0.9em;
    opacity: 0.72;
    text-align: center;
    margin: 1.4em 0 0;
}

.lmeg-soft-decline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lmeg-soft-decline a:hover {
    opacity: 1;
}

/* ─── Unified paywall (v2.10+) ─────────────────────────────────────── */

.lmeg-paywall {
    max-width: 640px;
    margin: 2.5em auto;
    padding: 2em 1.75em;
    border: 1px solid var(--lmeg-border, rgba(0, 0, 0, 0.1));
    border-radius: 14px;
    background: var(--lmeg-card-bg, #fff);
    /* Explicit text color so the paywall stays readable on dark themes
       where the body inherits color:white. Overridable via --lmeg-card-text. */
    color: var(--lmeg-card-text, #1a1a1a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lmeg-paywall a { color: inherit; }
.lmeg-paywall h1, .lmeg-paywall h2, .lmeg-paywall h3, .lmeg-paywall p,
.lmeg-paywall label, .lmeg-paywall span {
    color: inherit;
}

/* Icon: was inheriting theme color (white on dark themes) → invisible.
   Use a fixed muted gray that reads on any card background. */
.lmeg-paywall__icon { color: #666; }
.lmeg-paywall__icon svg { stroke: currentColor; }

/* Tab pill: was rendering white text on a white active-tab bg. Force
   explicit dark text so it's readable no matter the outer theme. */
.lmeg-paywall .lmeg-tab { color: var(--lmeg-card-text, #1a1a1a); }
.lmeg-paywall .lmeg-tab.is-active { color: var(--lmeg-card-text, #1a1a1a); }

.lmeg-paywall--soft {
    background: color-mix(in srgb, var(--lmeg-accent, #3b82f6) 4%, transparent);
    border-color: color-mix(in srgb, var(--lmeg-accent, #3b82f6) 22%, transparent);
}

.lmeg-paywall__head {
    text-align: center;
    margin-bottom: 1.6em;
}

.lmeg-paywall__heading {
    font-size: 1.5em;
    line-height: 1.2;
    margin: 0 0 0.4em;
}

.lmeg-paywall__message {
    margin: 0;
    opacity: 0.75;
    line-height: 1.5;
}

.lmeg-paywall__form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.lmeg-paywall__email .lmeg-label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 0.4em;
    opacity: 0.8;
}

.lmeg-paywall__member {
    font-size: 0.9em;
    opacity: 0.75;
    margin: 0;
}

.lmeg-paywall__empty {
    text-align: center;
    padding: 1em;
    opacity: 0.6;
}

/* Tier cards — 2-up grid, wraps to 1-up on narrow screens */
.lmeg-tiers--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9em;
    margin: 0.4em 0;
}

.lmeg-tiers--grid .lmeg-tier {
    padding: 1.1em 1em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.65em;
    transition: border-color .15s ease, transform .15s ease;
}

.lmeg-tiers--grid .lmeg-tier:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

.lmeg-tier__name {
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1;
}

.lmeg-tier__desc {
    font-size: 0.88em;
    opacity: 0.68;
    line-height: 1.45;
    margin: 0;
}

.lmeg-tier__prices {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    margin-top: auto;
}

.lmeg-tier__cta {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
    padding: 0.7em 1em;
    font-size: 0.95em;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.lmeg-tier__price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lmeg-tier__period {
    font-size: 0.85em;
    opacity: 0.75;
    font-weight: 500;
}

.lmeg-button--ghost {
    background: transparent;
    color: inherit;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    padding: 0.85em 1.25em;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.lmeg-button--ghost:hover {
    border-color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.02);
}

.lmeg-paywall__free {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.lmeg-paywall__divider {
    display: flex;
    align-items: center;
    gap: 0.7em;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.82em;
    text-transform: lowercase;
    margin: 0.4em 0;
}

.lmeg-paywall__divider::before,
.lmeg-paywall__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.lmeg-paywall__signin {
    text-align: center;
    font-size: 0.85em;
    opacity: 0.65;
    margin: 0.4em 0 0;
}

@media (max-width: 520px) {
    .lmeg-paywall { padding: 1.5em 1.1em; margin: 1.5em auto; }
    .lmeg-tiers--grid { grid-template-columns: 1fr; }
}

/* ─── v2 paywall — icon + heading + form + expandable premium ─── */

.lmeg-paywall--v2 {
    text-align: center;
    max-width: 460px;
    padding: 2.2em 1.75em 2em;
}

.lmeg-paywall__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    margin: 0 auto 0.9em;
    color: currentColor;
    opacity: 0.85;
}

.lmeg-paywall--v2 .lmeg-paywall__heading {
    text-align: center;
    font-size: 1.75em;
    line-height: 1.15;
    margin: 0 0 1.4em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lmeg-paywall--v2 .lmeg-paywall__form {
    text-align: left;
    gap: 0.75em;
}

.lmeg-paywall--v2 .lmeg-tabs {
    align-self: center;
    margin: 0 auto 0.6em;
}

.lmeg-paywall--v2 .lmeg-input,
.lmeg-paywall--v2 .lmeg-select {
    font-size: 1rem;
}

.lmeg-paywall__unlock {
    font-size: 1.02em;
    padding: 0.95em 1.4em;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    margin-top: 0.2em;
}

.lmeg-paywall__member {
    text-align: center;
    margin: 0.2em 0 0.8em;
    font-size: 0.95em;
}

.lmeg-paywall__premium-toggle {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.98em;
    padding: 0.85em 1.2em;
    cursor: pointer;
}

.lmeg-paywall__premium-toggle::after {
    content: " ▾";
    font-size: 0.75em;
    opacity: 0.6;
    margin-left: 0.3em;
}

.lmeg-paywall__premium-toggle[aria-expanded="true"]::after {
    content: " ▴";
}

.lmeg-paywall__premium-panel {
    margin-top: 0.85em;
}

.lmeg-paywall--v2 .lmeg-paywall__signin {
    margin-top: 1.4em;
}

/* Logo above the card. Centered, honors max-width inline style from settings. */
.lmeg-paywall-logo {
    max-width: 640px;
    margin: 0 auto 1em;
    text-align: center;
}

.lmeg-paywall-logo img {
    max-width: 200px;      /* fallback if the inline style is missing */
    height: auto;
    display: inline-block;
}

/* Sign-in view — same overall vibe as the main view, with a small back link. */
.lmeg-paywall__signin-view {
    text-align: center;
}

.lmeg-paywall__signin-view .lmeg-field {
    margin-top: 1em;
}

.lmeg-paywall__signin-view .lmeg-signin-back {
    display: block;
    margin: 0 0 0.8em;
    text-align: left;
}

.lmeg-paywall__signin-view .lmeg-signin-back:hover {
    opacity: 1 !important;
    text-decoration: underline;
}

.lmeg-paywall__signin-view .lmeg-button {
    margin-top: 1em;
}

/* "Check your inbox" success view — landed after sign-in submit. */
.lmeg-paywall__signin-sent {
    text-align: center;
    padding: 0.5em 0;
}

.lmeg-paywall__signin-sent .lmeg-paywall__icon {
    font-size: 34px;
    line-height: 1;
    color: #1a6f1a;
}

.lmeg-paywall__signin-sent h2 {
    margin-top: 0.4em;
}

/* Paid-only paywall: the tier panel sits directly in the card
   without a Get-premium toggle. Give it a bit of top space. */
.lmeg-paywall--paid-only .lmeg-paywall__premium-panel {
    margin-top: 0.9em;
}

/* ─── Embeddable [lmeg_signup] shortcode ─────────────────────── */

.lmeg-embed {
    max-width: 520px;
    margin: 1.5em auto;
    font-family: inherit;
    color: inherit;
}

.lmeg-embed__heading {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 0.35em;
    line-height: 1.25;
}

.lmeg-embed__message {
    margin: 0 0 0.9em;
    opacity: 0.78;
    line-height: 1.5;
    font-size: 0.95em;
}

.lmeg-embed__label {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    margin-bottom: 0.3em;
    opacity: 0.8;
}

.lmeg-embed__form {
    display: flex;
    flex-direction: column;
    gap: 0.65em;
}

.lmeg-embed__consent {
    font-size: 0.75em;
    opacity: 0.6;
    margin: 0.3em 0 0;
    line-height: 1.45;
}

/* Card style — default. Contained panel with padding & rounded corners. */
.lmeg-embed--card {
    padding: 1.5em 1.4em;
    border: 1px solid var(--lmeg-border, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    background: var(--lmeg-card-bg, #fff);
    color: var(--lmeg-card-text, #1a1a1a);
}

.lmeg-embed--card a { color: inherit; }
.lmeg-embed--card .lmeg-tab { color: var(--lmeg-card-text, #1a1a1a); }
.lmeg-embed--card .lmeg-tab.is-active { color: var(--lmeg-card-text, #1a1a1a); }

/* The inline and minimal embed styles don't have a card wrapper, so the
   text color inherits from the theme. On themes that set white body text
   the tab pill goes invisible — force an explicit dark text there too. */
.lmeg-embed--inline .lmeg-tab,
.lmeg-embed--minimal .lmeg-tab {
    color: #1a1a1a;
}
.lmeg-embed--inline .lmeg-tab.is-active,
.lmeg-embed--minimal .lmeg-tab.is-active {
    color: #1a1a1a;
}

.lmeg-embed--card .lmeg-embed__row {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.lmeg-embed--card .lmeg-embed__button {
    padding: 0.85em 1.2em;
    font-size: 1em;
}

/* Inline style — horizontal, email + button side-by-side, minimal chrome. */
.lmeg-embed--inline .lmeg-embed__row {
    display: flex;
    gap: 0.4em;
    align-items: stretch;
}

.lmeg-embed--inline .lmeg-field-email {
    flex: 1;
    min-width: 0;
}

.lmeg-embed--inline .lmeg-embed__label {
    position: absolute;
    left: -9999px;
}

.lmeg-embed--inline .lmeg-embed__button {
    white-space: nowrap;
    padding: 0.75em 1.2em;
    font-size: 0.95em;
}

.lmeg-embed--inline .lmeg-field-phone {
    flex: 1;
    min-width: 0;
}

/* Minimal — no card, just the form. Best for widgets/footers. */
.lmeg-embed--minimal .lmeg-embed__row {
    display: flex;
    gap: 0.4em;
    align-items: stretch;
}

.lmeg-embed--minimal .lmeg-field-email {
    flex: 1;
    min-width: 0;
}

.lmeg-embed--minimal .lmeg-embed__label {
    position: absolute;
    left: -9999px;
}

.lmeg-embed--minimal .lmeg-embed__button {
    white-space: nowrap;
    padding: 0.7em 1.1em;
    font-size: 0.9em;
}

/* "or" divider between free signup and tier cards inside [lmeg_signup]. */
.lmeg-embed__divider {
    display: flex;
    align-items: center;
    gap: 0.7em;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85em;
    text-transform: lowercase;
    margin: 1em 0 0.8em;
}

.lmeg-embed__divider::before,
.lmeg-embed__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* When the parent card overrides color, borrow that for the divider lines
   so the strokes stay visible on dark backgrounds. */
.lmeg-embed--card .lmeg-embed__divider::before,
.lmeg-embed--card .lmeg-embed__divider::after {
    background: color-mix(in srgb, var(--lmeg-card-text, #1a1a1a) 15%, transparent);
}

.lmeg-embed__member {
    margin: 0 0 0.6em;
    font-size: 0.9em;
}

/* Success state — same shape as embed, celebratory */
.lmeg-embed--success {
    text-align: center;
    padding: 1.5em 1.4em;
    background: rgba(26, 111, 26, 0.06);
    border: 1px solid rgba(26, 111, 26, 0.25);
    color: #1a6f1a;
    border-radius: 12px;
}

.lmeg-embed--success p {
    margin: 0;
    font-weight: 500;
}

.lmeg-embed__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 111, 26, 0.15);
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

@media (max-width: 460px) {
    .lmeg-embed--inline .lmeg-embed__row,
    .lmeg-embed--minimal .lmeg-embed__row {
        flex-direction: column;
    }
    .lmeg-embed--inline .lmeg-embed__button,
    .lmeg-embed--minimal .lmeg-embed__button {
        padding: 0.85em 1.2em;
    }
}

/* Sign-in form spacing */
.lmeg-signin-form { max-width: 400px; }

/* Member page (upgrade / account / signin) */
.lmeg-member-page h1 {
    margin-top: 0;
    line-height: 1.2;
}

/* ─── Tour listings ─────────────────────────────────────────── */

.lmeg-tour { max-width: 720px; margin: 1.5em auto; }

.lmeg-tour__row {
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding: 0.95em 0.4em;
    border-bottom: 1px solid rgba(128, 128, 128, 0.22);
}

.lmeg-tour__row.is-soldout { opacity: 0.55; }

.lmeg-tour__date {
    flex: 0 0 110px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lmeg-tour__where { flex: 1; min-width: 0; }
.lmeg-tour__venue { font-weight: 600; }
.lmeg-tour__city  { font-size: 0.88em; opacity: 0.7; }

.lmeg-tour__cta { display: flex; gap: 0.45em; align-items: center; flex-wrap: wrap; }

.lmeg-tour__btn {
    padding: 0.5em 1.1em !important;
    font-size: 0.88em !important;
    margin-top: 0 !important;
    text-decoration: none !important;
    display: inline-block;
}

.lmeg-tour__soldout {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}

.lmeg-tour__locked { font-size: 0.85em; opacity: 0.75; }
.lmeg-tour__empty  { text-align: center; opacity: 0.75; }

@media (max-width: 560px) {
    .lmeg-tour__row { flex-wrap: wrap; gap: 0.4em 1em; }
    .lmeg-tour__date { flex-basis: 100%; }
}

/* ─── Surveys ────────────────────────────────────────────────── */

.lmeg-survey {
    max-width: 520px;
    margin: 1.5em auto;
    padding: 1.5em 1.4em;
    border: 1px solid var(--lmeg-border, rgba(128,128,128,0.25));
    border-radius: 12px;
    background: var(--lmeg-card-bg, #fff);
    color: var(--lmeg-card-text, #1a1a1a);
}

.lmeg-survey__q { font-weight: 700; font-size: 1.1em; margin-bottom: 0.9em; }

.lmeg-survey__opt {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 0.75em 1em;
    margin: 0.4em 0;
    border: 1px solid var(--lmeg-border, rgba(128,128,128,0.3));
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lmeg-survey__opt:hover { border-color: var(--lmeg-primary, #111); background: rgba(128,128,128,0.06); }
.lmeg-survey__opt.is-disabled { opacity: 0.55; cursor: default; }

.lmeg-survey__result {
    position: relative;
    margin: 0.4em 0;
    padding: 0.65em 1em;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 1em;
    border: 1px solid var(--lmeg-border, rgba(128,128,128,0.2));
}

.lmeg-survey__result.is-mine { border-color: var(--lmeg-primary, #111); }

.lmeg-survey__bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: color-mix(in srgb, var(--lmeg-accent, #3b82f6) 22%, transparent);
    z-index: 0;
}

.lmeg-survey__label, .lmeg-survey__pct { position: relative; z-index: 1; }
.lmeg-survey__pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.lmeg-survey__note { font-size: 0.85em; opacity: 0.7; margin: 0.7em 0 0; }

/* ─── Contests ───────────────────────────────────────────────── */

.lmeg-contest {
    max-width: 520px;
    margin: 1.5em auto;
    padding: 1.6em 1.5em;
    border: 1px solid var(--lmeg-border, rgba(128,128,128,0.25));
    border-radius: 12px;
    background: var(--lmeg-card-bg, #fff);
    color: var(--lmeg-card-text, #1a1a1a);
    text-align: center;
}

.lmeg-contest__title { font-weight: 700; font-size: 1.25em; margin-bottom: 0.4em; }
.lmeg-contest__desc  { opacity: 0.8; margin: 0 0 1em; }
.lmeg-contest__btn   { display: inline-block; }
.lmeg-contest__note  { font-size: 0.85em; opacity: 0.75; margin-top: 0.9em; line-height: 1.5; }
.lmeg-contest__entered { font-size: 1.05em; }
.lmeg-contest__winner  { font-size: 1.1em; }
.lmeg-contest__reflink {
    display: inline-block;
    margin-top: 0.35em;
    padding: 0.35em 0.7em;
    background: rgba(128,128,128,0.1);
    border-radius: 6px;
    font-size: 0.85em;
    word-break: break-all;
}

/* Language switcher (shown only when no site language plugin is active) */
.lmeg-langswitch {
    display: inline-flex;
    gap: 2px;
    margin: 0 0 12px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}
.lmeg-langswitch__btn {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
}
.lmeg-langswitch__btn.is-active {
    background: var(--lmeg-primary, #111);
    color: var(--lmeg-primary-text, #fff);
    opacity: 1;
}
