/* 3Music TV — editorial family refresh
   Loaded only by the public news, article, author, search, and bookmark routes. */

.tm-editorial-page {
    --ed-ink: #0c0c0f;
    --ed-paper: #fffdf9;
    --ed-canvas: #f3f0ea;
    --ed-muted: #68656d;
    --ed-line: rgba(12, 12, 15, 0.14);
    --ed-red: #d91f35;
    --ed-red-bright: #f73145;
    --ed-yellow: #ffdb01;
    --ed-purple: #ab48fb;
    --ed-blue: #4ec5ff;
    --ed-shadow: 0 24px 70px rgba(25, 20, 18, 0.11);
    --nc-primary: var(--ed-red-bright);
}

.tm-editorial-page #tm-main {
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 219, 1, 0.12), transparent 24rem),
        radial-gradient(circle at 92% 12%, rgba(171, 72, 251, 0.08), transparent 28rem),
        var(--ed-canvas);
}

.tm-editorial-page .tm-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tm-editorial-page .tm-ed-shell {
    width: min(100%, 1328px);
    margin-inline: auto;
}

.tm-editorial-page .tm-ed-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tm-radius-banner) !important;
    background:
        linear-gradient(118deg, rgba(247, 49, 69, 0.18), transparent 34%),
        linear-gradient(145deg, #09090c 0%, #17131d 62%, #09090c 100%);
    color: #fff;
    box-shadow: var(--ed-shadow);
}

.tm-editorial-page .tm-ed-masthead::before,
.tm-editorial-page .tm-ed-masthead::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50% !important;
    filter: blur(1px);
    pointer-events: none;
}

.tm-editorial-page .tm-ed-masthead::before {
    width: 230px;
    height: 230px;
    top: -128px;
    right: 8%;
    background: var(--ed-purple);
    opacity: 0.26;
}

.tm-editorial-page .tm-ed-masthead::after {
    width: 150px;
    height: 150px;
    right: 22%;
    bottom: -105px;
    background: var(--ed-yellow);
    opacity: 0.72;
}

.tm-editorial-page .tm-ed-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--ed-yellow);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tm-editorial-page .tm-ed-eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: var(--tm-radius-pill) !important;
    background: currentColor;
}

