/* HaydeMag 5.0 / Premium Studio. Loaded after all earlier styles for upgrade compatibility. */
:root { --hd-v5-ink:#111a35; --hd-v5-glow:rgba(94,83,243,.10); --hd-v5-shadow:0 18px 50px rgba(22,33,77,.075); }
body.haydemag-v5 { background:#f7f9fd; letter-spacing:-.005em; }
body.haydemag-v5 a { -webkit-tap-highlight-color:transparent; }
:root[data-theme="dark"] body.haydemag-v5 { background:var(--bg); }
.haydemag-v5 .topbar { background:#10192d; }
.haydemag-v5 .brandbar { min-height:103px; }
.haydemag-v5 .site-header { background:var(--surface); }
.haydemag-v5 .nav-shell { border-top:0; box-shadow:0 8px 35px rgba(22,27,67,.055); }
.haydemag-v5 .nav-inner { min-height:62px; }
.haydemag-v5 .primary-menu>li>a { font-size:12px; font-weight:820; }
.haydemag-v5 .search-toggle { background:linear-gradient(135deg,var(--accent),#9c72f6); border-radius:13px; min-width:44px; box-shadow:0 7px 15px rgba(100,83,245,.16); }
.haydemag-v5 .home-main { padding-top:24px; }
.haydemag-v5 .news-ticker { border-radius:15px; box-shadow:none; }
.haydemag-v5 .topic-rail-links a { border-radius:100px; padding:10px 17px; font-weight:730; }
.haydemag-v5 .home-intro { padding-top:50px; padding-bottom:32px; }
.haydemag-v5 .home-intro h1 { font-size:clamp(42px,4.7vw,66px);line-height:1.055;font-weight:880; letter-spacing:-.074em; max-width:850px; }
.haydemag-v5 .home-intro p { max-width:690px; font-size:15px; line-height:1.75; }
.haydemag-v5 .home-intro .eyebrow { display:inline-flex;align-items:center;gap:8px;letter-spacing:.13em; }
.haydemag-v5 .featured-grid { gap:18px; grid-template-rows:250px 250px; }
.haydemag-v5 .featured-item { border-radius:24px; outline:1px solid rgba(255,255,255,.08); box-shadow:var(--hd-v5-shadow); }
.haydemag-v5 .featured-item-1 .featured-copy { padding:32px; }
.haydemag-v5 .featured-item-1 .featured-copy h3 { line-height:1.13; letter-spacing:-.065em; font-size:clamp(29px,3vw,44px); }
.haydemag-v5 .featured-item:not(.featured-item-1) .featured-copy h3 { font-weight:820;line-height:1.22;letter-spacing:-.045em; }
.haydemag-v5 .featured-chip { background:rgba(255,255,255,.92);color:#222842;font-size:9px;font-weight:850;border:1px solid rgba(255,255,255,.2); }
.haydemag-v5 .featured-item-1:after { background:#fff;color:#222842;letter-spacing:.07em; }
.haydemag-v5 .home-content-layout { margin-top:74px; }
.haydemag-v5 .section-heading h2 { font-size:32px; font-weight:850; }
.haydemag-v5 .story-card { border:1px solid rgba(136,150,175,.15);box-shadow:0 6px 28px rgba(36,47,86,.035);border-radius:20px; }
.haydemag-v5 .story-card .story-image img { object-fit:cover; }
.haydemag-v5 .story-card .story-body { padding:19px 20px 22px; }
.haydemag-v5 .story-title { letter-spacing:-.043em; }
.haydemag-v5 .story-card:hover { box-shadow:0 20px 38px rgba(40,52,100,.105); }
.haydemag-v5 .category-module { margin-top:78px; }
.haydemag-v5 .site-sidebar .widget, .haydemag-v5 .site-sidebar .sidebar-block { border-radius:20px;box-shadow:none; }
.haydemag-v5 .article-header h1 { letter-spacing:-.065em; }
.haydemag-v5 .article-content { font-size:17px;line-height:1.92; }
.haydemag-v5 .article-content h2 { letter-spacing:-.04em; }
.haydemag-v5 .site-footer { border-top:0;background:#121b33; }
.hd-announce { background:linear-gradient(105deg,#4d4de4,#745bed 50%,#9263e7);color:#fff;font-size:12px;font-weight:650; }
.hd-announce-inner { display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px;padding:7px 0; }
.hd-announce-inner>a { color:white;text-decoration:underline;text-underline-offset:3px;font-weight:800;white-space:nowrap; }
.hd-announce-symbol { display:grid;place-items:center;width:21px;height:21px;border-radius:6px;background:#ffffff32; }
.hd-announce-dismiss { display:grid;place-items:center;width:24px;height:24px;margin-left:auto;border:0;color:#fff;background:#ffffff22;border-radius:7px;font-size:20px;line-height:1;cursor:pointer; }
.hd-author-profile { display:flex;align-items:start;gap:16px;margin:45px 0 25px;padding:22px;border:1px solid var(--border);border-radius:19px;background:var(--surface); }
.hd-author-profile img { width:56px;height:56px;border-radius:50%; }
.hd-author-profile span { display:block;color:var(--accent);font-weight:850;letter-spacing:.09em;font-size:10px; }
.hd-author-profile h3 { font-size:18px;letter-spacing:-.035em;margin:5px 0 7px; }
.hd-author-profile p { color:var(--muted);margin:0;font-size:13px;line-height:1.65; }
:root[data-theme="dark"] .haydemag-v5 .featured-chip { background:#282a48;color:#fff; }
@media(min-width:768px) {
 .haydemag-v5 .story-card .story-image { border-radius:18px 18px 0 0;overflow:hidden; }
 .haydemag-v5 .featured-item:hover { transform:translateY(-3px);transition:transform .25s ease; }
 .haydemag-v5 .topic-rail-links a:hover { transform:translateY(-2px); }
}
@media(max-width:767px) {
 body.haydemag-v5 { background:#f7f8fc; }
 .haydemag-v5 .hd-appbar { background:color-mix(in srgb,var(--surface) 91%,transparent);border-bottom:1px solid color-mix(in srgb,var(--border) 72%,transparent);backdrop-filter:blur(24px) saturate(1.5);-webkit-backdrop-filter:blur(24px) saturate(1.5); }
 .haydemag-v5 .hd-appbar-inner { min-height:62px; }
 .haydemag-v5 .hd-app-brand-icon { background:linear-gradient(135deg,#6b5cfb,#9a6be8);border-radius:13px;box-shadow:0 5px 16px rgba(100,83,245,.18); }
 .haydemag-v5 .hd-app-wordmark { letter-spacing:-.075em; font-weight:900; }
 .haydemag-v5 .hd-app-icon { border-radius:13px; }
 .haydemag-v5 .hd-app-menu { background:var(--surface-alt); }
 .haydemag-v5 .news-ticker { margin-top:8px; border-radius:12px; background:var(--surface); }
 .haydemag-v5 .topic-rail { margin-top:15px; }
 .haydemag-v5 .topic-rail-links a { box-shadow:0 1px 1px rgba(30,36,76,.02); border:1px solid var(--border); }
 .haydemag-v5 .home-intro { padding:26px 0 23px; }
 .haydemag-v5 .home-intro h1 { font-size:clamp(32px,8.4vw,43px);line-height:1.09;margin:12px 0 12px;max-width:460px;letter-spacing:-.072em; }
 .haydemag-v5 .home-intro p { font-size:12.5px;line-height:1.6; }
 .haydemag-v5 .featured-grid, .haydemag-v5.hd-hero-equal .featured-grid,.haydemag-v5.hd-hero-immersive .featured-grid { gap:11px;grid-template-rows:clamp(305px,81vw,400px) 176px; }
 .haydemag-v5 .featured-item { border-radius:19px;box-shadow:0 6px 20px rgba(12,18,47,.07); }
 .haydemag-v5 .featured-item-1 .featured-copy { padding:24px; }
 .haydemag-v5 .featured-item-1 .featured-copy h3 { font-size:clamp(25px,6.5vw,35px);line-height:1.12; }
 .haydemag-v5 .featured-item:not(.featured-item-1) .featured-copy h3 { font-size:14px;line-height:1.25; }
 .haydemag-v5 .featured-chip { font-size:8px; }
 .haydemag-v5 .home-content-layout { margin-top:42px; }
 .haydemag-v5 .section-heading { padding-bottom:12px; }
 .haydemag-v5 .section-heading h2 { font-size:26px; }
 .haydemag-v5 .feed-toolbar { background:transparent; }
 .haydemag-v5 .stories-grid { gap:10px; }
 .haydemag-v5 .stories-grid.is-list .story-card,.haydemag-v5.hd-mobile-app .stories-grid.is-list .story-card { border-radius:18px;padding:12px;grid-template-columns:minmax(0,1fr) 120px;min-height:140px;background:var(--surface);box-shadow:0 3px 20px rgba(21,34,74,.035); }
 .haydemag-v5 .stories-grid.is-list .story-card .story-image { min-height:113px;border-radius:13px; }
 .haydemag-v5 .stories-grid.is-list .story-card .story-body { padding:0 0 0 3px; }
 .haydemag-v5 .stories-grid.is-list .story-card .story-title { font-size:15px;line-height:1.36; }
 .haydemag-v5 .stories-grid.is-list .story-card .post-meta { font-size:10px; }
 .haydemag-v5 .stories-grid.is-list .story-card .hd-save-story { top:11px;right:12px; }
 .haydemag-v5 .category-module { margin-top:51px; }
 .haydemag-v5 .category-articles .story-card { border-radius:17px; }
 .haydemag-v5 .bottom-navigation-placeholder { height:80px; }
 .haydemag-v5 .hd-bottom-nav { left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));border-radius:23px;border:1px solid color-mix(in srgb,var(--border) 75%,transparent);background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:0 10px 40px rgba(23,29,65,.16); }
 .haydemag-v5 .hd-bottom-item { border-radius:16px;font-size:10px;gap:3px; }
 .haydemag-v5 .hd-bottom-item.is-active { background:linear-gradient(130deg,rgba(98,84,245,.14),rgba(159,116,247,.08));color:var(--accent); }
 .haydemag-v5 .hd-bottom-item svg { width:21px;height:21px; }
 .haydemag-v5 .hd-mobile-sheet { border-radius:28px 28px 0 0; }
 .haydemag-v5 .hd-category-directory-item { border:1px solid var(--border); }
 .haydemag-v5 .article-page { padding-top:24px; }
 .haydemag-v5 .article-header h1 { font-size:clamp(31px,8.2vw,43px); }
 .haydemag-v5 .article-content { font-size:16px;line-height:1.85; }
 .haydemag-v5 .hd-author-profile { padding:15px;gap:12px; }
 .haydemag-v5 .hd-announce-inner { justify-content:start;gap:8px;min-height:43px; }
 .haydemag-v5 .hd-announce { font-size:11px; }
 .haydemag-v5 .hd-announce-inner>span:nth-child(2) { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 .haydemag-v5 .hd-announce-inner>a { font-size:10px; }
 .haydemag-v5 .hd-announce-dismiss { margin-left:auto;flex-shrink:0; }
}
@media(max-width:375px) { .haydemag-v5 .stories-grid.is-list .story-card,.haydemag-v5.hd-mobile-app .stories-grid.is-list .story-card { grid-template-columns:minmax(0,1fr) 102px; gap:10px; } .haydemag-v5 .stories-grid.is-list .story-card .story-title { font-size:13px; } }
@media(prefers-reduced-motion:reduce) { .haydemag-v5 *, .haydemag-v5 *::before, .haydemag-v5 *::after { scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important; } }
