/* ============================================================
   WARKINI THEME — news theme for Varient CMS (CI4 + Bootstrap 5)
   Visual language inspired by kumparan.com:
   merah #DC1641 · ink #0D0D0D · Heebo (UI/headline) + PT Serif (body)
   Semua class baru memakai prefix "wrk-" (aturan §1 playbook).
   ============================================================ */

@import url("../../../common/css/plugins.css");
@import url("../../../common/css/common.css");

:root {
    --wrk-red: #dc1641;
    --wrk-red-dark: #b01134;
    --wrk-teal: #038383;
    --wrk-ink: #0d0d0d;
    --wrk-gray-700: #606060;
    --wrk-gray-500: #787878;
    --wrk-gray-400: #a0a0a0;
    --wrk-line: #eeeeee;
    --wrk-line-2: #ededed;
    --wrk-bg-light: #f6f8fc;

    --wrk-sans: Heebo, var(--vr-font-primary, ui-sans-serif), system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrk-serif: "PT Serif", Georgia, "Times New Roman", serif;

    --vr-theme-color: #dc1641;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body.wrk-body {
    margin: 0;
    background: #fff;
    color: var(--wrk-ink);
    font-family: var(--wrk-sans);
}
body.wrk-body button { color: inherit; }
body.wrk-body img { display: block; max-width: 100%; }

/* Stroke icons only inside wrk components */
.wrk-search-bar svg, .wrk-action-home svg, .wrk-more-nav svg,
.wrk-section-heading > a svg, .wrk-btn-load-more svg,
.wrk-mega-links button svg {
    fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

.wrk-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrk-text-end { text-align: end; }
@media (max-width: 780px) { .wrk-shell { width: calc(100% - 30px); } }

a { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--wrk-sans); }

:focus-visible { outline: 3px solid rgba(220, 22, 65, .45); outline-offset: 3px; }

/* ---------- Brand ---------- */
.wrk-brand-mark {
    display: inline-block;
    color: var(--wrk-ink);
    font-family: var(--wrk-sans);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
}
.wrk-brand-mark span { color: var(--wrk-red); }

.wrk-kicker {
    color: var(--wrk-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: var(--wrk-sans);
}

/* ============================================================
   HEADER
   ============================================================ */
.wrk-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--wrk-line);
    backdrop-filter: blur(12px);
}
.wrk-masthead {
    min-height: 68px;
    display: flex; align-items: center; gap: 26px;
}
.wrk-menu-button { width: 36px; height: 36px; display: grid; align-content: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; flex-shrink: 0; }
.wrk-menu-button span { width: 22px; height: 2px; display: block; background: var(--wrk-ink); border-radius: 2px; transition: width 200ms ease; }
.wrk-menu-button span:nth-child(2) { width: 15px; }
.wrk-menu-button[aria-expanded="true"] span { width: 22px; }

.wrk-brand-link { flex-shrink: 0; }

.wrk-search-bar {
    flex: 1; min-width: 120px; max-width: 480px;
    display: flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 16px;
    background: var(--wrk-bg-light);
    border: 1px solid transparent; border-radius: 999px;
    transition: border-color 150ms ease, background 150ms ease;
}
.wrk-search-bar:focus-within { border-color: var(--wrk-red); background: #fff; }
.wrk-search-bar svg { width: 17px; height: 17px; color: var(--wrk-gray-500); flex-shrink: 0; }
.wrk-search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-family: var(--wrk-sans); font-size: 13.5px; color: var(--wrk-ink); }
.wrk-search-bar input::placeholder { color: var(--wrk-gray-400); }