.tm-editorial-page .tm-ed-display {
    max-width: 860px;
    margin: 0;
    color: inherit;
    font-size: clamp(2.12rem, 5.65vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.067em;
    line-height: 0.9;
}

.tm-editorial-page .tm-ed-deck {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.92rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.tm-editorial-page .tm-ed-filter {
    display: flex;
    gap: 8px;
    margin: -2px 0 28px;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.88);
    box-shadow: 0 12px 36px rgba(20, 17, 15, 0.05);
    scrollbar-width: none;
}

.tm-editorial-page .tm-ed-filter::-webkit-scrollbar { display: none; }

.tm-editorial-page .tm-ed-filter-btn {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: var(--tm-radius-pill) !important;
    background: transparent;
    color: var(--ed-muted);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.tm-editorial-page .tm-ed-filter-btn:hover {
    border-color: var(--ed-line);
    color: var(--ed-ink);
}

.tm-editorial-page .tm-ed-filter-btn.is-active {
    background: var(--ed-ink);
    color: #fff;
}

.tm-editorial-page .tm-ed-filter-btn:focus-visible,
.tm-editorial-search .tm-tab-btn:focus-visible,
.tm-editorial-search .tm-search-submit:focus-visible {
    outline: 3px solid var(--ed-yellow);
    outline-offset: 3px;
}

.tm-editorial-page .tm-ed-section-heading {
    margin: 0;
    color: var(--ed-ink);
    font-size: clamp(1.32rem, 2.54vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.tm-editorial-page .tm-ed-status {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(217, 31, 53, 0.25);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, 0.74);
    color: #8e1726;
    font-size: 0.86rem;
}

.tm-editorial-page .tm-btn,
.tm-editorial-page .tm-load-more-btn {
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-page .tm-input,
.tm-editorial-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
.tm-editorial-page select,
.tm-editorial-page textarea {
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-page .animate-pulse .bg-gray-100,
.tm-editorial-page .animate-pulse .bg-gray-200,
.tm-editorial-page .animate-pulse .bg-gray-300,
.tm-editorial-page .animate-pulse .bg-gray-800,
.tm-editorial-page .loading-shimmer {
    overflow: hidden;
    border-radius: var(--tm-radius-control) !important;
}

/* News listing */
.tm-editorial-listing #tm-news-app > .max-w-7xl {
    max-width: 1328px !important;
    padding-top: 28px !important;
}

.tm-editorial-listing .tm-ed-news-hero {
    border: 1px solid var(--ed-line) !important;
    border-radius: var(--tm-radius-banner) !important;
    background: var(--ed-paper);
    box-shadow: var(--ed-shadow) !important;
}

.tm-editorial-listing .tm-ed-news-hero > .relative:first-child {
    overflow: hidden;
    border-radius: var(--tm-radius-banner) 0 0 var(--tm-radius-banner) !important;
}

.tm-editorial-listing .tm-ed-news-hero .absolute.bottom-6.left-6 > div {
    border: 1px solid rgba(12, 12, 15, 0.1);
    border-radius: var(--tm-radius-card) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28) !important;
}

.tm-editorial-listing .tm-ed-news-hero .flex-1.bg-white {
    background: var(--ed-paper) !important;
}

.tm-editorial-listing .tm-ed-news-hero .flex-1.bg-white > a {
    padding: 16px 18px !important;
}

.tm-editorial-listing .tm-ed-news-hero .flex-1.bg-white > a:hover {
    background: #f6f1e9 !important;
}

.tm-editorial-listing .tm-news-feed {
    padding: 4px 22px 20px;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.82);
}

.tm-editorial-listing .tm-news-feed > .divide-y > a {
    margin: 0 -4px;
    padding: 20px 4px !important;
}

.tm-editorial-listing .tm-news-feed > .divide-y > a img {
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-listing .tm-widget,
.tm-editorial-article .tm-widget {
    padding: 20px;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.88);
    box-shadow: 0 12px 34px rgba(25, 20, 18, 0.055);
}

.tm-editorial-listing .tm-widget-title,
.tm-editorial-article .tm-widget-title {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ed-line);
    color: var(--ed-ink);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tm-editorial-listing .tm-rank-num,
.tm-editorial-article .tm-rank-num {
    color: var(--ed-red);
}

.tm-editorial-listing a.block.group.overflow-hidden,
.tm-editorial-listing [x-data^="tmAdSlot"] a,
.tm-editorial-article .tm-widget > a {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-listing .tm-news-feed [role="status"] {
    margin-block: 16px;
    padding: 36px 20px !important;
    border: 1px dashed var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, 0.62);
}

/* Category */
.tm-editorial-category .tm-ed-category-head {
    padding-block: 34px 28px;
}

.tm-editorial-category .tm-ed-category-head .tm-ed-masthead {
    margin-bottom: 0;
    padding-block: clamp(26px, 4vw, 48px);
}

.tm-editorial-category .tm-ed-category-head .tm-ed-display {
    font-size: clamp(2.25rem, 6.6vw, 4.7rem);
}

.tm-editorial-category #tm-cat-page > section:first-of-type {
    background: #09090c !important;
}

.tm-editorial-category #tm-cat-page > section:first-of-type > .max-w-7xl {
    max-width: 1328px !important;
    padding-block: 24px !important;
}

.tm-editorial-category #tm-cat-page > section:first-of-type a[style*="height:520px"] {
    border-radius: var(--tm-radius-banner) !important;
}

.tm-editorial-category .tm-cat-main-layout > div:first-child {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.84);
}

