/* WOW theme: article-only extras (In short, sidebar, series, Read next, related questions, Also useful, Up next). Loaded on single articles only. */

/* "In short" box above the story text. */
.wow-tldr { margin: 0 0 28px; padding: 20px 22px; border-left: 4px solid var(--wow-red); border-radius: 0 12px 12px 0; background: #fff; box-shadow: 0 0 0 1px var(--wow-line); }
.wow-tldr__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wow-red-ink); }
.wow-tldr ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.wow-tldr li { font-size: 16.5px; font-weight: 500; line-height: 1.5; }

/* Sidebar: linked stories and the widget area. */
.wow-linked .wow-card--list .wow-card__link { padding-block: 10px; }
.wow-linked .wow-card--list .wow-card__img { width: 60px; }
.wow-linked .wow-card--list .wow-card__title { font-size: 14.5px; }
.wow-linked .wow-card--list:last-child .wow-card__link { border-bottom: 0; }
.wow-aside-widgets { display: grid; gap: 16px; }

/* Series bar under the headline. */
.wow-series { margin: 0 0 22px; padding: 12px 16px; border: 1px solid var(--wow-line); border-left: 4px solid var(--wow-red); border-radius: 0 12px 12px 0; background: #fff; }
.wow-series__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 14px; }
.wow-series__name { font-weight: 800; }
.wow-series__count { color: var(--wow-muted); }
.wow-series__next { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--wow-black); text-decoration: none; }
.wow-series__next:hover strong { color: var(--wow-red-ink); }
.wow-series__all { margin-top: 6px; font-size: 14px; }
.wow-series__all summary { color: var(--wow-red-ink); font-weight: 600; cursor: pointer; }
.wow-series__all ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px 20px; margin: 10px 0 4px; padding-left: 20px; }
.wow-series__all a { color: var(--wow-black); }
.wow-series__all [aria-current] { color: var(--wow-muted); font-weight: 700; }

/* Related questions (from other guides' FAQ). */
.wow-questions { margin: 0 0 28px; }
.wow-questions__title { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wow-muted); }
.wow-questions ul { display: grid; margin: 0; padding: 0; list-style: none; }
.wow-questions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wow-line); color: var(--wow-black); font-weight: 600; text-decoration: none; }
.wow-questions a::after { color: var(--wow-red-ink); content: "\2192"; }
.wow-questions a:hover { color: var(--wow-red-ink); }
.wow-story__body + .wow-story__end ~ .wow-questions { margin-top: 28px; }

/* Read next, straight after the story. */
.wow-read-on { margin: 32px 0; padding: 20px 20px 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--wow-line); }
.wow-read-on__title { margin: 0 0 4px; font-size: 1.3rem; }
.wow-read-on .wow-card--list:last-child .wow-card__link { border-bottom: 0; }

/* Also useful, mid-article. */
.wow-prose .wow-also { margin: 28px 0; }
.wow-also a { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--wow-line); border-radius: 12px; background: #fff; color: var(--wow-black); text-decoration: none; }
.wow-also a:hover { border-color: var(--wow-black); }
.wow-prose .wow-also .wow-also__img { flex: none; width: 72px; height: 72px; margin: 0; border-radius: 8px; object-fit: cover; }
.wow-also__kicker { display: block; color: var(--wow-red-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wow-also__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }

/* Up next bar at the end of the story: above the tab bar on phones, bottom left on wide screens. */
.wow-upnext { position: fixed; right: 84px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); left: 12px; z-index: 38; display: flex; align-items: center; gap: 6px; padding: 8px 6px 8px 14px; border: 1px solid var(--wow-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .25s var(--wow-ease), transform .25s var(--wow-ease); }
.wow-upnext.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.wow-upnext__link { display: grid; flex: 1; min-width: 0; color: var(--wow-black); text-decoration: none; }
.wow-upnext__kicker { color: var(--wow-red-ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wow-upnext__title { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.wow-upnext__close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wow-muted); cursor: pointer; }
.wow-upnext__close:hover { background: var(--wow-bg); color: var(--wow-black); }

@media (min-width: 768px) { .wow-upnext { right: auto; bottom: 24px; left: 24px; width: min(420px, calc(100% - 140px)); } }

@media (prefers-reduced-motion: reduce) { .wow-upnext { transition: none; } }
html.wow-guide-open .wow-upnext { display: none; }
