/* data.vsin.com standalone header. Values mirror the vsin.com Newspaper theme header blocks so the
   logo, account icon and Subscribe button line up with vsin.com. Theme block ids noted for reference. */

/* Sticky header. The whole header (main bar plus gray link bar, or the mobile bar) stays pinned; once the page scrolls
   it gets a shadow (.is-stuck).
   vsin_header.php keeps --vh-header-h set to the header's current height, for scroll-padding and for page elements
   that stick under it (use top: var(--vh-header-h) instead of top: 0). */
.vh { position: sticky; top: 0; z-index: 1000; font-family: 'Roboto', sans-serif; letter-spacing: normal; }
html { scroll-padding-top: calc(var(--vh-header-h, 84px) + 8px); }
.vh.is-stuck .vh-desk, .vh.is-stuck .vh-mob { box-shadow: 0 2px 12px rgba(0,0,0,.10); }
.vh.is-stuck .vh-desk { border-bottom-color: #ddd; }
.vh *, .vh *::before, .vh *::after { box-sizing: border-box; }
.vh ul { list-style: none; margin: 0; padding: 0; }
/* No underlines anywhere in the header, even if a site stylesheet loaded later underlines a:hover */
.vh a, .vh a:hover, .vh a:focus, .vh a:active { text-decoration: none !important; }
/* Visited links keep the header's own colors. A site rule like a:visited{color:#000} outranks a plain class rule,
   so each link class repeats its color for :visited here; the hover and current-page rules further down still win. */
.vh-menu > .vh-item > .vh-link:visited { color: #111; }
.vh-dd-link:visited { color: #1a1a1a; }
.vh-subbar-link:visited { color: #111; }
.vh-subbar-more-list a:visited { color: #1a1a1a; }
.vh-more-list > .vh-item > .vh-link:visited { color: #1a1a1a; }
.vd-link:visited { color: #111; }
.vd-sub .vd-link:visited { color: #222; }
.vh-subscribe:visited { color: #fff; }
.vh-getpro:visited { color: #000; }
.vh-mob-login:visited { color: #ab1601; }
.piano-header-login-dropdown-options a:visited, .piano-header-login-dropdown-logout a:visited { color: #222; }
.piano-header-login-dropdown-options a.btn-fill:visited { color: #fff; }
.piano-header-login-dropdown-options a.btn-trans:visited { color: #ba1601; }
.vd-btn-line:visited { color: #ba1601; }
.vh img { display: block; max-width: 100%; height: auto; }
.vh [hidden] { display: none !important; }

/* Desktop bar (theme zone tdi_30, row tdi_32). The row is 1420px wide on vsin.com (measured), centered */
.vh-desk { background: #fff; border-bottom: 1px solid #eaeaea; }
.vh-row { display: flex; align-items: stretch; max-width: 1420px; margin: 0 auto; padding: 0; }
.vh-col { display: flex; align-items: center; min-width: 0; }

/* Column widths measured off vsin.com: 222 / 902 / 295 px of a 1420px row (15.634 / 63.521 / 20.845%) */
.vh-col-logo { flex: 0 0 15.634%; justify-content: center; border-left: 1px solid #eaeaea; }
.vh-col-menu { flex: 0 0 63.521%; justify-content: center; border-left: 1px solid #eaeaea; border-right: 1px solid #eaeaea; }
.vh-col-account { flex: 0 0 20.845%; justify-content: center; border-right: 1px solid #eaeaea; gap: 19px; }

/* Logo (tdi_35): 120px wide, 10px above and below, nudged 5px left */
.vh-logo { display: block; padding: 10px 0; margin-left: -5px; }
.vh-logo img { width: 120px; max-width: 120px; }

/* Menu (tdi_39): Roboto 14/500 (vsin.com sets 700 on the link but 500 on the text div inside it, which is what renders), 80px bar, 0.5px tracking, 0 10px padding, 10px between items.
   vsin.com centers the menu together with its search icon, so padding-right holds that space open (45.5px, matched by eye
   against vsin.com at 1900px; the words shift left by half of it) and the items line up with vsin.com. */
.vh-nav { width: 100%; display: flex; justify-content: center; }
.vh-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; width: max-content; padding-right: 45.5px !important; }
.vh-item { position: relative; }
.vh-menu > .vh-item > .vh-link {
    display: block; position: relative; padding: 0 10px; line-height: 80px; white-space: nowrap;
    font-size: 14px; font-weight: 500; letter-spacing: .5px; text-transform: capitalize; color: #111; cursor: pointer;
    top: 1px; /* nudges the text 1px down to sit level with vsin.com */
}

.vh-menu > .vh-item:hover > .vh-link,
.vh-menu > .vh-item:focus-within > .vh-link,
.vh-menu > .vh-item.is-section > .vh-link,
.vh-menu > .vh-item.is-section > .vh-link:visited { color: #af0101; }
/* Like vsin.com: hover turns the text red, with no underline */
.vh-more > .vh-link { display: flex !important; align-items: center; height: 80px; }
.vh-more svg { fill: currentColor; }

/* Dropdowns. The first level hangs under its top item; each entry with children opens a flyout beside it,
   to any depth. A short open delay keeps them from flashing as the mouse crosses the bar. */
.vh-drop {
    position: absolute; top: 100%; left: 0; z-index: 1001; padding: 8px 0; min-width: 250px;
    background: #fff; border-top: 3px solid var(--vsin-red, #ba1601); border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06); text-align: left;
    visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none;
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.vh-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 14px; }
.vh-menu > .vh-item:hover > .vh-drop, .vh-menu > .vh-item:focus-within > .vh-drop {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .14s ease .08s, transform .14s ease .08s, visibility 0s linear .08s;
}
.vh-menu > .vh-more > .vh-drop { left: auto; right: 0; }

.vh-dd { margin: 0; padding: 0; }
.vh-dd-item { position: relative; }
.vh-dd-link {
    display: flex; align-items: center; gap: 10px; margin: 0 8px; padding: 8px 12px; border-radius: 6px;
    border-left: 3px solid transparent; white-space: nowrap;
    font-size: 14px; font-weight: 500; line-height: 1.3; color: #1a1a1a; letter-spacing: normal;
}
.vh-dd-link .vh-ic { width: 20px; text-align: center; font-size: 14px; color: var(--c, #3a3f47); }
.vh-logo-ic { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.vh-dd-link .vh-lbl { flex: 1 1 auto; }
.vh-chev { margin-left: 14px; font-size: 10px; color: #555; transition: transform .12s ease; }
.vh-dd-item:hover > .vh-dd-link, .vh-dd-item.is-on > .vh-dd-link, .vh-dd-link:focus-visible {
    background: #f3f4f6; border-left-color: var(--c, #14181f); color: #111;
}
.vh-dd-item.is-on > .vh-dd-link .vh-chev { transform: translateX(2px); color: #111; }
.vh-dd-link.is-current { color: #af0101; font-weight: 600; }
.vh-dd-link.is-ancestor { font-weight: 600; }
a.vh-dd-link:not([href]) { cursor: default; }

/* Group labels and dividers */
.vh-head {
    margin: 8px 8px 4px; padding: 5px 12px; border-radius: 4px; background: #1f242c;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.vh-dd > .vh-head:first-child { margin-top: 2px; }
.vh-sep { height: 1px; margin: 7px 18px; background: #e3e5e8; }

/* Flyouts beside their entry */
.vh-fly {
    display: none; position: absolute; top: -11px; left: calc(100% + 2px); z-index: 1002; min-width: 260px; padding: 8px 0;
    background: #fff; border-radius: 8px; border-top: 3px solid var(--c, #14181f);
    box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.06);
}
.vh-fly::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
.vh-dd-item.is-on > .vh-fly, .vh-dd-item:focus-within > .vh-fly { display: block; }
.vh-dd-item.fly-left > .vh-fly { left: auto; right: calc(100% + 2px); }
.vh-dd-item.fly-left > .vh-fly::before { left: auto; right: -12px; }

/* Badges: PRO VSiN red with white text, NEW green, LIVE dark with a red dot */
.vh-badge {
    display: inline-block; margin-left: 2px; padding: 2px 6px; border-radius: 3px; flex: 0 0 auto;
    font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.3;
}
.vh-badge-pro { background: var(--vsin-red, #ba1601); color: #fff; }
.vh-badge-new { background: #15803d; color: #fff; }
.vh-badge-live { background: #111; color: #fff; }
.vh-badge-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #e11d1d; vertical-align: 1px; }

/* Top items moved into the ... overflow menu show as plain rows */
.vh-more-list > .vh-item { position: relative; }
.vh-more-list > .vh-item > .vh-link {
    display: block; margin: 0 8px; padding: 8px 12px; border-radius: 6px; white-space: nowrap;
    font-size: 14px; font-weight: 600; color: #1a1a1a; letter-spacing: normal;
}
.vh-more-list > .vh-item > .vh-link:hover { color: #af0101; background: #f3f4f6; }
.vh-more-list .vh-drop { display: none !important; }

/* Secondary bar (vsin.com tdi_48/56): light gray band of quick links, centered, uppercase like vsin.com.
   Links that don't fit move into a MORE dropdown at the end (vsin_header.php script), the way vsin.com does it.
   Desktop and tablet only, like vsin.com. */
.vh-subbar { background: #f4f4f4; border-top: 1px solid #eaeaea; }
.vh-subbar-list {
    display: flex; align-items: center; max-width: 1420px; margin: 0 auto !important; padding: 0 6px 0 10px !important;
    white-space: nowrap;
}
/* auto margins center the links when they fit */
.vh-subbar-list > li:first-child { margin-left: auto; }
.vh-subbar-list > li:last-child { margin-right: auto; }
/* vsin.com (tdi_56): Open Sans 14px / 500 uppercase. Its spacing settings are blank, so it uses the theme's menu defaults:
   14px padding each side, no gap between links, 48px line height. */
.vh-subbar-link {
    display: flex; align-items: center; gap: 7px; padding: 0 14px; line-height: 48px;
    font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 500; color: #111; letter-spacing: normal; text-transform: uppercase;
}
.vh-subbar-link .vh-ic, .vh-subbar-link .vh-logo-ic { color: #333; }
/* Vertical nudge for the bar's own links (not the MORE dropdown). Bigger top = lower text; half pixels work too. */
.vh-subbar-list > li > .vh-subbar-link { position: relative; top: 1px; }
/* vsin.com: bar links hover in VSiN red (#ba1601); links inside the MORE dropdown use the darker #af0101 */
.vh-subbar-list > li > .vh-subbar-link:hover, .vh-subbar-list > li > .vh-subbar-link.is-current { color: #ba1601; }
.vh-subbar-more { position: relative; }
.vh-subbar-more > .vh-subbar-link { cursor: pointer; background: none; border: 0; font-family: inherit; }
.vh-subbar-more > .vh-subbar-link svg { margin-left: 2px; fill: currentColor; }
.vh-subbar-more-list {
    display: none; position: absolute; top: 100%; right: 0; z-index: 1001; min-width: 230px; margin: 0 !important; padding: 8px !important;
    background: #fff; border-top: 3px solid var(--vsin-red, #ba1601); border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06); text-align: left;
}
.vh-subbar-more:hover > .vh-subbar-more-list, .vh-subbar-more:focus-within > .vh-subbar-more-list { display: block; }
.vh-subbar-more-list .vh-subbar-link {
    line-height: 1.3; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #1a1a1a; text-transform: none;
}
.vh-subbar-more-list .vh-subbar-link:hover { background: #f3f4f6; color: #af0101; }
@media (min-width: 1019px) and (max-width: 1140px) { .vh-subbar-link { font-size: 13px; padding: 0 11px; line-height: 44px; } }
@media (min-width: 768px) and (max-width: 1018px) { .vh-subbar-link { font-size: 12px; padding: 0 9px; line-height: 40px; } }

/* Account (tdi_44/45): Piano profile icon and its dropdown */
.piano-header-login { position: relative; cursor: pointer; outline: none; }
.piano-header-login-profile-logo img { width: 31px; height: 31px; }
.piano-header-login-dropdown {
    display: none; position: absolute; top: 100%; right: -20px; z-index: 1002; width: 230px; margin-top: 12px; padding: 16px;
    background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.15); border-radius: 4px; text-align: left; font-size: 14px; color: #222;
}
.piano-header-login-dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.piano-header-login:hover .piano-header-login-dropdown, .piano-header-login:focus-within .piano-header-login-dropdown { display: block; }
.piano-header-login-dropdown-greeting { font-weight: 700; margin-bottom: 12px; }
.piano-header-login-dropdown-options { display: flex; gap: 8px; flex-wrap: wrap; }
.piano-header-login-dropdown-options a { flex: 1; display: block; padding: 8px 10px; border-radius: 4px; text-align: center; font-weight: 700; font-size: 13px; color: #222; border: 1px solid #ccc; }
.piano-header-login-dropdown-options a.btn-fill { background: #ba1601; border-color: #ba1601; color: #fff; }
.piano-header-login-dropdown-options a.btn-trans { color: #ba1601; border-color: #ba1601; }
.piano-header-login-dropdown-logout { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eaeaea; }
.piano-header-login-dropdown-logout a { color: #222; font-weight: 700; font-size: 13px; }
.piano-header-login-dropdown-logout a:hover { color: #af0101; }

/* Subscribe (tdi_47): teal, 158 x 55, 5px radius, white 12px bold text, 14px gap before the arrow */
.vh-subscribe {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 158px; height: 55px; padding: 0; border-radius: 5px;
    background: #0aa0ab; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.vh-subscribe svg { margin-left: 14px; fill: currentColor; }
.vh-subscribe:hover { filter: brightness(1.08); color: #fff; }

/* Landscape tablet (1019-1140): row loses its side padding, menu tightens to 13px */
@media (min-width: 1019px) and (max-width: 1140px) {
    .vh-row { padding: 0; }
    .vh-menu { gap: 8px; padding-right: 43px !important; }
    .vh-menu > .vh-item > .vh-link { font-size: 13px; padding: 0 8px; }
}

/* Portrait tablet (768-1018): logo column 20%, account column 22% stacked, 12px menu on a 60px line */
@media (min-width: 768px) and (max-width: 1018px) {
    .vh-row { padding: 0 15px; }
    .vh-col-logo { flex: 0 1 20%; }
    .vh-col-menu { flex: 0 1 75%; }
    .vh-logo { margin-left: -2px; }
    .vh-col-account { flex: 0 1 22%; flex-direction: column; gap: 8px; padding: 8px 0; }
    .vh-menu { gap: 6px; padding-right: 33px !important; }
    .vh-menu > .vh-item > .vh-link { font-size: 12px; padding: 0 6px; line-height: 60px; }
    .vh-more > .vh-link { height: 60px; }
    .vh-subscribe { width: auto; height: 40px; padding: 0 18px; }
}

/* Mobile bar (tdi_4..14): hamburger + 90px logo on the left 40%, GET PRO + LOG IN on the right 60% */
.vh-mob { display: none; }
@media (max-width: 767px) {
    .vh-desk { display: none; }
    .vh-mob { display: flex; align-items: center; padding: 3px; background: #fff; border-bottom: 1px solid #eaeaea; }
    .vh-mob-left { flex: 0 1 40%; display: flex; align-items: center; margin-left: 5px; }
    .vh-mob-right { flex: 0 1 60%; display: flex; align-items: center; justify-content: flex-end; margin-right: 8px; min-width: 0; }
    .vh-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; padding: 3px; margin: 0; border: 0; background: none; cursor: pointer; }
    .vh-burger span { display: block; height: 3px; border-radius: 2px; background: var(--vsin-red, #ba1601); }
    .vh-mob-logo { margin-left: 8px; }
    .vh-mob-logo img { width: 90px; }
    .vh-getpro { display: inline-block; margin-right: 10px; padding: 0 14px; line-height: 31px; border-radius: 5px; background: var(--cta-blue, #0aa0ab); color: #000; font-size: 12px; font-weight: 800; white-space: nowrap; }
    .vh-mob-login { display: inline-block; padding: 7px 18px; border: 1px solid #ab1601; border-radius: 3px; color: #ab1601; font-size: 12px; font-weight: 800; line-height: 15px; white-space: nowrap; }
}

/* Mobile drawer */
.vd-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.45); }
.vd {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 10001; width: 88%; max-width: 340px; overflow-y: auto;
    background: #fff; box-shadow: 2px 0 16px rgba(0,0,0,.2); -webkit-overflow-scrolling: touch;
}
html.vd-open, html.vd-open body { overflow: hidden; }
.vd-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #eaeaea; }
.vd-logo img { width: 80px; }
.vd-close { width: 36px; height: 36px; border: 0; background: none; font-size: 30px; line-height: 1; color: #222; cursor: pointer; }
.vd-account { padding: 14px; border-bottom: 1px solid #eaeaea; background: #f6f6f6; }
.vd-account-name { font-weight: 700; font-size: 15px; color: #111; margin-bottom: 10px; }
.vd-account-buttons { display: flex; gap: 8px; }
.vd-btn { flex: 1; display: block; padding: 9px 10px; border-radius: 4px; text-align: center; font-weight: 700; font-size: 13px; }
.vd-btn-fill { background: #ba1601; color: #fff !important; }
.vd-btn-line { border: 1px solid #ba1601; color: #ba1601 !important; background: #fff; }
.vd-menu { padding: 6px 0 30px !important; }
.vd-item { border-bottom: 1px solid #f0f0f0; }
.vd-sub .vd-item { border-bottom: 0; }
.vd-link { display: block; padding: 13px 18px; font-size: 15px; font-weight: 700; color: #111; cursor: pointer; }
.vd-sub { padding: 0 0 8px 12px !important; }
.vd-sub .vd-link { padding: 9px 18px; font-size: 14px; font-weight: 500; color: #222; }
.vd-item.is-current > .vd-link, .vd-item.is-current > details > .vd-link { color: #af0101; }
.vd summary { list-style: none; position: relative; padding-right: 44px; }
.vd summary::-webkit-details-marker { display: none; }
.vd summary::after {
    content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); transition: transform .15s;
}
.vd details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.vd-overview .vd-link { color: #af0101; }