.wrk-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
.wrk-action-home { display: grid; place-items: center; width: 34px; height: 34px; color: var(--wrk-ink); }
.wrk-action-home svg { width: 20px; height: 20px; }
.wrk-action-home:hover { color: var(--wrk-red); }
.wrk-login-link { font-size: 13.5px; font-weight: 600; color: var(--wrk-ink); white-space: nowrap; }
.wrk-login-link:hover { color: var(--wrk-red); }
.wrk-cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 0 18px;
    background: var(--wrk-red); color: #fff !important;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
    transition: background 150ms ease;
}
.wrk-cta-btn:hover { background: var(--wrk-red-dark); color: #fff; }
.wrk-user-dropdown > a.dropdown-toggle::after { border-top-color: var(--wrk-ink); }
.wrk-dropdown-menu { border-radius: 10px; border-color: var(--wrk-line); box-shadow: 0 18px 44px rgba(13,13,13,.12); }
.wrk-dropdown-menu .dropdown-item:hover { background: var(--wrk-bg-light); }

/* Category nav */
.wrk-category-nav { border-top: 1px solid var(--wrk-line); }
.wrk-category-scroll { height: 44px; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.wrk-category-scroll::-webkit-scrollbar { display: none; }
.wrk-category-scroll button {
    position: relative; flex: 0 0 auto;
    padding: 0 16px; border: 0; background: transparent;
    color: #333c43; cursor: pointer;
    font-family: var(--wrk-sans); font-size: 13px; font-weight: 500;
}
.wrk-category-scroll button:hover { color: var(--wrk-red); }
.wrk-category-scroll button.active { color: var(--wrk-red); font-weight: 700; }
.wrk-category-scroll button.active::after {
    content: ""; position: absolute; right: 15px; bottom: 0; left: 15px;
    height: 3px; border-radius: 3px 3px 0 0; background: var(--wrk-red);
}
.wrk-more-nav { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--wrk-gray-700) !important; }
.wrk-more-nav svg { width: 14px; height: 14px; }

/* Mega menu */
.wrk-mega-menu {
    position: absolute; top: 100%; right: 0; left: 0;
    padding: 30px 0 34px;
    background: #fff;
    border-bottom: 1px solid var(--wrk-line);
    box-shadow: 0 28px 50px rgba(13,13,13,.12);
}
.wrk-header { overflow: visible; }
.wrk-mega-grid { display: grid; grid-template-columns: 1.6fr .7fr; gap: 48px; }
.wrk-mega-menu[hidden] { display: none; }
.wrk-mega-links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 24px; }
.wrk-mega-links button {
    min-height: 42px; display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--wrk-line);
    background: transparent; cursor: pointer;
    font-family: var(--wrk-sans); font-size: 14.5px; font-weight: 500; text-align: left;
}
.wrk-mega-links button svg { width: 15px; height: 15px; color: var(--wrk-gray-400); }
.wrk-mega-links button:hover { color: var(--wrk-red); }
.wrk-mega-about { padding-left: 28px; border-left: 1px solid var(--wrk-line); }
.wrk-mega-about > p { margin: 0 0 10px; color: var(--wrk-red); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wrk-mega-about ul { margin: 0; padding: 0; list-style: none; }
.wrk-mega-about ul a { display: block; padding: 5px 0; color: var(--wrk-gray-700); font-size: 13px; }
.wrk-mega-about ul a:hover { color: var(--wrk-red); }
.wrk-mega-close { margin-top: 16px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--wrk-ink); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }

main { min-height: 45vh; padding-bottom: 40px; }

/* Breaking bar */
.wrk-breaking { background: var(--wrk-bg-light); border-bottom: 1px solid var(--wrk-line); }
.wrk-breaking-inner { min-height: 44px; display: flex; align-items: center; gap: 12px; }
.wrk-breaking-label {
    flex-shrink: 0; padding: 3px 10px; border-radius: 3px;
    background: var(--wrk-red); color: #fff;
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
}
.wrk-breaking p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.wrk-breaking p a { color: inherit; }
.wrk-breaking p a:hover { color: var(--wrk-red); }
.wrk-breaking-time { margin-left: auto; color: var(--wrk-gray-500); flex-shrink: 0; font-size: 11px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.wrk-section-heading {
    min-height: 52px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--wrk-line); margin-bottom: 18px;
}
.wrk-section-heading h2 { position: relative; margin: 0; color: var(--wrk-ink); font-size: clamp(19px, 2vw, 23px); font-weight: 800; letter-spacing: -.01em; }
.wrk-red-bar { display: inline-block; width: 4px; height: 19px; margin-right: 11px; border-radius: 2px; background: var(--wrk-red); vertical-align: -2px; }
.wrk-section-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--wrk-gray-500); font-size: 12px; font-weight: 600; }
.wrk-section-heading > a:hover { color: var(--wrk-red); }
.wrk-section-heading > a svg { width: 15px; height: 15px; }

/* ============================================================
   HERO + TRENDING RAIL
   ============================================================ */