.tm-editorial-category .tm-cat-sidebar > [x-data],
.tm-editorial-category .tm-social-widget {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-category .tm-sp-card {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-category .tm-sp-refresh-btn {
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-category .tm-sp-tab {
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-category .tm-sp-live-badge,
.tm-editorial-category .tm-sp-status {
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-category .tm-sp-card-skel {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-category .tm-sp-sk {
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-category .tm-sp-empty {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, 0.035);
}

.tm-editorial-category .tm-cat-main-layout [role="status"] {
    border: 1px dashed var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, 0.62);
}

.tm-editorial-category #tm-cat-page > section:first-of-type .animate-pulse [style*="background:#1a1a1a"] {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-category .tm-social-widget iframe {
    display: block;
    border-radius: inherit !important;
}

/* Article variants */
.tm-editorial-article #tm-main {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 420px), rgba(12, 12, 15, 0.035) calc(50% - 420px), rgba(12, 12, 15, 0.035) calc(50% - 419px), transparent calc(50% - 419px)),
        var(--ed-canvas);
}

.tm-editorial-article #tm-article-app > [x-show*="article"] > .max-w-7xl,
.tm-editorial-article #tm-article-app > [x-show*="article"] > div > .max-w-7xl {
    max-width: 1260px !important;
    padding-top: 40px !important;
    padding-bottom: 64px !important;
}

.tm-editorial-article article {
    min-width: 0;
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: var(--ed-paper);
    box-shadow: var(--ed-shadow);
}

.tm-editorial-article article > header h1,
.tm-editorial-article article h1 {
    color: var(--ed-ink);
    font-size: clamp(1.88rem, 4.3vw, 4rem) !important;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.98 !important;
    text-wrap: balance;
}

.tm-editorial-article .tm-article-body {
    color: #29272c;
    font-family: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.04rem, 1.45vw, 1.17rem);
    line-height: 1.82;
}

/* The body itself is CMS content (`article.news_body`, injected via x-html), so
   a paragraph pasted from Word or Google Docs can carry its own inline
   `font-family` — which beats a class selector every time. Force every
   descendant onto Graphik so a pasted story can't reintroduce Times New Roman
   or Calibri; the heading rule below then wins back 'Graphik Headings' for
   h2/h3 specifically. */
.tm-editorial-article .tm-article-body * {
    font-family: inherit !important;
}

.tm-editorial-article .tm-article-body p {
    margin-bottom: 1.45em;
}

.tm-editorial-article .tm-article-body h2,
.tm-editorial-article .tm-article-body h3 {
    color: var(--ed-ink);
    font-family: 'Graphik Headings', 'Graphik', system-ui, sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.tm-editorial-article .tm-article-body blockquote {
    margin: 2rem 0;
    padding: 22px 26px;
    border: 0;
    border-left: 5px solid var(--ed-red);
    border-radius: var(--tm-radius-card) !important;
    background: #f2ede5;
    color: var(--ed-ink);
    font-size: 1.12em;
}

.tm-editorial-article .tm-article-body img,
.tm-editorial-article article > div > img {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-article .tm-article-body iframe,
.tm-editorial-article .tm-article-body video,
.tm-editorial-article .tm-article-body embed {
    display: block;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-article .tm-article-editorial-intro,
.tm-editorial-article .tm-article-hero-lede {
    border-radius: var(--tm-radius-card) !important;
    background: #f2ede5;
}

.tm-editorial-article .tm-author-card {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-article .tm-comment-panel {
    margin-top: 34px;
    padding: clamp(18px, 3vw, 30px) !important;
    border-radius: var(--tm-radius-card) !important;
    background: #f6f1ea !important;
}

.tm-editorial-article .tm-comment-panel .tm-input {
    background: #fff;
}

.tm-editorial-article .tm-share-bar .tm-btn {
    min-height: 36px;
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-article [x-show="tags.length"] a,
.tm-editorial-article .tm-section-header > span[x-show="comments.length"] {
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-article article [x-show="imageSrc()"],
.tm-editorial-article [style*="border:1px solid var(--tm-border)"],
.tm-editorial-article [style*="border-left:3px solid var(--tm-primary)"] {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-article #tm-article-app > [role="alert"],
.tm-editorial-article [x-show*="!comments.length"][role="status"],
.tm-editorial-article [x-show="commentSuccess"],
.tm-editorial-article [x-show="commentError"] {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-article #tm-article-app > [role="alert"] {
    margin-top: 32px;
    margin-bottom: 56px;
    border: 1px solid rgba(217, 31, 53, 0.24);
    background: rgba(255, 253, 249, 0.86);
}

.tm-editorial-article [x-text*="charAt(0)"] {
    border-radius: 50% !important;
}

.tm-editorial-article #tm-article-app > [x-show*="article"] > .relative[style*="82vh"] {
    min-height: min(82vh, 820px) !important;
    border-radius: 0 0 var(--tm-radius-banner) var(--tm-radius-banner) !important;
}

.tm-editorial-article #tm-article-app > [x-show*="article"] > .relative[style*="82vh"] h1 {
    color: #fff;
}

.tm-editorial-article #tm-article-app > .animate-pulse > .bg-gray-300 {
    border-radius: 0 0 var(--tm-radius-banner) var(--tm-radius-banner) !important;
}

/* Author */
.tm-editorial-author #tm-main > section {
    border: 0 !important;
    background: transparent !important;
}

.tm-editorial-author .tm-author-shell {
    max-width: 1120px !important;
    padding-top: 36px !important;
    padding-bottom: 72px !important;
}

.tm-editorial-author .tm-author-profile {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
    border: 0 !important;
    border-radius: var(--tm-radius-banner) !important;
    background: #0b0b0e;
    color: #fff;
    box-shadow: var(--ed-shadow);
}

.tm-editorial-author .tm-author-profile::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -58px;
    bottom: -90px;
    border-radius: 50% !important;
    background: var(--ed-yellow);
    opacity: 0.85;
    pointer-events: none;
}

.tm-editorial-author .tm-author-profile > * {
    position: relative;
    z-index: 1;
}

.tm-editorial-author .tm-author-avatar-large {
    width: 76px !important;
    height: 76px !important;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 50% !important;
    background: var(--ed-red) !important;
}

.tm-editorial-author .tm-author-profile h1 { color: #fff; }
.tm-editorial-author .tm-author-profile .tm-meta { color: rgba(255, 255, 255, 0.6); }

.tm-editorial-author .tm-author-results {
    margin-top: 24px;
    padding: 8px 24px 24px;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.85);
}

.tm-editorial-author .tm-author-results a img { border-radius: var(--tm-radius-control) !important; }

.tm-editorial-author .tm-author-results > .text-center {
    margin-top: 16px;
    border: 1px dashed var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, 0.62);
}

/* Search */
.tm-editorial-search .tm-search-hero {
    position: relative;
    overflow: visible;
    padding: clamp(42px, 8vw, 88px) 20px 54px;
    border: 0;
    border-radius: 0 0 var(--tm-radius-banner) var(--tm-radius-banner) !important;
    background:
        radial-gradient(circle at 18% 20%, rgba(247, 49, 69, 0.32), transparent 24rem),
        radial-gradient(circle at 82% 0%, rgba(171, 72, 251, 0.25), transparent 23rem),
        #09090c;
}

.tm-editorial-search .tm-search-hero-copy {
    max-width: 760px;
    margin: 0 auto 26px;
}

.tm-editorial-search .tm-search-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 5.65vw, 4.7rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 0.92;
}

.tm-editorial-search .tm-search-hero-copy p {
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.62);
}

