/* HeyLink.me Blog: Ghost theme mirroring the WordPress Newspaper (tagDiv) layout of blog.heylink.me */
:root {
    --accent: #343498;
    --footer: #3a3aa9;
    --link: #1e73be;
    --text: #222;
    --muted: #777;
    --rule: #ededed;
    --title: 'Work Sans', Arial, sans-serif;
    --heading: Roboto, Arial, sans-serif;
    --meta: 'Open Sans', Arial, sans-serif;
    --body: Verdana, Geneva, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.74 var(--body); color: var(--text); background: #fff; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1068px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top-bar { background: var(--accent); font: 500 11px/28px var(--title); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-menu a { color: #fff; margin-right: 16px; }
.top-social { display: flex; gap: 2px; }
.top-social .social { color: #fff; width: 24px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.top-social svg { width: 12px; height: 12px; }

/* Header */
.header-main { display: flex; justify-content: space-between; align-items: center; min-height: 130px; gap: 24px; }
.site-logo img { width: 284px; max-width: 100%; }
.header-promo img { width: 728px; max-width: 100%; }
.nav-bar { border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule); }
.nav-inner { display: flex; align-items: center; position: relative; }
.nav-toggle, .nav-logo { display: none; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.main-menu > li { position: relative; }
.main-menu > li > a { display: block; padding: 0 14px; font: 500 13px/48px var(--title); text-transform: uppercase; color: #000; }
.main-menu > li:first-child > a { padding-left: 0; }
.main-menu > li > a:hover { color: var(--link); }
.has-sub > a::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-3px) rotate(45deg); }
.sub-menu, .mega-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); border-top: 2px solid var(--link); }
.sub-menu { list-style: none; margin: 0; padding: 10px 0; min-width: 200px; }
.sub-menu a { display: block; padding: 6px 24px; font: 13px/1.5 var(--title); color: #111; }
.mega-menu { width: 1020px; padding: 20px; gap: 20px; grid-template-columns: repeat(5, 1fr); }
.main-menu > li:hover > .sub-menu { display: block; }
.main-menu > li:hover > .mega-menu { display: grid; }
.has-mega:nth-child(n+4) .mega-menu { left: auto; right: -300px; }
.mega-post { display: block; color: #111; font: 500 13px/1.4 var(--title); }
.mega-thumb { display: block; aspect-ratio: 218/150; background: #f1f1f1; margin-bottom: 8px; overflow: hidden; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nav-search { border: 0; background: none; cursor: pointer; padding: 0 0 0 14px; color: #000; height: 48px; }

/* Block titles */
.block-title { margin: 0 0 20px; border-bottom: 2px solid #222; font: 600 15px/1 var(--title); text-transform: uppercase; }
.block-title span { display: inline-block; background: #222; color: #fff; padding: 8px 12px 6px; }

/* Layout */
.site-content { padding-top: 24px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.main-column { min-width: 0; }

/* Big tiles */
.tile-grid { display: grid; gap: 4px; margin-bottom: 40px; visibility: hidden; }
.tile-grid.ready { visibility: visible; }
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.big-tile { position: relative; overflow: hidden; background: #ddd; aspect-ratio: 356/240; }
.tile-grid-2 .big-tile { aspect-ratio: 534/400; }
.big-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.big-tile:hover .big-tile-img { transform: scale(1.05); }
.big-tile-link { position: absolute; inset: 0; z-index: 2; }
.big-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 60px 20px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.big-tile-body a { pointer-events: auto; }
.tile-grid-3 .big-tile-body { text-align: center; }
.big-tile-title { margin: 6px 0 4px; font: 500 15px/1.3 var(--title); text-transform: uppercase; }
.tile-grid-2 .big-tile-title { font: 400 27px/1.3 var(--heading); text-transform: none; }
.big-tile-title a { color: #fff; }
.big-tile .post-meta, .big-tile .post-author, .big-tile .post-date { color: #fff; }

/* Pills */
.cat-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.cat-pill { display: inline-block; background: var(--accent); color: #fff; font: 10px/1 var(--meta); padding: 4px 6px 3px; }
.cat-pill:hover { color: #fff; background: #222; }
.cat-pill.dark { background: #222; text-transform: uppercase; }

/* Meta */
.post-meta { font: 11px/1.6 var(--meta); color: #999; }
.post-author { font-weight: 700; color: #000; }
.sep { margin: 0 2px; }

/* List posts */
.post-list { display: flex; flex-direction: column; gap: 32px; }
.list-post { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 20px; }
.list-post-thumb { display: block; aspect-ratio: 218/150; background: #f1f1f1; overflow: hidden; }
.list-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-post .entry-title { margin: 0 0 6px; font: 400 21px/1.3 var(--title); }
.list-post .entry-title a { color: #111; }
.list-post .entry-title a:hover { color: var(--link); }
.excerpt { margin: 8px 0 0; font-size: 13px; line-height: 21px; color: var(--muted); }
.archive-list .list-post { grid-template-columns: 300px minmax(0, 1fr); }
.archive-list .list-post-thumb { aspect-ratio: 300/220; }
.archive-list .entry-title { font: 400 27px/1.3 var(--heading); }
.read-more { display: inline-block; margin-top: 14px; background: var(--accent); color: #fff; font: 600 13px/1 var(--title); padding: 10px 12px; }
.read-more:hover { color: #fff; background: #222; }

/* Archive */
.archive-header { text-align: center; margin: 10px 0 40px; }
.archive-title { margin: 0; font: 400 21px/1.3 var(--title); text-transform: uppercase; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 40px 0; font: 15px/1 var(--title); }
.pagination a, .pagination .current, .pagination .extend { min-width: 33px; padding: 9px 10px; text-align: center; border: 1px solid #e6e6e6; color: #555; }
.pagination .current { background: #222; border-color: #222; color: #fff; }
.pagination a:hover { background: #222; border-color: #222; color: #fff; }
.pagination .extend { border: 0; }
.pagination .pages { margin-left: auto; font-size: 13px; color: #555; }

/* Single post */
.single .entry-title { margin: 0 0 12px; font: 400 41px/50px var(--heading); color: #111; }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 26px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid #e9e9e9; border-radius: 16px; font: 11px/1 var(--meta); color: #333; }
.share-btn svg { width: 14px; height: 14px; }
.share-btn.facebook svg { color: #516eab; }
.share-btn.twitter svg { color: #29c5f6; }
.share-btn.pinterest svg { color: #ca212a; }
.share-btn.whatsapp svg { color: #7bbf6a; }
.entry-content { font-size: 16px; line-height: 27.84px; color: var(--text); overflow-wrap: break-word; }
.entry-content p { margin: 0 0 26px; }
.entry-content h2 { font: 400 27px/38px var(--heading); margin: 30px 0 20px; color: #111; }
.entry-content h3 { font: 400 22px/30px var(--heading); margin: 27px 0 17px; color: #111; }
.entry-content h4 { font: 400 19px/29px var(--heading); margin: 24px 0 14px; color: #111; }
.entry-content ul, .entry-content ol { margin: 0 0 26px; padding-left: 24px; font-size: 15px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { margin: 30px 0; padding: 0 0 0 20px; border-left: 3px solid var(--link); font: italic 19px/1.6 var(--heading); color: #444; }
.entry-content hr { width: 80px; margin: 30px auto; border: 0; border-top: 1px solid #444; }
.entry-content img { margin: 0 auto; }
.entry-content figure { margin: 0 0 26px; }
.entry-content figcaption { font: italic 13px/1.5 var(--meta); color: #444; text-align: center; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 14px; }
.entry-content td, .entry-content th { border: 1px solid #ededed; padding: 6px 10px; }
.entry-content iframe { max-width: 100%; }
.kg-width-wide, .kg-width-full { margin-left: 0; margin-right: 0; }
.post-tags { margin: 10px 0 20px; font: 11px/1 var(--meta); }
.tags-label { display: inline-block; background: #222; color: #fff; padding: 6px 8px; margin-right: 6px; text-transform: uppercase; }
.post-tags a { display: inline-block; border: 1px solid #ededed; color: #111; padding: 5px 8px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 20px 0 36px; }
.nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; font: 11px/1 var(--meta); color: #999; margin-bottom: 6px; }
.nav-title { font: 500 13px/1.4 var(--title); color: #111; }
.related-title span { background: none; color: var(--link); padding-left: 0; }
.related-title { border-bottom: 1px solid var(--rule); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-thumb { display: block; aspect-ratio: 218/150; background: #f1f1f1; overflow: hidden; margin-bottom: 8px; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-title { margin: 0; font: 500 13px/1.4 var(--title); }
.related-post-title a { color: #111; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.search-field { width: 100%; display: flex; justify-content: flex-end; border: 1px solid #e1e1e1; background: #fff; padding: 0; cursor: pointer; }
.search-field span { background: var(--accent); color: #fff; font: 600 13px/1 var(--title); padding: 10px 16px; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { border-bottom: 1px dashed #f2f2f2; padding: 8px 0; }
.recent-list a { font: 400 14px/1.4 var(--title); color: #111; }
.follow-circles { display: flex; gap: 10px; }
.follow-circles .social { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.follow-circles svg { width: 16px; height: 16px; }
.follow-circles .facebook { background: #516eab; }
.follow-circles .instagram { background: #417096; }
.follow-circles .linkedin { background: #0266a0; }
.follow-circles .pinterest { background: #ca212a; }

/* Footer */
.site-footer { background: var(--footer); color: #fff; margin-top: 48px; }
.site-footer a { color: #fff; }
.site-footer .block-title { border: 0; margin-bottom: 18px; }
.site-footer .block-title span { background: none; padding: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 36px; }
.small-post { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.small-post-thumb { display: block; aspect-ratio: 1; background: rgba(255,255,255,.1); overflow: hidden; }
.small-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.small-post-title { margin: 0 0 4px; font: 400 14px/1.4 var(--title); }
.site-footer .post-date { font: 11px/1 var(--meta); color: #ccc; }
.category-counts { list-style: none; margin: 0; padding: 0; }
.category-counts a { display: flex; justify-content: space-between; font: 400 15px/2.3 var(--title); }
.footer-about { display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 40px; align-items: center; border-top: 1px solid rgba(255,255,255,.15); padding-top: 36px; padding-bottom: 36px; }
.footer-text p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; }
.footer-text a { color: var(--link); }
.footer-social { display: flex; gap: 8px; }
.footer-social .social { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.footer-social svg { width: 12px; height: 12px; }
.sub-footer { background: var(--accent); color: #ccc; font: 11px/34px var(--meta); }

/* Scroll to top */
.scroll-top { position: fixed; right: 12px; bottom: 12px; width: 32px; height: 32px; border: 0; background: var(--link); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.scroll-top.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1018px) {
    .mega-menu { width: 720px; grid-template-columns: repeat(4, 1fr); }
    .mega-post:nth-child(5) { display: none; }
    .with-sidebar { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
}
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    .top-bar, .site-logo { display: none; }
    .header-main { min-height: 0; padding: 10px 0; justify-content: center; }
    .nav-bar { background: #222; border: 0; }
    .nav-inner { justify-content: space-between; height: 54px; }
    .nav-toggle, .nav-logo { display: block; }
    .nav-toggle, .nav-search { color: #fff; background: none; border: 0; padding: 0; height: 54px; }
    .nav-logo img { width: 110px; }
    .main-menu { display: none; position: absolute; top: 54px; left: -16px; right: -16px; z-index: 80; background: #222; flex-direction: column; padding: 10px 0; }
    .menu-open .main-menu { display: flex; }
    .main-menu > li > a { color: #fff; padding: 0 24px; line-height: 42px; }
    .main-menu > li:first-child > a { padding-left: 24px; }
    .main-menu > li:hover > .mega-menu, .main-menu > li:hover > .sub-menu { display: none; }
    .with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .tile-grid-3, .tile-grid-2 { grid-template-columns: minmax(0, 1fr); margin-left: -16px; margin-right: -16px; }
    .list-post, .archive-list .list-post { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
    .list-post .entry-title, .archive-list .entry-title { font: 500 16px/1.3 var(--title); }
    .excerpt, .read-more { display: none; }
    .single .entry-title { font-size: 26px; line-height: 32px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-widgets, .footer-about { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: left; }
}
.site-logo-wrap { margin: 0; font-size: inherit; line-height: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 767px) { .site-logo-wrap { display: none; } }
.header-promo { flex: 0 1 728px; min-width: 0; }
.header-promo img { width: 100%; }
.site-logo { flex: 0 0 auto; }
.recent-list li { line-height: 1.4; }
