:root {
  --bg: #f1f2f3;
  --panel: #fff;
  --line: #d6dadd;
  --muted: #61727d;
  --text: #18242d;
  --blue: #0879df;
  --cyan: #0a8be5;
  --dark: #111820;
  --radius: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Space Grotesk", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tb-body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.portal-shell { min-height: 100vh; background: var(--bg); }
.portal-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.portal-topline { height: 4px; background: var(--cyan); }
.portal-utility { height: 27px; background: var(--dark); color: #aab5bd; font-size: 9px; letter-spacing: .04em; }
.portal-utility__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.portal-utility a, .portal-utility-menu { margin-left: 18px; color: #c4cdd3; }
.portal-utility a:hover { color: #fff; }
.portal-utility-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.portal-utility-menu a { margin: 0; }

.portal-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.portal-header__inner { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.brand-mark { display: inline-flex; align-items: center; gap: 9px; min-width: 176px; }
.brand-mark .custom-logo-link img { max-height: 36px; width: auto; }
.brand-mark__symbol {
  display: grid; place-items: center; width: 38px; height: 30px; color: #fff; font-size: 0;
  background: linear-gradient(135deg, #fff 10%, #9bc4e9 42%, var(--blue) 55%, #5bdff2);
  clip-path: polygon(0 17%,58% 17%,45% 46%,100% 46%,72% 84%,17% 84%,32% 51%,0 51%);
}
.brand-mark__name { display: flex; flex-direction: column; gap: 2px; font-family: var(--display); }
.brand-mark__name strong { font-size: 16px; letter-spacing: -.7px; color: #15202a; }
.brand-mark__name strong span { color: var(--blue); }
.brand-mark__name small { color: #7b8995; font-size: 7px; font-weight: 800; letter-spacing: 1.5px; }

.portal-nav, .portal-nav__list { display: flex; align-items: center; align-self: stretch; gap: 18px; list-style: none; margin: 0; padding: 0; }
.portal-nav a { display: flex; align-items: center; color: #4d5b65; font-size: 12px; font-weight: 700; }
.portal-nav a:hover, .portal-nav .current-menu-item > a { color: var(--blue); }
.portal-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.portal-actions button, .portal-actions a {
  display: inline-flex; align-items: center; gap: 5px; border: 0; color: #52616c; background: transparent; font-size: 10px; cursor: pointer;
}
.header-youtube svg { color: var(--blue); }
.portal-menu { display: none !important; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; }
.portal-menu span { display: block; height: 2px; background: #33414b; border-radius: 2px; }
.portal-search { position: absolute; top: 100%; left: 0; right: 0; padding: 13px 0; background: #fff; border-bottom: 1px solid #cbd4d9; box-shadow: 0 8px 18px rgba(10,30,42,.12); }
.portal-search[hidden] { display: none; }
.tb-search-form { display: flex; align-items: center; gap: 10px; color: var(--blue); width: 100%; }
.tb-search-form input { flex: 1; border: 0; outline: 0; color: #26333c; font-size: 14px; background: transparent; }
.tb-search-form button { border: 0; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; cursor: pointer; }

.portal-hero { display: grid; grid-template-columns: 1.75fr 1fr; gap: 17px; padding-top: 24px; padding-bottom: 22px; }
.hero-lead { position: relative; min-height: 330px; overflow: hidden; background: #112331; border-radius: var(--radius); }
.hero-lead__media img, .hero-lead__media { width: 100%; height: 100%; object-fit: cover; min-height: 330px; }
.hero-lead__media--fallback { background: linear-gradient(140deg, #112331, #1a3a52); min-height: 330px; }
.hero-lead:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(7,16,24,.9) 100%); }
.hero-lead__copy { position: absolute; z-index: 2; left: 23px; right: 23px; bottom: 20px; color: #fff; }
.hero-lead__copy .portal-label { color: #5bdff2; }
.hero-lead h1 { max-width: 625px; margin: 9px 0 8px; font-family: var(--display); font-size: clamp(24px, 3vw, 31px); line-height: 1.05; letter-spacing: -1.2px; }
.hero-lead h1 a { color: #fff; }
.hero-lead p { max-width: 570px; margin: 0 0 8px; color: #cfdae1; font-size: 13px; line-height: 1.4; }
.portal-button {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 12px;
  border-radius: 6px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; border: 0; cursor: pointer;
}
.portal-button:hover { background: #0565bd; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side .portal-card { display: grid; grid-template-columns: 145px 1fr; min-height: 157px; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); overflow: hidden; }
.hero-side .portal-card__image img, .hero-side .portal-card__ph { height: 100%; min-height: 157px; object-fit: cover; }
.hero-side .portal-card h3 { font-size: 14px; }

.portal-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; border-bottom: 2px solid #26343d; }
.portal-section-title h2 { margin: 0; padding: 0 0 8px; color: #17242d; font-family: var(--display); font-size: 19px; letter-spacing: -.5px; }
.portal-section-title h2:before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 8px; vertical-align: -2px; background: var(--blue); }
.portal-section-title a { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }

.portal-label { display: block; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.portal-meta { display: flex; gap: 6px; color: #87949d; font-size: 11px; }
.portal-meta span:first-child { color: var(--blue); font-weight: 700; }
.portal-meta i { font-style: normal; color: #b5bec4; }

.portal-card { min-width: 0; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); overflow: hidden; }
.portal-card:hover { border-color: #9bc8ea; }
.portal-card__image img, .portal-card__ph { width: 100%; height: 139px; object-fit: cover; background: #dfe8ee; }
.portal-card__body { padding: 10px 11px 12px; }
.portal-card h3 { margin: 6px 0 8px; color: #25343e; font-size: 14px; line-height: 1.23; }
.portal-card h3 a:hover { color: var(--blue); }

.video-strip { padding: 12px 0 28px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.video-grid--page { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { min-width: 0; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); overflow: hidden; padding-bottom: 10px; }
.video-card > a > div, .video-card > div { position: relative; }
.video-card img { width: 100%; height: 120px; object-fit: cover; }
.video-play {
  position: absolute; left: 8px; bottom: 7px; display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 10px;
}
.video-card h3 { margin: 7px 10px 4px; color: #24333d; font-size: 13px; line-height: 1.25; }
.video-card small { margin: 0 10px; color: #7c8a94; font-size: 10px; }

.portal-products { padding-bottom: 30px; }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.product-grid--archive { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card { min-width: 0; padding: 8px; border: 1px solid #d7dfe3; background: #fff; border-radius: var(--radius); }
.product-card img, .product-card__ph { width: 100%; height: 120px; object-fit: contain; background: #eef2f5; border-radius: 6px; }
.product-card b { display: block; margin-top: 7px; color: var(--blue); font-size: 10px; }
.product-card span { display: block; margin-top: 4px; color: #384954; font-size: 12px; line-height: 1.25; font-weight: 600; }
.product-card__specs { display: block; margin-top: 6px; color: #7c8a94; font-size: 10px; }
.product-card:hover { border-color: #9bc8ea; }

.tb-home-compare { padding-bottom: 34px; }
.tb-home-compare__panel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 24px; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius);
}
.tb-home-compare__panel p { margin: 0; max-width: 640px; color: #536372; font-size: 14px; line-height: 1.45; }

.portal-layout { display: grid; grid-template-columns: minmax(0,1fr) 275px; gap: 28px; padding-bottom: 37px; }
.deal-grid, .analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.portal-sidebar { min-width: 0; }
.most-read { padding-top: 14px; border-top: 3px solid #222f38; }
.most-read a { display: grid; grid-template-columns: 29px 1fr; gap: 7px; padding: 11px 0; border-bottom: 1px solid #e1e6e9; }
.most-read a b { color: var(--blue); font-size: 14px; font-weight: 500; }
.most-read a span { color: #465761; font-size: 12px; line-height: 1.25; }
.sidebar-box { margin-top: 26px; padding: 18px; color: #fff; background: #26343d; border-radius: var(--radius); }
.sidebar-box strong { font-size: 14px; }
.sidebar-box p { color: #bfccd4; font-size: 12px; line-height: 1.4; }
.sidebar-box a { display: inline-flex; color: #fff; font-size: 11px; font-weight: 800; }

.portal-newsletter { padding: 32px 0; background: #dfe8ee; }
.portal-newsletter .portal-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px; }
.portal-newsletter span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.portal-newsletter h2 { margin: 8px 0 0; color: #1e2c36; font-family: var(--display); font-size: 22px; }
.portal-newsletter form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.portal-newsletter input { height: 38px; border: 1px solid #c5d2da; padding: 0 10px; outline: 0; border-radius: 6px; }
.portal-newsletter button { border: 0; padding: 0 14px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; border-radius: 6px; cursor: pointer; }

.portal-footer { background: #151d23; }
.portal-footer__inner { min-height: 92px; display: flex; align-items: center; gap: 25px; }
.portal-footer .brand-mark__name strong { color: #fff; }
.portal-footer .brand-mark__name small { color: #a7b3bb; }
.portal-footer__inner > div { display: flex; gap: 18px; margin-left: auto; list-style: none; }
.portal-footer a, .portal-footer small { color: #a6b2ba; font-size: 11px; }
.portal-footer a:hover { color: #fff; }

/* Single post */
.tb-single { padding: 28px 0 60px; }
.tb-single__header { max-width: 760px; margin-bottom: 22px; }
.tb-single__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.tb-single__meta a { color: var(--blue); font-weight: 700; }
.tb-single__title { margin: 0 0 12px; font-family: var(--display); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -1.4px; }
.tb-single__excerpt { color: #536372; font-size: 17px; line-height: 1.5; }
.tb-single__author { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.tb-single__author img { border-radius: 50%; }
.tb-single__author strong { display: block; font-size: 13px; }
.tb-single__author span { color: var(--muted); font-size: 11px; }
.tb-single__hero { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.tb-single__hero img { width: 100%; max-height: 480px; object-fit: cover; }
.tb-single__hero figcaption { padding: 8px 0; color: var(--muted); font-size: 12px; }
.tb-single__layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 36px; }
.entry-content { font-size: 17px; line-height: 1.7; color: #24333d; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { font-family: var(--display); letter-spacing: -.5px; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.tb-single__tags { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.tb-aside-block { background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.tb-aside-block h3 { margin: 0 0 12px; font-size: 14px; }
.tb-aside-device { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tb-aside-device img { width: 48px; height: 48px; object-fit: contain; background: #eef2f5; border-radius: 6px; }
.tb-related { margin-top: 40px; }
.tb-single__nav { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.tb-comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.tb-video-embed { position: relative; aspect-ratio: 16/9; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: #000; }
.tb-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Device page */
.tb-device { padding: 28px 0 60px; }
.tb-device__hero { display: grid; grid-template-columns: 280px 1fr; gap: 28px; margin-bottom: 28px; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); padding: 22px; }
.tb-device__media img, .tb-device__ph { width: 100%; max-height: 360px; object-fit: contain; background: #eef2f5; border-radius: 8px; min-height: 240px; }
.tb-device__intro h1 { margin: 8px 0 16px; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.tb-device__highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.tb-device__highlights div { background: #f4f7f9; border-radius: 8px; padding: 10px; }
.tb-device__highlights small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.tb-device__highlights strong { font-size: 13px; }
.tb-device__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tb-link-ghost { color: var(--muted); font-size: 12px; font-weight: 700; }
.tb-device__review { margin-bottom: 28px; }
.tb-specs { display: grid; gap: 14px; }
.tb-specs__group { background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); overflow: hidden; }
.tb-specs__group h3 { margin: 0; padding: 12px 16px; background: #eff3f6; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.tb-specs table { width: 100%; border-collapse: collapse; }
.tb-specs th, .tb-specs td { padding: 11px 16px; border-top: 1px solid #e7ecef; font-size: 13px; text-align: left; vertical-align: top; }
.tb-specs th { width: 34%; color: #536372; font-weight: 600; background: #fafbfc; }
.tb-device__compare-cta { margin-top: 28px; padding: 22px; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); }

/* Compare */
.tb-compare-page { padding: 28px 0 60px; }
.tb-compare-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tb-compare-slot {
  position: relative; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px; background: #fff; border: 1px dashed #b7c4cd; border-radius: var(--radius); text-align: center;
}
.tb-compare-slot img { max-height: 72px; object-fit: contain; }
.tb-compare-slot strong { font-size: 13px; }
.tb-slot-add, .tb-slot-clear { cursor: pointer; border: 0; background: transparent; color: var(--blue); font-weight: 700; }
.tb-slot-clear { position: absolute; top: 6px; right: 8px; font-size: 20px; color: #75848e; }
.tb-compare-search { margin: 12px 0; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); padding: 12px; }
.tb-compare-search input { width: 100%; height: 40px; border: 1px solid #c5d2da; border-radius: 6px; padding: 0 12px; }
.tb-compare-search ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow: auto; }
.tb-compare-search li button {
  width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.tb-compare-search li button:hover { background: #f0f5f9; }
.tb-compare-search img { width: 36px; height: 36px; object-fit: contain; }
.tb-compare-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid #d8dfe3; border-radius: var(--radius); background: #fff; }
.tb-compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.tb-compare-table th, .tb-compare-table td { padding: 12px; border-bottom: 1px solid #e7ecef; font-size: 13px; vertical-align: top; }
.tb-compare-table thead th { background: #eff3f6; text-align: center; }
.tb-compare-table thead img { max-height: 64px; margin: 0 auto 8px; object-fit: contain; }
.tb-compare-table tbody th { text-align: left; color: #536372; width: 22%; background: #fafbfc; }
.tb-compare-table td.is-winner { background: #e8f5ff; font-weight: 700; color: #055fae; }
.tb-compare-empty { color: var(--muted); }

/* Offers */
.tb-offer-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); overflow: hidden; padding: 12px; }
.tb-offer-card__media img { width: 100%; height: 100px; object-fit: contain; background: #eef2f5; border-radius: 6px; }
.tb-offer-card h3 { margin: 0 0 6px; font-size: 14px; }
.tb-offer-card__price { margin: 0 0 10px; color: var(--blue); font-weight: 800; font-size: 16px; }
.tb-buy-links { margin-top: 12px; }
.tb-buy-links__label { display: block; font-size: 11px; font-weight: 800; margin-bottom: 8px; color: #536372; }
.tb-buy-links__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-buy-links__btn {
  display: inline-flex; padding: 8px 12px; border-radius: 6px; background: #123040; color: #fff; font-size: 11px; font-weight: 700;
}
.tb-affiliate-disclosure { margin-top: 8px; color: #87949d; font-size: 11px; }

.tb-archive { padding: 28px 0 60px; }
.tb-archive__header { margin-bottom: 24px; }
.tb-archive__header h1 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.2px; }
.tb-archive__header p { color: #536372; max-width: 560px; }

.tb-widget { background: #fff; border: 1px solid #d8dfe3; border-radius: var(--radius); padding: 14px; margin-top: 16px; }
.tb-widget__title { margin: 0 0 10px; font-size: 14px; }

@media (max-width: 980px) {
  .portal-hero, .portal-layout, .tb-single__layout, .tb-device__hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--archive, .video-grid--page { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-grid, .analysis-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-device__highlights { grid-template-columns: repeat(2, 1fr); }
  .tb-compare-slots { grid-template-columns: repeat(2, 1fr); }
  .portal-newsletter .portal-container { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .portal-nav { position: absolute; display: none; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px; background: #fff; border-bottom: 1px solid #d7dfe3; box-shadow: 0 8px 18px rgba(15,30,40,.12); }
  .portal-nav.is-open, .portal-nav.portal-nav--open { display: flex; }
  .portal-nav__list { flex-direction: column; align-items: stretch; width: 100%; }
  .portal-nav a { padding: 11px 3px; font-size: 13px; }
  .portal-actions span, .header-youtube { display: none; }
  .portal-menu { display: inline-flex !important; }
  .hero-side .portal-card { grid-template-columns: 120px 1fr; min-height: 121px; }
  .deal-grid, .analysis-grid, .product-grid, .video-grid, .product-grid--archive, .video-grid--page { grid-template-columns: 1fr 1fr; }
  .tb-offer-card { grid-template-columns: 1fr; }
  .portal-footer__inner { flex-wrap: wrap; padding: 22px 0; min-height: auto; }
  .portal-footer__inner > div { width: 100%; order: 3; margin-left: 0; }
}
