@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --teknobu-type: "Plus Jakarta Sans", Manrope, system-ui, sans-serif;
  --round-elevated: color-mix(in srgb,var(--bg-alt) 70%,var(--card-bg));
  --round-accent: var(--icon-violet);
  --round-edge: color-mix(in srgb,var(--border) 81%,var(--round-accent));
  --round-nav: color-mix(in srgb,var(--bg-alt) 45%,var(--card-bg));
}

body, .premium-search-field input, .premium-search-filters select,
.sp-card .sp-content, .premium-feed-copy p, .premium-trend-copy strong,
.premium-trend-box .trend-rank, .premium-wide-search kbd,
.sp-card .sp-title, .featured-slider .featured-content h2 {
  font-family: var(--teknobu-type);
}
h1,h2,h3,h4 { text-wrap: pretty; }

.site-header.teknobu-masthead {
  background: radial-gradient(ellipse at 12% -80%,color-mix(in srgb,var(--round-accent) 19%,transparent),transparent 75%),var(--card-bg);
  box-shadow: 0 8px 26px #0f071a24;
}
.teknobu-masthead::before { height: 2px; background: linear-gradient(90deg,#8f52df,#d369b6 48%,#70c9e8); }
.teknobu-masthead .premium-header-brand { min-height: 80px; }
.teknobu-masthead .brand { font-weight: 800; letter-spacing: -.045em; }
.teknobu-masthead .brand-mark { border-radius: 14px; }
.teknobu-masthead .premium-wide-search {
  height: 49px; border-radius: 17px; padding-inline-end: 13px; background: var(--round-nav);
}
.teknobu-masthead .premium-search-icon { border-radius: 11px; background: transparent; }
.teknobu-masthead .premium-search-copy strong { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.teknobu-masthead .header-actions :is(#themeToggle,.profile-btn,.premium-mobile-search),
.teknobu-masthead .mobile-toggle { border-radius: 50%; background: var(--round-nav); }
.teknobu-masthead .header-actions .profile-btn { border-color: var(--round-edge); }

.teknobu-masthead .main-nav { min-height: 63px; gap: 8px; align-items: center; padding: 5px 3px; }
.teknobu-masthead .main-nav a { align-self: center; min-height: 47px; padding: 4px 11px 4px 5px; border-radius: 15px; border: 1px solid transparent; font-size: 14px; font-weight: 750; }
.teknobu-masthead .main-nav a:is(:hover,.active) { border-color: var(--round-edge); background: var(--round-nav); }
.teknobu-masthead .main-nav a.active::after { content: none; }
.teknobu-masthead .main-nav .teknobu-premium-icon {
  width: 35px; height: 35px; border-radius: 11px;
  background: color-mix(in srgb,var(--topic-color) 17%,var(--card-bg));
  border: 0;
}
.teknobu-masthead .main-nav .teknobu-premium-icon svg { width: 17px; height: 17px; }
.teknobu-masthead .main-nav a.active .teknobu-premium-icon { background: linear-gradient(135deg,#8b56ce,#b93f96); color: #fff; }

.teknobu-drawer-links a { border-radius: 17px; }
.teknobu-drawer-links .teknobu-premium-icon { border-radius: 13px; }
.premium-search-dialog { border-radius: 23px; }
.premium-search-field,.premium-search-filters select,.premium-search-dialog #closeSearch { border-radius: 13px; }

.featured-slider { border-radius: 23px; }
.featured-slider .featured-slide::after {
  background: linear-gradient(90deg,#1b112ff8 2%,#241537e8 35%,#29163b64 76%,#130c2625),
    linear-gradient(0deg,#160d27b0,transparent 52%);
}
.featured-slider .featured-content h2 { font-weight: 800; letter-spacing: -.05em; }
.featured-slider .featured-cta { border-radius: 999px; padding-inline: 18px; }
.featured-slider .featured-controls { border-radius: 999px; gap: 10px; }
.home-trend-panel .home-trend-box { border-radius: 18px; }
.premium-hot-card { border-radius: 13px; }
.premium-hot-action { border-radius: 999px; }

.rounded-topics { margin: 0 0 19px; padding: 15px; border: 1px solid var(--border); border-radius: 19px; background: var(--card-bg); }
.rounded-topics h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; letter-spacing: -.03em; margin-bottom: 10px; }
.rounded-topics ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.rounded-topics a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 7px; border-radius: 12px; background: var(--round-elevated); border: 1px solid var(--border); font-size: 12px; font-weight: 800; }
.rounded-topics a:hover { border-color: var(--round-edge); color: var(--round-accent); }
.rounded-topics a > span:nth-child(2) { overflow-wrap: anywhere; }
.rounded-topics a > svg { width: 13px; height: 13px; color: var(--text-muted); }

.premium-feed { border-radius: 20px; }
.premium-feed-head h1 { font-weight: 800; }
.premium-feed-card { border-radius: 20px; }
.premium-feed-cover { border-radius: 14px; }
.premium-feed-meta a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 4px; }
.premium-feed-meta a > .teknobu-premium-icon { background: transparent; width: 16px; height: 16px; border-radius: 4px; }
.premium-feed-meta a > .teknobu-premium-icon svg { width: 12px; height: 12px; }
.premium-feed-copy h2 { font-weight: 800; line-height: 1.24; }
.premium-feed-foot a { border-radius: 999px; }
.premium-feed-save { border-radius: 50%; }

.sidebar-box:is(.premium-trend-box,.premium-categories-box) { border-radius: 19px; }
.premium-side-heading .sidebar-title { font-weight: 800; text-transform: none; }
.premium-trend-box .trend-card { border-radius: 12px; }
.premium-trend-box .trend-card:first-child { background: linear-gradient(135deg,color-mix(in srgb,var(--round-accent) 13%,var(--bg-alt)),var(--bg-alt)); }
.premium-trend-thumb { border-radius: 10px; }
.premium-category-badge { border-radius: 999px; padding-inline: 6px; }
.premium-categories-box .category-pills .pill { border-radius: 12px; }

.sp-card { border-radius: 21px; }
.sp-card .sp-head { background: linear-gradient(135deg,color-mix(in srgb,var(--round-accent) 13%,var(--card-bg)),var(--card-bg) 68%); }
.sp-card .sp-title { font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.sp-card .sp-cover { border-radius: 15px; }
.sp-content .toc-box { border-radius: 16px; }
.sp-content .toc-item a,.sp-content .premium-code { border-radius: 12px; }

.site-footer .footer-grid { padding-block: 20px; border: 1px solid var(--border); border-radius: 21px; background: var(--card-bg); }
.site-footer .footer-col { min-width: 0; }
.site-footer .footer-col h4 { font-weight: 800; letter-spacing: -.02em; }
.site-footer .footer-post { border-radius: 12px; }
.site-footer .footer-links a:hover { transform: none; }
.polish-back-top { border: 1px solid var(--border); border-radius: 999px; padding: 6px 11px; }

@media(max-width:1024px) { .rounded-topics ul { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
  .teknobu-masthead .premium-header-brand { min-height: 66px; }
  .teknobu-masthead .main-nav { min-height: 55px; gap: 5px; }
  .teknobu-masthead .main-nav a { min-height: 40px; padding: 4px 7px 4px 4px; border-radius: 12px; font-size: 12px; }
  .teknobu-masthead .main-nav .teknobu-premium-icon { width: 28px; height: 28px; border-radius: 8px; }
  .teknobu-masthead .main-nav .teknobu-premium-icon svg { width: 14px; height: 14px; }
  .featured-slider { border-radius: 17px; }
  .featured-slider .featured-slide::after { background: linear-gradient(0deg,#170d29f7,#211433ce 62%,#28143965); }
  .featured-slider .featured-cta { padding: 8px 13px; }
  .rounded-topics { padding: 10px; border-radius: 15px; }
  .rounded-topics h2 { font-size: 15px; }
  .rounded-topics a { font-size: 11px; padding: 5px; }
  .premium-feed-card { border-radius: 13px; }
  .premium-feed-cover { border-radius: 9px; }
  .premium-feed-meta a > .teknobu-premium-icon { width: 12px; height: 12px; }
  .premium-feed-meta a > .teknobu-premium-icon svg { width: 10px; height: 10px; }
  .site-footer .footer-grid { margin-inline: 10px; }
}
