/* Scoped to the [worstmeter_feed] shortcode, with no Astra/Core overrides. */
.wmf-root {
  --wmf-ink: #eef4ff;
  --wmf-muted: #b9c7da;
  --wmf-dark: #122137;
  --wmf-card: #202f46;
  --wmf-card-border: #34445a;
  --wmf-accent: #ffc15f;
  --wmf-coral: #fa796a;
  --wmf-teal: #73d3ad;
  --wmf-shadow: 0 16px 40px rgba(6, 17, 35, .2);
  width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--wmf-ink);
  line-height: 1.5;
  isolation: isolate;
}
.wmf-root *, .wmf-root *::before, .wmf-root *::after { box-sizing: border-box; }
.wmf-root button, .wmf-root input { font: inherit; }
.wmf-root button { cursor: pointer; }
.wmf-root a { text-decoration: none; }
.wmf-root [hidden] { display: none !important; }
.wmf-shell { max-width: 1020px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #17263b; box-shadow: var(--wmf-shadow); }
.wmf-hero { padding: 28px 34px 31px; background: radial-gradient(circle at 88% 28%, rgba(255,193,95,.18), transparent 35%), linear-gradient(145deg, #0e1b31, #243c58); position: relative; }
.wmf-hero__nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.wmf-brand { letter-spacing: .055em; font-weight: 900; font-size: 20px; color: #fff; display: flex; align-items: center; }
.wmf-brand > span:last-child { color: var(--wmf-accent); }
.wmf-brand__mark { display: inline-flex; width: 31px; height: 31px; margin-right: 8px; border: 2px solid var(--wmf-accent); color: var(--wmf-accent); border-radius: 50%; align-items: center; justify-content: center; transform: rotate(-35deg); font-size: 20px; }
.wmf-hero__pill { font-size: 10px; letter-spacing: .17em; border: 1px solid rgba(255,255,255,.24); border-radius: 99px; padding: 7px 12px; color: #d9e1ed; font-weight: 700; }
.wmf-eyebrow { color: var(--wmf-accent) !important; font-size: 11px !important; letter-spacing: .17em; font-weight: 800 !important; margin: 33px 0 7px !important; }
.wmf-hero__title { color: #fff !important; font-weight: 850 !important; font-size: clamp(31px, 4.4vw, 52px) !important; line-height: 1.11 !important; letter-spacing: -.035em; margin: 0 !important; }
.wmf-hero__title em { color: var(--wmf-accent); font-style: normal; }
.wmf-hero__tagline { margin: 9px 0 28px !important; color: #d3ddec !important; font-size: 19px !important; font-weight: 650 !important; }
.wmf-hero__bottom { display: flex; flex-wrap: wrap; gap: 10px 25px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.wmf-hero__info, .wmf-hero__auth { color: #d7e0ed; font-size: 12px; }
.wmf-hero__auth { color: var(--wmf-accent); }
.wmf-account { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 34px; background: #24384f; border-bottom: 1px solid #385067; font-size: 12px; }
.wmf-account__chunk strong { color: #fff; }
.wmf-account__chunk { color: #c7d3e0; }
.wmf-main { padding: 28px 34px 35px; }
.wmf-main__heading { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin-bottom: 16px; }
.wmf-section-label { color: var(--wmf-accent) !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: .12em; margin: 0 0 3px !important; }
.wmf-main__heading h3 { color: #fff !important; margin: 0 !important; font-size: 24px !important; font-weight: 750 !important; }
.wmf-story-count { color: var(--wmf-muted); font-size: 12px; white-space: nowrap; }
.wmf-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 19px; }
.wmf-filter { border: 1px solid #46566b; background: transparent; color: #c9d5e4; border-radius: 99px; padding: 8px 15px; line-height: 1.2; font-size: 12px; font-weight: 650; transition: background .15s, color .15s, border-color .15s; }
.wmf-filter:hover { border-color: #ffc15f; }
.wmf-filter[aria-pressed="true"] { background: var(--wmf-accent); color: #182238; border-color: var(--wmf-accent); }
.wmf-feed { display: grid; gap: 17px; }
.wmf-story { border: 1px solid var(--wmf-card-border); background: var(--wmf-card); border-radius: 16px; overflow: hidden; box-shadow: 0 9px 25px rgba(8,16,29,.15); }
.wmf-story__inside { padding: 21px 23px 20px; }
.wmf-story__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.wmf-category-tag { display: inline-flex; gap: 6px; align-items: center; color: var(--wmf-accent); border: 1px solid rgba(255,193,95,.26); background: rgba(255,193,95,.065); border-radius: 99px; padding: 4px 10px; font-size: 11px; font-weight: 750; }
.wmf-story__date { color: #a5b5c8; font-size: 11px; }
.wmf-story__title { color: #fff !important; font-size: clamp(19px, 2.8vw, 23px) !important; font-weight: 800 !important; margin: 0 0 12px !important; line-height: 1.27 !important; letter-spacing: -.014em; }
.wmf-story__body { color: #e2eaf6; font-size: 14px; white-space: pre-wrap; line-height: 1.72; margin: 0 0 20px; overflow-wrap: anywhere; }
.wmf-rate { background: #14243a; border: 1px solid #364c66; border-radius: 13px; padding: 15px 18px 16px; }
.wmf-rate__heading { color: #e0e8f3; font-size: 13px; font-weight: 800; margin: 0 0 8px; }
.wmf-rate__grid { display: grid; grid-template-columns: minmax(142px, 1fr) minmax(180px, 1.5fr); align-items: center; gap: 16px; }
.wmf-gauge { display: block; width: 100%; max-width: 235px; height: auto; overflow: visible; }
.wmf-gauge__score { font-size: 33px; font-weight: 850; fill: #fff; }
.wmf-gauge__max { font-size: 12px; fill: #b8c4d3; }
.wmf-gauge__needle { stroke: #fff; stroke-width: 5; stroke-linecap: round; transition: all .22s ease; }
.wmf-rate__right { min-width: 0; }
.wmf-rate__verdict { color: var(--wmf-accent); font-weight: 800; font-size: 15px; margin: 0 0 10px; }
.wmf-slider { display: block; width: 100%; accent-color: #ffc15f; cursor: pointer; height: 28px; margin: 0; padding: 0; }
.wmf-slider:disabled { cursor: not-allowed; opacity: .65; }
.wmf-rate__ends { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #acbdd1; margin: -1px 0 13px; }
.wmf-button { border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 13px; padding: 12px 16px; line-height: 1.25; min-height: 42px; color: #192338; background: var(--wmf-accent); transition: transform .15s, filter .15s; }
.wmf-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.wmf-button:focus-visible, .wmf-filter:focus-visible, .wmf-slider:focus-visible { outline: 3px solid var(--wmf-teal); outline-offset: 3px; }
.wmf-button:disabled { cursor: wait; opacity: .6; }
.wmf-button--secondary { background: transparent; color: #f0f5ff !important; border: 1px solid #66788d; }
.wmf-button--link { background: var(--wmf-accent); color: #14233a !important; }
.wmf-story__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.wmf-story__share { background: transparent; border: 1px solid #65758a; border-radius: 8px; color: #d6e2ef; padding: 8px 11px; font-weight: 700; font-size: 12px; }
.wmf-story__share:hover { background: #334860; }
.wmf-result { border-top: 1px solid #40546d; margin-top: 11px; padding-top: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.wmf-result__item { color: #cbd6e4; font-size: 12px; }
.wmf-result__item strong { color: #fff; font-size: 16px; margin-left: 4px; }
.wmf-result__message { color: var(--wmf-teal); font-size: 12px; font-weight: 700; }
.wmf-status { font-size: 12px; color: #cbd6e4; margin: 7px 0 0; min-height: 1px; }
.wmf-status--error { color: #ffb0a5; }
.wmf-feed-bottom { display: flex; justify-content: center; margin: 22px 0 9px; }
.wmf-footer-note { margin: 8px 0 0 !important; color: #92a7bc !important; font-size: 11px !important; text-align: center; }
.wmf-loading-state, .wmf-empty-state { border-radius: 14px; padding: 32px 20px; text-align: center; border: 1px dashed #4c617b; color: #d4e0ee; background: #1c2e45; font-size: 14px; }
.wmf-loading-line { color: #b9c7d8; font-size: 12px; }
@media (max-width: 680px) {
  .wmf-shell { border-radius: 13px; }
  .wmf-hero { padding: 23px 19px; }
  .wmf-hero__tagline { font-size: 17px !important; }
  .wmf-main { padding: 22px 14px 25px; }
  .wmf-story__inside { padding: 17px 14px; }
  .wmf-rate { padding: 12px 10px; }
  .wmf-rate__grid { grid-template-columns: 1fr; gap: 4px; }
  .wmf-gauge { max-width: 210px; margin: auto; }
  .wmf-rate__right { width: 100%; }
  .wmf-story__body { font-size: 14px; }
  .wmf-account { padding: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wmf-root * { transition: none !important; }
}

/* Story submission: same visual language as the feed; no WordPress theme overrides. */
.wmf-submit {
  margin-bottom: 31px;
  padding: 22px 23px;
  border: 1px solid rgba(255,193,95,.35);
  background: linear-gradient(125deg, #273651, #1b2c44);
  border-radius: 17px;
}
.wmf-submit__intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.wmf-submit__intro h3 { margin: 0 0 3px !important; font-size: clamp(21px,2.8vw,26px) !important; color: #fff !important; font-weight: 800 !important; }
.wmf-submit__intro p:not(.wmf-section-label) { color: #ccdaeb; font-size: 13px; margin: 0 !important; }
.wmf-submit__panel { border-top: 1px solid #41546b; padding-top: 21px; margin-top: 20px; }
.wmf-submit__balance { padding: 11px 13px; background: rgba(255,193,95,.095); border: 1px solid rgba(255,193,95,.25); color: #ffe0a3; border-radius: 9px; font-size: 13px; font-weight: 700; margin-bottom: 19px; }
.wmf-submit__form { display: grid; gap: 15px; }
.wmf-submit__field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #f4f8ff; }
.wmf-root .wmf-submit__field input,
.wmf-root .wmf-submit__field select,
.wmf-root .wmf-submit__field textarea {
  display: block; width: 100%; max-width: 100%; border-radius: 10px;
  border: 1px solid #5b6e87; background: #101f33; color: #fff;
  padding: 11px 13px; font-size: 15px; font-weight: 400;
  box-shadow: none; min-height: 44px; line-height: 1.45;
}
.wmf-root .wmf-submit__field textarea { resize: vertical; min-height: 150px; }
.wmf-root .wmf-submit__field input::placeholder,
.wmf-root .wmf-submit__field textarea::placeholder { color: #9cacc2; opacity: 1; }
.wmf-root .wmf-submit__field input:focus,
.wmf-root .wmf-submit__field textarea:focus,
.wmf-root .wmf-submit__field select:focus,
.wmf-root .wmf-submit__agree input:focus-visible { outline: 2px solid #ffc15f; outline-offset: 2px; }
.wmf-submit__hint { font-size: 11px; color: #bac9da; font-weight: 400; }
.wmf-submit__rules { padding: 13px 15px; background: #16263d; border-left: 3px solid #ffc15f; border-radius: 7px; }
.wmf-submit__rules strong { color: #fff; font-size: 13px; }
.wmf-submit__rules p { color: #cfdaea; font-size: 12px; line-height: 1.65; margin: 4px 0 0 !important; }
.wmf-submit__agree { display: flex; align-items: flex-start; gap: 10px; color: #e0e8f4; font-size: 13px; line-height: 1.5; cursor: pointer; }
.wmf-root .wmf-submit__agree input { margin: 3px 0 0; flex: 0 0 auto; accent-color: #ffc15f; width: 17px; height: 17px; }
.wmf-submit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wmf-submit__feedback { padding: 13px; margin-top: 15px; border-radius: 9px; border: 1px solid rgba(115,211,173,.48); background: rgba(115,211,173,.1); color: #b7f6dc; font-size: 13px; font-weight: 650; }
.wmf-submit__feedback--error { border-color: rgba(250,121,106,.5); background: rgba(250,121,106,.11); color: #ffc1b8; }
.wmf-submit__notice { color: #d8e5f3; font-size: 14px; margin: 0 0 15px !important; }
@media (max-width: 680px) {
  .wmf-submit { padding: 18px 15px; }
  .wmf-submit__intro .wmf-submit__toggle { width: 100%; }
  .wmf-submit__actions .wmf-button { width: 100%; }
}

/* Voting integrity: the author sees a community-only score, never a self-rating form. */
.wmf-own-message {
  color: #cfdaea;
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0 0 !important;
}

/* User achievement collection link, visible after My Badges page is published. */
.wmf-hero__nav-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wmf-hero__badge-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 99px; padding: 8px 12px; color: #14233a !important; background: #ffc15f; font-weight: 850; font-size: 12px; line-height: 1.1; }
.wmf-hero__badge-link:hover { background: #ffdc96; }
.wmf-hero__badge-link:focus-visible { outline: 3px solid #73d3ad; outline-offset: 3px; }

/* Core v0.7.3: new Subscriber email verification notice. */
.wmf-email-pending{margin:14px 0 20px;padding:15px 18px;border:1px solid #8c6a39;border-left:4px solid #f3bd6d;border-radius:12px;background:#313644;color:#f9e5bd;line-height:1.6}
.wmf-email-pending strong{color:#ffce86}.wmf-email-pending a{color:#92e9ff;text-decoration:underline}

/* v0.6.0 — private Save/Hide controls and touch-friendly swipe affordance. */
.wmf-library-help{color:#aebfd3;font-size:12px;padding:0 1px;margin:0 0 14px;line-height:1.5}
.wmf-library-help strong{color:#e8d6ae;font-weight:750}
.wmf-library-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 15px;padding:11px 14px;background:#2c443e;border:1px solid #6cae94;border-radius:10px;color:#e2fff3;font-size:13px;font-weight:650}
.wmf-library-notice__undo,.wmf-library-notice__dismiss{background:transparent;border:1px solid #8ddcbe;border-radius:8px;color:#d9fff0;font:inherit;padding:5px 10px;font-weight:800}
.wmf-library-notice__dismiss{border-color:#8199a1;margin-left:auto;font-weight:600;font-size:11px}
.wmf-story{position:relative;touch-action:pan-y}
.wmf-story__inside{position:relative;z-index:1;background:var(--wmf-card);will-change:transform}
.wmf-story:not(.wmf-story--swiping) .wmf-story__inside{transition:transform .2s ease}
.wmf-story__swipe-hint{position:absolute;inset:0;z-index:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none;padding:0 23px;font-size:18px;font-weight:850}
.wmf-story__swipe-save{color:#b6f9d6;opacity:0}.wmf-story__swipe-hide{color:#ffb8ac;opacity:0}
.wmf-story--save-preview{background:#27634e}.wmf-story--hide-preview{background:#803d39}
.wmf-story--save-preview .wmf-story__swipe-save{opacity:1}
.wmf-story--hide-preview .wmf-story__swipe-hide{opacity:1}
.wmf-story__library-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.wmf-story__library-btn{border:1px solid #6b819a;border-radius:8px;padding:8px 10px;background:#293b52;color:#d6e5f5;font-size:12px;font-weight:750;line-height:1.3;min-height:35px}
.wmf-story__library-btn--save[aria-pressed="true"]{border-color:#d6b679;color:#ffcf7b;background:#423c2f}
.wmf-story__library-btn--hide[aria-pressed="true"]{border-color:#80b6b1;color:#c1f6e8}
.wmf-story__library-btn:hover{background:#36516d;color:#fff}
.wmf-story__library-btn:disabled{opacity:.5;cursor:wait}
.wmf-story__library-btn:focus-visible,.wmf-library-notice button:focus-visible{outline:3px solid var(--wmf-teal);outline-offset:2px}
@media(max-width:680px){.wmf-story__swipe-hint{padding:0 15px}.wmf-story__footer{align-items:flex-start}.wmf-story__library-actions{width:100%}}
@media(prefers-reduced-motion:reduce){.wmf-story__inside{transition:none!important}}

/* v0.7.0 — append-only, dated story updates. */
.wmf-updates{margin:16px 0 20px;padding:15px 17px;background:#1b293a;border:1px solid #536985;border-left:3px solid #e0a84e;border-radius:12px}
.wmf-updates__heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.wmf-updates__label{font-size:11px;color:#ffcb81;font-weight:850;letter-spacing:.08em}
.wmf-updates__toggle{background:transparent;border:0;color:#8be7f8;font-weight:750;font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:5px 0;cursor:pointer}
.wmf-updates__list{margin-top:12px;display:grid;gap:12px}
.wmf-updates__entry{border-top:1px solid #3a4d63;padding-top:12px;overflow-wrap:anywhere}
.wmf-updates__entry-title{color:#ffcb81;font-size:11px;font-weight:850;letter-spacing:.05em}
.wmf-updates__entry-text{color:#e0ebf7;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0!important}
.wmf-updates__author{margin-top:12px;display:grid;justify-items:start;gap:9px}
.wmf-updates__notice{color:#f4d09e;font-size:12px;line-height:1.5;margin:0!important;max-width:100%}
.wmf-updates__notice:empty{display:none}
.wmf-updates__form{width:100%;display:grid;gap:10px;border-top:1px solid #3a4d63;padding-top:14px}
.wmf-updates__field{display:grid;gap:8px;font-size:13px;color:#f4f6fb;font-weight:750;width:100%}
.wmf-root .wmf-updates__input{width:100%;max-width:100%;min-height:110px;padding:12px 13px;resize:vertical;border-radius:9px;border:1px solid #667995;background:#101e2e;color:#fff;font:inherit;font-size:14px;line-height:1.55}
.wmf-root .wmf-updates__input:focus-visible{outline:2px solid #ffca76;outline-offset:2px}
.wmf-updates__hint{color:#aebed2;font-size:11px;line-height:1.55;margin:0!important}
.wmf-updates__controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
@media(max-width:680px){.wmf-updates{padding:13px}.wmf-updates__controls{width:100%}.wmf-updates__controls button{flex:1}}

.wmf-updates__list[hidden],.wmf-updates__form[hidden],.wmf-updates__toggle[hidden]{display:none!important}

/* Storyteller identity and Following are separate from story ratings and bookmarks. */
.wmf-story__author{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 10px;color:#becfe3;font-size:12px}
.wmf-story__byline{font-weight:700;color:#d5e1ed;overflow-wrap:anywhere}
.wmf-root .wmf-story__follow{background:transparent;border:1px solid #c49d62;color:#ffd08b;border-radius:99px;padding:5px 13px;font-size:12px;line-height:1.3;font-weight:800;cursor:pointer}
.wmf-root .wmf-story__follow[aria-pressed="true"]{background:#394839;border-color:#719d82;color:#bdebd0}
.wmf-root .wmf-story__follow:disabled{opacity:.65;cursor:wait}
.wmf-story__follow-link{color:#a7e1f4!important;font-size:12px;font-weight:700}
.wmf-story__follow-status{color:#ffbc9a;font-size:11px}
.wmf-root .wmf-story__follow:focus-visible{outline:3px solid #82dec0;outline-offset:2px}

.wmf-story__author-avatar{display:inline-flex;width:27px;height:27px;flex:none;align-items:center;justify-content:center;border-radius:50%;background:#705535;color:#ffe2a4;font-weight:900;font-size:14px;overflow:hidden}
.wmf-story__author-avatar img{width:100%;height:100%;object-fit:cover}

/* Public storyteller profiles use their own linked author bylines. */
.wmf-root a.wmf-story__byline{color:#e6c48a!important;text-decoration:none!important}
.wmf-root a.wmf-story__byline:hover,.wmf-root a.wmf-story__byline:focus-visible{color:#ffe4aa!important;text-decoration:underline!important}

.wmf-preference-notice{margin:12px 0;padding:11px 14px;border:1px solid #667c9c;border-left:4px solid #f1c46c;border-radius:10px;background:#172841;color:#e7effb;font-size:13px;line-height:1.45}.wmf-preference-notice[hidden]{display:none!important}

/* v1.6.3 — Keep the story filters in WorstMeter navy/gold despite theme button rules. */
.wmf-root .wmf-categories button.wmf-filter,
.wmf-root .wmf-categories .wmf-filter[aria-pressed="false"] {
  appearance:none!important;background:#17263b!important;color:#e8edf5!important;
  border:1px solid #93733d!important;box-shadow:none!important;
  padding:10px 17px!important;border-radius:999px!important;
  font-weight:750!important;line-height:1.25!important;text-decoration:none!important;
}
.wmf-root .wmf-categories button.wmf-filter[aria-pressed="true"] {
  background:#f2c46e!important;color:#152338!important;border-color:#f2c46e!important;
  box-shadow:inset 0 1px 0 #fff5!important;
}
.wmf-root .wmf-categories button.wmf-filter:hover {border-color:#ffda8a!important;background:#2d415e!important;color:#fff!important}
.wmf-root .wmf-categories button.wmf-filter[aria-pressed="true"]:hover {background:#ffe0a0!important;color:#152338!important}
.wmf-root .wmf-categories button.wmf-filter:focus-visible {outline:3px solid #ffe0a0!important;outline-offset:2px!important}
.wmf-root .wmf-preference-notice {background:#1d2b40!important;color:#e1e8f5!important;border-left-color:#d8a94c!important}