.tm-editorial-search .tm-search-box-wrap {
    max-width: 760px;
}

.tm-editorial-search .tm-search-input {
    min-height: 60px;
    padding-left: 22px;
    padding-right: 74px;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: var(--tm-radius-control) !important;
    background: #fff;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

.tm-editorial-search .tm-search-submit {
    top: 7px;
    right: 7px;
    bottom: 7px;
    width: 50px;
    min-height: 46px;
    padding: 0;
    border-radius: var(--tm-radius-control) !important;
    background: var(--ed-red);
}

.tm-editorial-search .tm-suggestions {
    top: calc(100% + 8px);
    overflow: hidden;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    box-shadow: var(--ed-shadow);
}

.tm-editorial-search .tm-tab-bar {
    position: sticky;
    top: var(--tm-nav-height, 68px);
    z-index: 25;
    border-bottom: 1px solid var(--ed-line);
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(16px);
}

.tm-editorial-search .tm-tab-bar > div {
    gap: 5px;
    padding-block: 8px;
}

.tm-editorial-search .tm-tab-btn {
    border: 0;
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-search .tm-tab-btn.active {
    border-color: transparent;
    background: var(--ed-ink);
    color: #fff;
}

.tm-editorial-search .tm-tab-btn.active .count {
    background: var(--ed-yellow);
    color: var(--ed-ink);
}

.tm-editorial-search .tm-tab-btn .count,
.tm-editorial-search .tm-suggestion-badge,
.tm-editorial-search .tm-chart-badge {
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-search #tm-search-results-shell {
    max-width: 1120px !important;
    padding-top: 34px !important;
    padding-bottom: 70px !important;
}

.tm-editorial-search .tm-search-section {
    padding: 22px;
    border: 1px solid var(--ed-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.86);
}

.tm-editorial-search .tm-result-thumb,
.tm-editorial-search .tm-chart-thumb {
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-search .tm-result-video-item,
.tm-editorial-search .tm-result-event-card {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-search .tm-result-event-card {
    border-color: var(--ed-line);
}

.tm-editorial-search .tm-result-event-date {
    overflow: hidden;
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-search .tm-result-video-grid {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-search .tm-empty-state {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-search #tm-search-results-shell > .animate-pulse [style*="background:#e5e5e5"] {
    overflow: hidden;
    border-radius: var(--tm-radius-control) !important;
}

/* Saved library */
.tm-editorial-library #tm-main > [x-data^="bookmarksApp"] {
    background: transparent !important;
}

.tm-editorial-library #tm-main > [x-data^="bookmarksApp"] > .max-w-7xl {
    max-width: 1240px !important;
    padding-top: 38px !important;
    padding-bottom: 72px !important;
}

.tm-editorial-library .tm-library-head {
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--tm-radius-banner) !important;
    background: #0b0b0e;
    color: #fff;
    box-shadow: var(--ed-shadow);
}

.tm-editorial-library .tm-library-head h1 { color: #fff; }
.tm-editorial-library .tm-library-head p { color: rgba(255, 255, 255, 0.58); }

.tm-editorial-library .tm-library-head input {
    min-width: min(280px, 70vw);
    border-color: rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--tm-radius-control) !important;
    background: #fff !important;
}

.tm-editorial-library .tm-library-head > :last-child {
    flex-wrap: wrap;
}

.tm-editorial-library .tm-auto-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--tm-radius-pill) !important;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tm-editorial-library .tm-library-stats > div {
    border-color: var(--ed-line) !important;
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 253, 249, 0.86) !important;
    box-shadow: 0 12px 30px rgba(25, 20, 18, 0.045);
}

.tm-editorial-library .bm-collection-card {
    width: 100%;
    border-color: var(--ed-line) !important;
    border-radius: var(--tm-radius-card) !important;
    background: var(--ed-paper) !important;
    color: var(--ed-ink);
    text-align: left;
}

.tm-editorial-library .bm-collection-card:focus-visible,
.tm-editorial-library .tm-bookmark-title:focus-visible {
    outline: 3px solid rgba(247, 49, 69, 0.42);
    outline-offset: 3px;
}

.tm-editorial-library .bm-bookmark-item,
.tm-editorial-library .bm-grid-item {
    border-color: var(--ed-line) !important;
    border-radius: var(--tm-radius-card) !important;
    background: var(--ed-paper) !important;
}

.tm-editorial-library .tm-bookmark-title {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.tm-editorial-library .tm-bookmark-title:hover { color: var(--ed-red); }

.tm-editorial-library .search-highlight,
.tm-editorial-library mark.search-highlight {
    padding: 0 2px;
    border-radius: var(--tm-radius-control) !important;
    background: var(--ed-yellow);
    color: var(--ed-ink);
}

.tm-editorial-library .loading-shimmer {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-library [x-show*="!hasMatchingCollections"],
.tm-editorial-library [x-show*="totalBookmarks === 0"] > .bg-white,
.tm-editorial-library [x-show*="filteredBookmarks.length === 0"] > .bg-white {
    border-radius: var(--tm-radius-card) !important;
}

.tm-editorial-library [x-show*="!hasMatchingCollections"] {
    border: 1px dashed var(--ed-line);
    background: rgba(255, 255, 255, 0.62);
}

.tm-editorial-library .bm-grid-item > .relative,
.tm-editorial-library .bm-bookmark-item > .overflow-hidden {
    border-radius: var(--tm-radius-control) !important;
}

.tm-editorial-library .bm-grid-item .absolute span.rounded,
.tm-editorial-library .bm-bookmark-item span.rounded-full {
    border-radius: var(--tm-radius-pill) !important;
}

.tm-editorial-library button[aria-label^="Back"],
.tm-editorial-library button[aria-label^="Remove"],
.tm-editorial-library button[aria-label^="Show bookmarks"] {
    border-radius: 50% !important;
}

@media (max-width: 1023px) {
    .tm-editorial-listing .tm-ed-news-hero > .relative:first-child {
        border-radius: var(--tm-radius-banner) var(--tm-radius-banner) 0 0 !important;
    }

    .tm-editorial-article article {
        padding: clamp(20px, 5vw, 38px);
    }
}

@media (max-width: 767px) {
    .tm-editorial-page .tm-ed-masthead {
        padding: 30px 22px;
        border-radius: var(--tm-radius-banner) !important;
    }

    .tm-editorial-page .tm-ed-display {
        font-size: clamp(2.2rem, 13.2vw, 3.95rem);
    }

    .tm-editorial-listing #tm-news-app > .max-w-7xl {
        padding-inline: 16px !important;
    }

    .tm-editorial-listing .tm-ed-news-hero {
        min-height: 0 !important;
        border-radius: var(--tm-radius-banner) !important;
    }

    .tm-editorial-listing .tm-ed-news-hero > .relative:first-child {
        min-height: 430px !important;
    }

    .tm-editorial-listing .tm-ed-news-hero .absolute.bottom-6.left-6 {
        right: 14px !important;
        bottom: 14px !important;
        left: 14px !important;
        width: auto !important;
    }

    .tm-editorial-listing .tm-news-feed {
        padding-inline: 14px;
    }

    .tm-editorial-listing .tm-news-feed > .divide-y > a {
        gap: 12px;
    }

    .tm-editorial-listing .tm-news-feed > .divide-y > a > div:first-child {
        width: 112px !important;
        height: 84px !important;
    }

    .tm-editorial-category .tm-cat-main-layout > div:first-child,
    .tm-editorial-search .tm-search-section {
        padding: 14px;
        border-radius: var(--tm-radius-card) !important;
    }

    .tm-editorial-article #tm-article-app > [x-show*="article"] > .max-w-7xl,
    .tm-editorial-article #tm-article-app > [x-show*="article"] > div > .max-w-7xl {
        padding-inline: 12px !important;
        padding-top: 18px !important;
    }

    .tm-editorial-article article {
        border-radius: var(--tm-radius-card) !important;
        box-shadow: 0 16px 42px rgba(25, 20, 18, 0.08);
    }

    .tm-editorial-search .tm-search-hero {
        padding-inline: 16px;
    }

    .tm-editorial-search .tm-tab-bar > div {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tm-editorial-library .tm-library-head {
        border-radius: var(--tm-radius-banner) !important;
    }

    .tm-editorial-library .tm-library-head > :last-child {
        width: 100%;
    }

    .tm-editorial-library .tm-library-head > :last-child .relative {
        min-width: 0;
        flex: 1 1 210px;
    }

    .tm-editorial-library .tm-library-head input {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-editorial-page *,
    .tm-editorial-page *::before,
    .tm-editorial-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