.wrk-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .95fr); gap: 40px; padding-top: 28px; }
.wrk-hero-story { display: block; }
.wrk-hero-image { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #e8e8e8; aspect-ratio: 16/8.2; }
.wrk-hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.wrk-hero-story:hover .wrk-hero-image img { transform: scale(1.03); }
.wrk-hero-copy { padding-top: 18px; }
.wrk-hero-copy h2 { margin: 12px 0 10px; }
.wrk-hero-copy h2 a { color: var(--wrk-ink); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.wrk-hero-copy h2 a:hover { color: var(--wrk-red); }
.wrk-hero-copy > p { margin: 0; color: var(--wrk-gray-700); font-family: var(--wrk-serif); font-size: 15.5px; line-height: 1.55; }

.wrk-story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--wrk-gray-500); font-size: 12px; }
.wrk-story-meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--wrk-ink); font-weight: 600; }
.wrk-story-meta a:hover { color: var(--wrk-red); }
.wrk-story-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--wrk-red); }

/* Trending rail */
.wrk-trending-rail { align-self: start; }
.wrk-trending-list { margin: 0; padding: 0; list-style: none; counter-reset: wrkrank; }
.wrk-trending-list li { border-bottom: 1px solid var(--wrk-line); }
.wrk-trending-list li:last-child { border-bottom: 0; }
.wrk-trending-list li button {
    width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 10px;
    padding: 15px 0; border: 0; background: transparent; cursor: pointer; text-align: left;
}
.wrk-trending-list li button > span {
    color: var(--wrk-red);
    font-size: 25px; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.wrk-trending-list li small { display: block; margin-bottom: 3px; color: var(--wrk-red); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wrk-trending-list li h3 { margin: 0; color: var(--wrk-ink); font-size: 15.5px; font-weight: 700; line-height: 1.28; }
.wrk-trending-list li button:hover h3 { color: var(--wrk-red); }

.wrk-briefs { margin-top: 6px; border-top: 1px solid var(--wrk-line); }
.wrk-brief-story { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--wrk-line); background: transparent; cursor: pointer; text-align: left; }
.wrk-brief-story small { color: var(--wrk-red); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wrk-brief-story h3 { margin: 5px 0 0; color: var(--wrk-ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.wrk-brief-story:hover h3 { color: var(--wrk-red); }
.wrk-empty-mini { padding: 22px 0; color: var(--wrk-gray-500); font-size: 13.5px; }

/* ============================================================
   FEED TERKINI (kartu horizontal ala kumparan)
   ============================================================ */
.wrk-feed-section { padding-top: 46px; }
.wrk-feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.wrk-feed { min-width: 0; }

.wrk-feed-story {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--wrk-line);
}
.wrk-feed-story:first-child { padding-top: 4px; }
.wrk-feed-copy { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; display: block; }
.wrk-feed-copy .title { margin: 0 0 8px; }
.wrk-feed-copy .title a { color: var(--wrk-ink); font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.22; }
.wrk-feed-copy .title a:hover { color: var(--wrk-red); }
.wrk-feed-copy .description { max-width: 640px; margin: 0 0 12px; color: var(--wrk-gray-700); font-family: var(--wrk-serif); font-size: 14px; line-height: 1.5; }

.wrk-feed-image { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #e8e8e8; width: 240px; height: 158px; }
.wrk-feed-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.wrk-feed-story:hover .wrk-feed-image img { transform: scale(1.04); }

.post-item-no-image .wrk-feed-copy { grid-column: 1 / -1; }

/* Empty states */
.wrk-empty-state { padding: 64px 28px; background: var(--wrk-bg-light); border-radius: 12px; text-align: center; }
.wrk-empty-state span { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 700; color: var(--wrk-ink); }
.wrk-empty-state a { color: var(--wrk-red); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--wrk-red); }

/* ============================================================
   KATEGORI SECTION (viral / trending / olahraga / selebriti)
   ============================================================ */
.wrk-cat-section { padding-top: 52px; }
.wrk-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.wrk-grid-cell { min-width: 0; }

.wrk-cat-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 36px; }
.wrk-cat-feature { display: block; }
.wrk-cat-feature-image { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16/9; background: #e8e8e8; margin-bottom: 14px; }
.wrk-cat-feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.wrk-cat-feature:hover .wrk-cat-feature-image img { transform: scale(1.03); }
.wrk-cat-feature h3 { margin: 8px 0 10px; }
.wrk-cat-feature h3 a { color: var(--wrk-ink); font-size: 23px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.wrk-cat-feature h3 a:hover { color: var(--wrk-red); }
.wrk-cat-list { min-width: 0; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.wrk-newsletter { margin-top: 56px; background: var(--wrk-red); color: #fff; }
.wrk-newsletter-inner { min-height: 200px; display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: 70px; padding-top: 34px; padding-bottom: 34px; }
.wrk-newsletter-inner > div > p:first-child { margin: 0 0 10px; color: rgba(255,255,255,.85); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.wrk-newsletter h2 { max-width: 520px; margin: 0; color: #fff; font-size: clamp(23px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.wrk-newsletter-form > label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.9); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wrk-newsletter-form > div { display: grid; grid-template-columns: 1fr auto; }
.wrk-newsletter-form input[name="email"] {
    min-width: 0; height: 48px; padding: 0 16px;
    border: 1px solid var(--wrk-red-dark); border-right: 0; border-radius: 999px 0 0 999px;
    background: #fff; outline: 0; font-family: var(--wrk-sans); font-size: 14px; color: var(--wrk-ink);
}
.wrk-newsletter-form input[name="email"].is-invalid { border-color: var(--wrk-ink); box-shadow: inset 0 0 0 2px var(--wrk-ink); }
.wrk-newsletter-form button[type="submit"] {
    height: 48px; padding: 0 22px; border: 0; border-radius: 0 999px 999px 0;
    background: var(--wrk-ink); color: #fff; cursor: pointer;
    font-family: var(--wrk-sans); font-size: 12.5px; font-weight: 800;
}
.wrk-newsletter-form small { display: block; margin-top: 8px; color: rgba(255,255,255,.75); font-size: 10.5px; }

/* ============================================================
   FOOTER (terang, gaya kumparan)
   ============================================================ */
.wrk-footer { margin-top: 56px; background: var(--wrk-bg-light); border-top: 1px solid var(--wrk-line); color: var(--wrk-ink); }
.wrk-footer-main { display: grid; grid-template-columns: 1.3fr .6fr .6fr 1.1fr; gap: 48px; padding: 48px 0 40px; }
.wrk-footer-brand .wrk-brand-mark { font-size: 32px; }
.wrk-footer-brand > p { margin: 10px 0 16px; color: var(--wrk-gray-500); font-size: 12.5px; }
.wrk-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.wrk-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 1px solid var(--wrk-line); color: var(--wrk-gray-700);
    transition: all 150ms ease;
}
.wrk-footer-social a:hover { background: var(--wrk-red); border-color: var(--wrk-red); color: #fff; }
.wrk-footer-social a svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.wrk-footer-main > div:not(.wrk-footer-brand):not(.wrk-footer-statement) > span:first-child {
    display: block; margin-bottom: 14px;
    color: var(--wrk-red); font-size: 10px; font-weight: 800; letter-spacing: .1em;
}
.wrk-footer-main a:not(.wrk-brand-link) { display: block; width: fit-content; margin: 8px 0; color: var(--wrk-gray-700); font-size: 13px; }
.wrk-footer-main a:not(.wrk-brand-link):hover { color: var(--wrk-red); }
.wrk-footer-statement { padding-left: 26px; border-left: 1px solid var(--wrk-line-2); }
.wrk-footer-statement > span { display: block; margin-bottom: 12px; color: var(--wrk-red); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.wrk-footer-statement p { margin: 0; font-family: var(--wrk-serif); font-size: 16.5px; line-height: 1.5; }

.wrk-footer-network { border-top: 1px solid var(--wrk-line-2); padding: 20px 0; }
.wrk-footer-network > .wrk-shell > span { display: block; margin-bottom: 10px; color: var(--wrk-gray-400); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; }
.wrk-footer-network div:not(.wrk-shell) { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.wrk-footer-network a { color: var(--wrk-gray-700); font-size: 12.5px; font-weight: 600; margin: 0; }
.wrk-footer-network a:hover { color: var(--wrk-red); }

.wrk-footer-bottom { min-height: 54px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--wrk-line-2); color: var(--wrk-gray-400); font-size: 11.5px; }

/* ============================================================
   GENERIC PAGE / ARTICLE / LISTING
   ============================================================ */
.wrk-page-section { padding-top: 28px; padding-bottom: 40px; }
.wrk-page-title { margin: 6px 0 18px; color: var(--wrk-ink); font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; }

.wrk-article .wrk-edit-link { float: right; color: var(--wrk-red); font-size: 12px; font-weight: 700; border-bottom: 1px dashed var(--wrk-red); }
.wrk-article-title { margin: 12px 0; color: var(--wrk-ink); font-size: clamp(29px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; clear: none; }
.wrk-article-summary { color: var(--wrk-gray-700); font-family: var(--wrk-serif); font-size: 17.5px; line-height: 1.55; }
.wrk-article-meta { margin: 6px 0 14px; font-size: 12.5px; }
.wrk-share-row { border-top: 1px solid var(--wrk-line); border-bottom: 1px solid var(--wrk-line); padding: 10px 0; margin-bottom: 22px; }
.wrk-article-body { font-family: var(--wrk-serif); font-size: 17px; line-height: 1.78; color: #23282d; overflow-wrap: break-word; }
.wrk-article-body img { height: auto; }
.wrk-article-body a { color: var(--wrk-red); text-decoration: underline; }
.wrk-post-page .wrk-article-body { margin-top: 22px; }

.wrk-btn-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--wrk-ink); border-radius: 999px; background: #fff; color: var(--wrk-ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.wrk-btn-outline:hover { background: var(--wrk-bg-light); color: var(--wrk-red); border-color: var(--wrk-red); }
.wrk-btn-solid { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--wrk-red); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.wrk-btn-solid:hover { background: var(--wrk-red-dark); color: #fff; }
.wrk-btn-solid.is-following { background: var(--wrk-gray-400); }

.wrk-post-tags { display: flex; align-items: center; flex-wrap: wrap; }
.wrk-post-tags .title { margin: 0; color: var(--wrk-gray-700); font-family: var(--wrk-sans); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wrk-post-tags ul li a { display: inline-block; padding: 6px 14px; background: var(--wrk-bg-light); border-radius: 999px; color: var(--wrk-ink); font-size: 12px; font-weight: 600; }
.wrk-post-tags ul li a:hover { background: var(--wrk-red); color: #fff; }

.wrk-related-card .title a { color: var(--wrk-ink); font-size: 15px; font-weight: 700; line-height: 1.3; }
.wrk-related-card .title a:hover { color: var(--wrk-red); }
.wrk-related-card img { width: 100%; object-fit: cover; border-radius: 10px; }

.wrk-adjacent .title a { color: var(--wrk-ink); font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.wrk-adjacent .title a:hover { color: var(--wrk-red); }
.wrk-adjacent .wrk-kicker { display: block; }

.wrk-author-box { display: flex; gap: 18px; margin-top: 34px; padding: 24px; background: var(--wrk-bg-light); border-radius: 12px; }
.wrk-author-box img { border-radius: 50%; object-fit: cover; }
.wrk-author-box .username a { color: var(--wrk-ink); font-size: 16.5px; font-weight: 800; }
.wrk-author-box .username a:hover { color: var(--wrk-red); }
.wrk-author-box .description { margin: 8px 0 10px; color: var(--wrk-gray-700); font-size: 13.5px; line-height: 1.55; }

/* Author box social links partial compatibility */
.wrk-author-box .social-links a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; margin-right: 6px; border-radius: 50%; color: #fff; background: var(--wrk-ink); }
.wrk-author-box .social-links a:hover { background: var(--wrk-red); }

/* ============================================================
   LISTING GRID + CARDS (compat dengan common AJAX views)
   ============================================================ */
.wrk-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 8px; }
.wrk-listing-main { min-width: 0; }
.wrk-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-top: 10px; }
.wrk-posts-grid .post-item-horizontal.wrk-feed-story { grid-column: 1 / -1; }

.post-item { position: relative; margin-bottom: 34px; }
.badge-category {
    display: inline-block; position: relative; z-index: 2;
    padding: 4px 11px; border-radius: 999px;
    background: var(--wrk-red); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.category-link:hover { text-decoration: none; }
.post-item > .badge-category { position: absolute; left: 12px; top: 12px; margin: 0; }
.post-item-no-image > .badge-category { position: relative; inset: auto; margin-bottom: 12px; }
.post-item .image.ratio { display: block; --bs-aspect-ratio: 62%; overflow: hidden; border-radius: 10px; background: var(--wrk-bg-light); }
.post-item .image.ratio img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.post-item:hover .image.ratio img { transform: scale(1.04); }
.post-item .title, .post-item-horizontal .title, .post-item-small .title { margin: 10px 0 6px; }
.post-item .title a, .post-item-small .title a { color: var(--wrk-ink); font-size: 17.5px; font-weight: 700; line-height: 1.28; }
.post-item .title a:hover, .post-item-horizontal .title a:hover, .post-item-small .title a:hover { color: var(--wrk-red); }
.section-related-posts .post-item-small .title a { font-size: 14.5px; }
.post-item .description { color: var(--wrk-gray-700); font-family: var(--wrk-serif); font-size: 13.5px; line-height: 1.5; }

.post-item-small { margin-bottom: 22px; }
.post-item-small .image { position: relative; width: 110px; height: 78px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: var(--wrk-bg-light); }
.post-item-small .image img { width: 100%; height: 100%; object-fit: cover; }
.post-item-small .title a { font-size: 14.5px; line-height: 1.32; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--wrk-gray-400); font-size: 11.5px; letter-spacing: .01em; font-family: var(--wrk-sans); }
.post-meta .meta-item .a-username { color: var(--wrk-gray-700); font-weight: 700; font-size: 12px; }
.post-meta .meta-item .a-username:hover { color: var(--wrk-red); }

.media-icon, .media-sm {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(13,13,13,.72); color: #fff; pointer-events: none;
}
.media-sm { width: 30px; height: 30px; }

.wrk-follower-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wrk-follower-list img { border-radius: 50%; object-fit: cover; }

.wrk-contact-form .form-input { border-radius: 10px; border-color: var(--wrk-line); padding: 12px 14px; font-size: 14px; }
.wrk-contact-form .form-input:focus { border-color: var(--wrk-red); box-shadow: none; outline: 0; }
.wrk-contact-info p { margin-bottom: 16px; font-family: var(--wrk-serif); font-size: 15px; }
.wrk-contact-info p strong { display: block; color: var(--wrk-red); font-family: var(--wrk-sans); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

/* Gallery */
.wrk-gallery-item { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: var(--wrk-ink); }
.wrk-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease, opacity 300ms ease; }
.wrk-gallery-item:hover img { transform: scale(1.04); opacity: .85; }
.wrk-gallery-overlay { position: absolute; z-index: 2; right: 18px; bottom: 16px; left: 18px; color: #fff; }
.wrk-gallery-overlay span { color: #fff; background: var(--wrk-red); display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wrk-gallery-overlay h3 { margin: 8px 0 0; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.filter-container .btn-filter { border-radius: 999px; border: 1px solid var(--wrk-line); background: #fff; color: var(--wrk-gray-700); font-size: 12px; font-weight: 600; margin: 0 6px 8px 0; }
.filter-container .btn-filter.active, .filter-container .btn-filter:hover { background: var(--wrk-red); border-color: var(--wrk-red); color: #fff; }

/* Pagination + load more */
.wrk-pager .pagination { gap: 6px; }
.wrk-pager .page-link { border-radius: 8px !important; border-color: var(--wrk-line); color: var(--wrk-ink); font-weight: 600; font-size: 13px; }
.wrk-pager .active .page-link { background: var(--wrk-red); border-color: var(--wrk-red); color: #fff; }
.wrk-btn-load-more {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 46px; padding: 0 26px;
    border: 1px solid var(--wrk-line); border-radius: 999px;
    background: #fff; color: var(--wrk-ink);
    font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: all 150ms ease;
}
.wrk-btn-load-more svg { width: 15px; height: 15px; }
.wrk-btn-load-more:hover { border-color: var(--wrk-red); color: var(--wrk-red); background: #fff; }
.search-load-more-container .btn-load-more-posts {
    border: 1px solid var(--wrk-line); background: #fff; color: var(--wrk-ink);
    border-radius: 999px; min-height: 46px; padding: 0 26px;
    font-size: 12.5px; font-weight: 700;
}
.search-load-more-container .btn-load-more-posts:hover { border-color: var(--wrk-red); color: var(--wrk-red); }

/* Subcategory pills (common partial memakai markup Swiper) */
.swiper { overflow: hidden; position: relative; }
.swiper-wrapper { display: flex; flex-wrap: nowrap; position: relative; width: 100%; }
.swiper-slide { flex-shrink: 0; }
.subcategory-pill { padding: 7px 16px; border: 1px solid var(--wrk-line); border-radius: 999px; background: #fff; color: var(--wrk-ink); font-size: 12.5px; font-weight: 600; }
.subcategory-pill:hover, .subcategory-pill.active { background: var(--wrk-red); border-color: var(--wrk-red); color: #fff; }

/* Share buttons sizing */
.btn-social-share { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; }
.share-flex-wrapper .right .btn-light { border-radius: 50%; }

/* Emoji reactions */
.reaction-wrapper-title { font-family: var(--wrk-sans); }
.reaction-grid { gap: 10px; }

/* Widgets */
.wrk-widget { background: #fff; border: 1px solid var(--wrk-line); border-radius: 12px; padding: 20px; margin-bottom: 22px; }
.wrk-widget-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--wrk-line); padding-bottom: 10px; }
.wrk-widget-title h2 { position: relative; margin: 0; color: var(--wrk-ink); font-size: 15.5px; font-weight: 800; }
.wrk-widget-title h2::before { content: ""; display: inline-block; width: 4px; height: 15px; margin-right: 9px; border-radius: 2px; background: var(--wrk-red); vertical-align: -2px; }
.wrk-widget-context { margin-left: auto; color: var(--wrk-gray-400); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.wrk-follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wrk-follow-btn { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: #fff; font-size: 11.5px; font-weight: 700; }
.wrk-follow-btn:hover { color: #fff; opacity: .92; }
.wrk-follow-btn svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* Profile page */
.wrk-profile-head { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 26px 0; border-bottom: 3px solid var(--wrk-red); margin-bottom: 10px; }
.wrk-profile-avatar { border-radius: 50%; object-fit: cover; border: 3px solid var(--wrk-red); }

/* Comments compat */
.editor-textarea { border: 1px solid var(--wrk-line); border-radius: 10px; }
.editor-textarea:focus { border-color: var(--wrk-red); box-shadow: none; }
.input-minimal { border: 1px solid var(--wrk-line); border-radius: 10px; }
.load-more-btn { border: 1px solid var(--wrk-line); background: #fff; color: var(--wrk-ink); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 8px 20px; }

/* Breadcrumb (common partial) */
.breadcrumb { font-size: 11.5px; letter-spacing: .02em; font-family: var(--wrk-sans); }
.breadcrumb a { color: var(--wrk-gray-700); font-weight: 600; }
.breadcrumb a:hover { color: var(--wrk-red); }
.breadcrumb-item.active { color: var(--wrk-gray-400); }

/* ---------- Widget Popular Tags (cell common: ul.tag-list) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { list-style: none; }
.tag-list a { display: inline-block; padding: 6px 13px; background: var(--wrk-bg-light); border-radius: 999px; color: var(--wrk-gray-700); font-size: 12px; font-weight: 600; line-height: 1.4; }
.tag-list a:hover { background: var(--wrk-red); color: #fff; }

/* ---------- Widget poll (cell common #sidebar-poll-widget) — selaraskan tipografi ---------- */
.wrk-widget #sidebar-poll-widget .widget-head { display: none; }
.wrk-widget #sidebar-poll-widget .poll-question { margin: 0 0 12px; font-family: var(--wrk-sans); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.wrk-widget #sidebar-poll-widget .poll-option { font-family: var(--wrk-sans); font-size: 13px; }
.wrk-widget #sidebar-poll-widget .result-meta span { font-family: var(--wrk-sans); font-size: 12.5px; }
.wrk-widget #sidebar-poll-widget .poll-footer-text { font-family: var(--wrk-sans); font-size: 11.5px; }

/* ---------- Kartu pertama Recommended di sidebar: proporsional ---------- */
.wrk-widget .post-item { margin-bottom: 18px; }
.wrk-widget .post-item .title a { font-size: 16px; }
.wrk-widget .post-item .description { font-size: 13px; }

/* ---------- Sembunyikan widget kosong (poll tanpa data / follow-us tanpa link) ---------- */
.wrk-widget:not(:has(> :not(.wrk-widget-title):not(script):not(style))) { display: none; }

/* Alerts */
.alert { border-radius: 10px; }

/* ---------- V2 additions (ads, widgets, compact newsletter) ---------- */
.wrk-ad-slot { margin: 0 0 22px; text-align: center; min-height: 1px; }
.wrk-ad-slot--wide { min-height: 90px; }
.wrk-pop-list { margin: 0; padding: 0; list-style: none; }
.wrk-pop-list li { border-bottom: 1px solid var(--wrk-line); }
.wrk-pop-list li:last-child { border-bottom: 0; }
.wrk-pop-list li button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 13px 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.wrk-pop-list li button > span { color: var(--wrk-red); font-size: 21px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wrk-pop-list li h3 { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--wrk-ink); }
.wrk-pop-list li small { display: block; margin-top: 3px; color: var(--wrk-gray-400); font-size: 10px; }
.wrk-pop-list li button:hover h3 { color: var(--wrk-red); }
.wrk-newsletter-form--compact > div { display: grid; grid-template-columns: 1fr auto; }
.wrk-newsletter-form--compact input[name="email"] { height: 44px; border: 1px solid var(--wrk-line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--wrk-bg-light); }
.wrk-newsletter-form--compact button[type="submit"] { height: 44px; border-radius: 0 999px 999px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1050px) {
    .wrk-hero { grid-template-columns: 1fr; gap: 30px; }
    .wrk-trending-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
    .wrk-briefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
    .wrk-feed-layout, .wrk-listing-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
    .wrk-cat-split { grid-template-columns: 1fr 1fr; }
    .wrk-mega-grid { grid-template-columns: 1.5fr .8fr; }
}

@media (max-width: 780px) {
    /* Masthead mobile: brand absolut di tengah, search disembunyikan (pakai ikon via mega menu) */
    .wrk-masthead { min-height: 58px; gap: 0; position: relative; justify-content: space-between; }
    .wrk-brand-link {
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }
    .wrk-brand-mark { font-size: 27px; }
    .wrk-search-bar { display: none; }
    .wrk-header-actions { gap: 8px; }
    .wrk-login-link { display: none; }
    .wrk-cta-btn { min-height: 33px; padding: 0 13px; font-size: 11px; }
    .wrk-action-home { width: 30px; height: 30px; }
    .wrk-user-dropdown img { width: 30px; height: 30px; }
    .wrk-breaking-time { display: none; }
    .wrk-category-scroll { width: calc(100% - 15px); margin-left: 15px; }

    .wrk-hero { padding-top: 18px; }
    .wrk-hero-image { aspect-ratio: 16/10; }
    .wrk-trending-list { grid-template-columns: 1fr; }
    .wrk-briefs { grid-template-columns: 1fr; }

    .wrk-feed-layout, .wrk-listing-layout { grid-template-columns: 1fr; padding-bottom: 40px; }
    .wrk-feed-story { grid-template-columns: minmax(0, 1fr) 124px; gap: 14px; padding: 16px 0; }
    .wrk-feed-copy .title a { font-size: 17.5px; }
    .wrk-feed-copy .description { display: none; }
    .wrk-feed-image { width: 124px; height: 96px; border-radius: 8px; }

    .wrk-card-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .wrk-cat-split { grid-template-columns: 1fr; }
    .wrk-cat-feature h3 a { font-size: 19px; }

    .wrk-newsletter-inner { grid-template-columns: 1fr; gap: 26px; }
    .wrk-footer-main { grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 38px; }
    .wrk-footer-brand { grid-column: 1 / -1; }
    .wrk-footer-statement { grid-column: 1 / -1; padding: 24px 0 0; border-top: 1px solid var(--wrk-line-2); border-left: 0; }
    .wrk-footer-bottom { display: block; padding: 16px 0; }
    .wrk-footer-bottom span { display: block; margin: 4px 0; }

    .wrk-mega-menu { max-height: calc(100vh - 100px); overflow-y: auto; }
    .wrk-mega-grid { grid-template-columns: 1fr; gap: 24px; }
    .wrk-mega-links { grid-template-columns: 1fr; }
    .wrk-mega-about { padding-left: 0; border-left: 0; }

    .wrk-posts-grid { grid-template-columns: 1fr; }
    .wrk-posts-grid .post-item-horizontal.wrk-feed-story { grid-column: auto; }
    .wrk-article-body { font-size: 16px; }
}

@media (max-width: 420px) {
    .wrk-card-grid { grid-template-columns: 1fr; }
    .wrk-feed-story { grid-template-columns: minmax(0, 1fr) 104px; }
    .wrk-feed-image { width: 104px; height: 86px; }
    .wrk-story-meta { flex-wrap: wrap; }
    .wrk-brand-mark { font-size: 24px; }
    .wrk-cta-btn { display: none; }
}

/* == Jejaring premium (r2) == */
.wrk-netwrap { display:flex; flex-direction:column; align-items:center; text-align:center; padding-block:30px; }
.wrk-net-title { display:inline-flex; align-items:center; gap:8px; font-weight:800; letter-spacing:.16em;
 font-size:12px; text-transform:uppercase; color:#fff; opacity:.92; }
.wrk-net-title svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; }
.wrk-net-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:18px; max-width:980px; }
.wrk-net-grid a { display:inline-flex; align-items:center; gap:8px; padding:9px 16px;
 border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.05);
 color:inherit; font-size:13.5px; font-weight:600; transition:.2s ease; }
.wrk-net-grid a svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; opacity:.75; }
.wrk-net-grid a small { opacity:.55; font-weight:400; font-size:11px; letter-spacing:.02em; }
.wrk-net-grid a:hover { transform:translateY(-2px); background:rgba(255,255,255,.12);
 border-color:currentColor; box-shadow:0 8px 20px rgba(0,0,0,.25); }
@media (max-width:575px){ .wrk-net-grid a small { display:none; } }
