@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #e8edf1;
  --text: #12161d;
  --muted: #5a6472;
  --line: #d7dde4;
  --brand: #156de8;
  --brand-strong: #0b55bf;
  --accent: #1f8cff;
  --header: #07090c;
  --header-text: #ffffff;
  --shadow: 0 18px 45px rgba(20, 28, 40, 0.12);
  --radius: 8px;
  --content: min(1440px, calc(100vw - 96px));
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1d21;
  --surface: #23262b;
  --surface-soft: #2b2f36;
  --text: #e8ebef;
  --muted: #b5bcc7;
  --line: #373c44;
  --brand: #2f95ff;
  --brand-strong: #0b4da2;
  --accent: #4fb7ff;
  --header: #17191d;
  --header-text: #f8fafc;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 50;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--header);
  color: var(--header-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.adblock-notice {
  width: var(--content);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, var(--brand-strong));
  border: 1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--line));
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(5, 18, 42, 0.08);
}

.adblock-notice p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 14px;
  line-height: 1.45;
}

.adblock-notice strong {
  color: var(--text);
}

.adblock-notice button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: #fff;
  cursor: pointer;
  background: var(--brand-strong);
  border: 0;
  border-radius: 7px;
  font-weight: 900;
}

.topbar {
  position: relative;
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: clamp(196px, 17vw, 252px);
  height: auto;
  object-fit: contain;
}

.search svg,
.social-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-nav svg {
  fill: currentColor;
  stroke: none;
}

.search {
  display: grid;
  width: 42px;
  grid-template-columns: 42px 0fr;
  align-items: center;
  gap: 0;
  padding: 0;
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: width 220ms ease, grid-template-columns 220ms ease, background 180ms ease, border-color 180ms ease;
}

.search.is-open {
  width: min(320px, 34vw);
  grid-template-columns: 42px 1fr;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.search-trigger {
  display: grid;
  width: 42px;
  height: 40px;
  place-items: center;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.search input {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.search.is-open input {
  opacity: 1;
  pointer-events: auto;
}

.search input::placeholder {
  color: #aab3bf;
}

.social-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.social-nav a,
.menu-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-nav a:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.theme-control {
  position: relative;
  display: grid;
  justify-self: end;
  margin-left: 12px;
  padding-left: 16px;
}

.theme-control::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(47, 149, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  background: rgba(47, 149, 255, 0.28);
  border-color: rgba(88, 199, 255, 0.42);
}

.theme-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-toggle .moon,
[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  border: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.category-nav {
  min-width: 0;
}

.nav-row {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-row {
  width: var(--content);
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 54px);
  padding: 16px 0 15px;
}

.category-nav a {
  position: relative;
  color: #b9c0ca;
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav a.is-active {
  color: #fff;
}

.category-nav a::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--brand);
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.category-nav a:hover::after,
.category-nav a:focus-visible::after,
.category-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  padding: 24px 0 48px;
}

.hero-grid {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 18px;
  padding-bottom: 50px;
}

.story-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  isolation: isolate;
  background: #0a0d11;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: box-shadow 240ms ease;
}

.story-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: radial-gradient(circle at 50% 45%, rgba(6, 17, 31, 0) 34%, rgba(6, 17, 31, 0.34) 100%);
  box-shadow: inset 0 0 46px rgba(5, 18, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.story-card > a {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
}

.story-card img,
.news-card img {
  transform-origin: center;
}

.story-card img {
  position: absolute;
  inset: 0;
}

.story-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 12%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
  transition: background 260ms ease;
}

.story-card:hover,
.story-card:focus-within {
  box-shadow: 0 16px 36px rgba(5, 18, 42, 0.24);
}

.story-card:hover::before,
.story-card:focus-within::before {
  opacity: 0.55;
}

.story-card:hover::after,
.story-card:focus-within::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.68) 100%);
}

.lead-card {
  min-height: clamp(360px, 48vw, 520px);
}

.side-stack {
  display: grid;
  gap: 16px;
}

.side-stack .mini-card {
  min-height: calc((clamp(360px, 48vw, 520px) - 16px) / 2);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.hero-arrow svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-overlay {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: #fff;
  transform-origin: left bottom;
  transition: transform 260ms ease;
}

.story-card:hover .story-overlay,
.story-card:focus-within .story-overlay {
  transform: translateY(-2px);
}

.tag,
.category,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 9px;
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px rgba(88, 199, 255, 0.18);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lead-card h2 {
  max-width: 780px;
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead-card p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.mini-card h2 {
  margin: 10px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.25;
  letter-spacing: 0;
}

.content-columns {
  width: var(--content);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  align-items: start;
  gap: 30px;
}

.latest-section,
.popular-section {
  min-width: 0;
}

.popular-section {
  position: sticky;
  top: 150px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(31, 140, 255, 0.08), rgba(31, 140, 255, 0.02)),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(5, 18, 42, 0.08);
}

.popular-section .section-heading {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.popular-section .section-heading::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 76px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px;
}

.popular-section h2 {
  font-size: clamp(22px, 2vw, 28px);
}

.category-hero {
  width: 100%;
  margin: -24px 0 38px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(47, 149, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(79, 183, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #07152b 0%, #0a2140 48%, #07111f 100%);
}

.category-hero::before {
  display: block;
  min-height: 258px;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(255, 255, 255, 0.05) 18% 18.4%, transparent 18.4% 100%),
    linear-gradient(36deg, transparent 0 62%, rgba(255, 255, 255, 0.055) 62% 62.4%, transparent 62.4% 100%),
    radial-gradient(circle at 24% 48%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 100%);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  opacity: 0.55;
}

.category-hero-inner {
  position: relative;
  width: var(--content);
  min-height: 258px;
  margin: -258px auto 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 42px 0;
}

.category-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.category-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.45vw, 21px);
}

.category-hero .section-context {
  margin: 0;
  color: #68c9ff;
}

.category-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.category-hero-meta span {
  padding: 7px 11px;
  color: #dceeff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.category-hero strong {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-hero-games {
  background:
    radial-gradient(circle at 22% 26%, rgba(47, 149, 255, 0.32), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(67, 233, 167, 0.16), transparent 26%),
    linear-gradient(135deg, #081225 0%, #0b2142 46%, #101625 100%);
}

.category-hero-ia {
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 183, 255, 0.28), transparent 27%),
    radial-gradient(circle at 82% 20%, rgba(120, 108, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #071327 0%, #12203d 50%, #111520 100%);
}

.category-hero-ciberseguranca {
  background:
    radial-gradient(circle at 22% 26%, rgba(25, 210, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(21, 109, 232, 0.24), transparent 30%),
    linear-gradient(135deg, #07111d 0%, #0b2432 52%, #111820 100%);
}

.category-hero-automacao {
  background:
    radial-gradient(circle at 24% 22%, rgba(79, 183, 255, 0.24), transparent 29%),
    radial-gradient(circle at 78% 22%, rgba(150, 210, 255, 0.14), transparent 32%),
    linear-gradient(135deg, #07131f 0%, #102838 50%, #12181e 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-context {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-link {
  color: var(--brand-strong);
  font-weight: 900;
}

[data-theme="dark"] .section-link {
  color: var(--accent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
  border-radius: var(--radius);
  transition: transform 220ms ease;
}

.news-card-body {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.news-card img {
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.news-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  transition: box-shadow 240ms ease;
}

.news-image-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(47, 149, 255, 0) 30%, rgba(6, 17, 31, 0.16) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.news-image-link::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  box-shadow: inset 0 0 34px rgba(5, 18, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.news-card:hover,
.news-card:focus-within {
  transform: none;
}

.news-card:hover .news-image-link,
.news-card:focus-within .news-image-link {
  box-shadow: 0 16px 34px rgba(5, 18, 42, 0.18);
}

.news-card:hover .news-image-link::after,
.news-card:focus-within .news-image-link::after {
  opacity: 0.55;
}

.news-card:hover .news-image-link::before,
.news-card:focus-within .news-image-link::before {
  opacity: 0.45;
}

.news-card h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  transform-origin: left center;
  transition: color 200ms ease, transform 220ms ease;
}

.news-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card:hover h3,
.news-card:focus-within h3 {
  color: var(--brand);
  transform: none;
}

.news-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.news-card time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: color 180ms ease, gap 180ms ease;
}

.read-more-link:hover,
.read-more-link:focus-visible {
  gap: 10px;
  color: var(--brand-strong);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.news-pagination[hidden] {
  display: none;
}

.pagination-button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.pagination-button:hover,
.pagination-button:focus-visible,
.pagination-button.is-active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.pagination-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.popular-list {
  display: grid;
  gap: 0;
}

.popular-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 0;
  transition: transform 180ms ease;
}

.popular-card:hover,
.popular-card:focus-within {
  transform: translateX(4px);
}

.popular-card:last-child {
  border-bottom: 0;
}

.popular-rank {
  color: var(--accent);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.popular-card:nth-child(2) .popular-rank {
  color: #ff7a2f;
}

.popular-card:nth-child(3) .popular-rank {
  color: #ffb000;
}

.popular-card:nth-child(4) .popular-rank,
.popular-card:nth-child(5) .popular-rank {
  color: #d5dbe7;
}

.popular-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.36;
  letter-spacing: 0;
}

.popular-card h3 a {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-weight: inherit;
}

.newsletter-strip {
  width: var(--content);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  align-items: center;
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.newsletter-strip h2 {
  max-width: 680px;
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: 0;
}

.newsletter-strip p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form input,
.search-page-form input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.newsletter-form input {
  height: 46px;
  padding: 0 14px;
}

.newsletter-form button,
.search-page-form button {
  color: #fff;
  cursor: pointer;
  background: var(--brand-strong);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.newsletter-form button {
  height: 46px;
  padding: 0 18px;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible,
.search-page-form button:hover,
.search-page-form button:focus-visible {
  background: var(--brand);
  transform: translateY(-1px);
}

.newsletter-feedback {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(520px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(5, 18, 42, 0.22);
}

.cookie-consent.is-hiding {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-consent a,
.cookie-consent button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cookie-consent a {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.cookie-consent button {
  color: var(--text);
  cursor: pointer;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.cookie-consent button[data-cookie-choice="accept"] {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.reading-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 16px rgba(88, 199, 255, 0.42);
  transform-origin: left center;
  transition: width 80ms linear;
}

.article-page {
  padding: 28px 0 54px;
}

.article-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.article-hero {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 30px) 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.article-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.article-hero h1 {
  max-width: 850px;
  margin: 14px 0 14px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-hero-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-author-link {
  color: #4fb7ff !important;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-author-link:hover,
.article-author-link:focus-visible {
  color: #2f95ff !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.article-media figure {
  margin: 0;
}

.article-media figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(280px, 340px);
  justify-content: center;
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 0;
}

.article-main {
  min-width: 0;
}

.article-main .article-content {
  margin-top: 30px;
}

.article-aside {
  position: sticky;
  top: 132px;
  align-self: start;
}

.article-most-viewed,
.article-latest {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 97%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--brand-strong) 12%, var(--line));
  border-radius: var(--radius);
}

.article-most-viewed h2,
.article-latest h2 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, var(--surface));
}

.article-most-viewed h2::after,
.article-latest h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 58px;
  height: 2px;
  content: "";
  background: color-mix(in srgb, var(--brand-strong) 68%, var(--line));
  border-radius: 999px;
}

.article-aside a {
  color: var(--muted);
  font-weight: 650;
}

.article-aside a:hover {
  color: color-mix(in srgb, var(--brand-strong) 74%, var(--text));
}

.article-latest {
  margin-top: 14px;
}

.article-share {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.article-share h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-actions a,
.share-actions button {
  display: grid;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-items: center;
  padding: 0;
  color: #f8fbff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(31, 140, 255, 0.26);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.share-actions svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.share-actions .native-share-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-actions a:hover,
.share-actions a:focus-visible,
.share-actions button:hover,
.share-actions button:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 14px 30px rgba(31, 140, 255, 0.36);
  transform: translateY(-2px);
}

.copy-feedback {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.most-viewed-list {
  display: grid;
  gap: 0;
}

.most-viewed-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 0;
  transition: transform 180ms ease;
}

.most-viewed-card:hover,
.most-viewed-card:focus-visible {
  transform: translateX(4px);
}

.most-viewed-card:last-child {
  border-bottom: 0;
}

.most-viewed-rank {
  color: var(--accent);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.most-viewed-card:nth-child(2) .most-viewed-rank {
  color: #ff7a2f;
}

.most-viewed-card:nth-child(3) .most-viewed-rank {
  color: #ffb000;
}

.most-viewed-card:nth-child(4) .most-viewed-rank,
.most-viewed-card:nth-child(5) .most-viewed-rank {
  color: #d5dbe7;
}

.most-viewed-card strong {
  display: block;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: 14px;
  font-weight: 650;
  line-height: 1.36;
  transition: color 180ms ease;
}

.most-viewed-card:hover > strong,
.most-viewed-card:focus-visible > strong {
  color: color-mix(in srgb, var(--brand-strong) 74%, var(--text));
}

.article-latest-list {
  display: grid;
  gap: 10px;
}

.article-latest-card {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.article-latest-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-latest-card span {
  color: color-mix(in srgb, var(--brand-strong) 74%, var(--text));
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.article-latest-card strong {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  transition: color 180ms ease;
}

.article-latest-card:hover strong,
.article-latest-card:focus-visible strong {
  color: color-mix(in srgb, var(--brand-strong) 74%, var(--text));
}

.article-content {
  min-width: 0;
}

.article-content .article-lead {
  margin-top: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.55;
  font-weight: 700;
}

.article-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-content p {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 18px;
  line-height: 1.78;
}

.article-inline-image {
  margin: 30px 0 34px;
}

.article-inline-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-inline-image figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.keyword-mark {
  color: inherit;
  font-weight: 900;
}

.company-link {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.company-link:hover,
.company-link:focus-visible {
  color: var(--brand-strong);
  text-decoration: underline;
}

.article-inline-links {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
  padding-left: 22px;
}

.company-topic {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-strong) 22%, var(--line));
  border-radius: var(--radius);
}

.company-topic h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.company-topic p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.company-topic-link {
  color: var(--brand-strong);
  font-weight: 900;
}

.company-topic-news {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.company-topic-news a {
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

.article-inline-links li {
  color: var(--accent);
}

.article-inline-links a {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.article-inline-links a:hover {
  text-decoration: underline;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-content blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 900;
}

.article-editorial {
  margin: 34px 0 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-editorial h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.editorial-grid div {
  display: grid;
  gap: 3px;
}

.editorial-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.editorial-grid strong,
.editorial-grid time {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.article-sources {
  margin-top: 16px;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.article-sources strong {
  color: var(--text);
}

.article-author-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-author-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
}

.article-author-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-author-card h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.article-author-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-author-card a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.author-page {
  width: var(--content);
  margin: 0 auto;
  padding: 46px 0 72px;
}

.author-hero {
  margin-bottom: 28px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.author-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.author-post-grid,
.author-list-grid {
  display: grid;
  gap: 22px;
}

.author-post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.author-post-card span {
  align-self: flex-start;
  margin: 16px 16px 0;
  padding: 5px 9px;
  color: #fff;
  background: var(--brand);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.author-post-card strong {
  margin: 12px 16px 8px;
  font-size: 20px;
  line-height: 1.25;
}

.author-post-card small {
  margin: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
}

.author-post-card p {
  margin: 0 16px 16px;
  color: var(--muted);
}

.author-post-card em {
  margin: auto 16px 18px;
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.author-sidebar {
  position: sticky;
  top: 132px;
}

.author-profile-card {
  padding: 24px;
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.author-profile-card img {
  width: 168px;
  height: 168px;
  margin: 0 auto 18px;
  object-fit: cover;
  background: var(--surface);
  border: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
}

.author-profile-card h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.05;
}

.author-profile-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 900;
}

.author-profile-card p {
  color: var(--muted);
  line-height: 1.65;
}

.author-profile-card strong {
  display: inline-flex;
  padding: 7px 12px;
  color: #fff;
  background: var(--brand);
  border-radius: 5px;
  font-size: 12px;
  text-transform: uppercase;
}

.author-profile-card-link {
  color: inherit;
  text-decoration: none;
}

.article-related {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 220ms ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(5, 18, 42, 0.1);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-soft);
  transform-origin: center;
}

.related-card .category {
  width: fit-content;
  font-size: 10px;
}

.related-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.28;
}

.related-card:hover h3,
.related-card:focus-visible h3 {
  color: var(--accent);
}

.search-page {
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-panel h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 720px;
}

.search-page-form input {
  height: 50px;
  padding: 0 15px;
}

.search-page-form button {
  height: 50px;
  padding: 0 20px;
}

.search-summary {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.search-results-section {
  margin-top: 28px;
}

.search-results-grid {
  display: grid;
  gap: 18px;
}

.company-page {
  padding: 0 0 56px;
}

.company-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: clamp(260px, 38vw, 520px);
  background: var(--surface-soft);
}

.company-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(7, 12, 19, 0.18), rgba(7, 12, 19, 0));
  pointer-events: none;
}

.company-cover img {
  width: 100%;
  height: clamp(260px, 38vw, 520px);
  object-fit: cover;
}

.company-profile {
  width: min(1060px, calc(100vw - 48px));
  margin: -48px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.company-identity {
  min-width: 0;
}

.company-logo-card {
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  margin: 0 0 24px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(7, 12, 19, 0.1);
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(5, 18, 42, 0.2);
}

.company-logo-card img {
  width: 100%;
  max-height: 92px;
  object-fit: contain;
}

.company-profile .article-back {
  margin-bottom: 14px;
}

.company-profile h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.company-profile p {
  max-width: 760px;
  margin: 0;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.company-info-card {
  display: grid;
  gap: 18px;
  margin-top: 58px;
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--brand-strong) 14%, var(--line));
  border-radius: var(--radius);
}

.company-info-source {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.company-info-card dl div {
  display: grid;
  gap: 6px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.company-info-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-info-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.company-info-card dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.company-info-card a {
  color: var(--accent);
}

.company-products {
  display: grid;
  gap: 10px;
}

.company-products > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.company-products > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-products span {
  padding: 7px 9px;
  color: color-mix(in srgb, var(--text) 90%, var(--accent));
  background: color-mix(in srgb, var(--brand-strong) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--line));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.company-deep-dive {
  width: min(1060px, calc(100vw - 48px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.company-about,
.company-timeline,
.company-internal-links {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.company-about h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.company-about p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  font-size: 17px;
  line-height: 1.7;
}

.company-product-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.company-product-cloud a {
  padding: 8px 10px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

[data-theme="dark"] .company-product-cloud a {
  color: var(--accent);
}

.company-timeline {
  display: grid;
  gap: 14px;
}

.company-timeline article {
  display: grid;
  gap: 6px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.company-timeline article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-timeline strong,
.company-internal-links strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.company-internal-links {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.company-internal-links a {
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 800;
}

[data-theme="dark"] .company-internal-links a {
  color: var(--accent);
}

.company-news-section {
  width: min(1060px, calc(100vw - 48px));
  margin-inline: auto;
  margin-top: 34px;
}

.company-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.company-news-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-news-card:hover,
.company-news-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(5, 18, 42, 0.12);
  transform: translateY(-2px);
}

.company-news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-soft);
}

.company-news-card strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.company-news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.search-result-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-result-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  background: var(--surface-soft);
}

.search-result-card h3 {
  margin: 9px 0 8px;
  font-size: 21px;
  line-height: 1.22;
}

.search-result-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.not-found-page {
  width: min(820px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 96px) 0;
}

.not-found-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.not-found-panel h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.not-found-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.not-found-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 8px;
  font-weight: 900;
}

.not-found-actions a + a {
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(88, 199, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(21, 109, 232, 0.24), transparent 30%),
    linear-gradient(135deg, #06152f 0%, #0b2f71 45%, #08214d 100%);
}

.footer-inner {
  width: min(1000px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 38px 0 34px;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-bottom: 34px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-brand img {
  width: 230px;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(34px, 7vw, 96px);
  padding: 38px 0 30px;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer-grid a,
.footer-bottom a {
  color: #fff;
  font-weight: 700;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 16px;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-grid svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.contact-page {
  max-width: 1120px;
}

.about-page,
.policy-page {
  max-width: 1120px;
}

.legal-hero,
.legal-content article {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.25);
}

.legal-hero {
  margin-bottom: 1.25rem;
}

.contact-page .legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.28), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(37, 99, 235, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.78));
}

.contact-page .legal-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -45% 42%;
  height: 260px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  filter: blur(34px);
  pointer-events: none;
}

.about-page .legal-hero,
.policy-page .legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.8)),
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.22), transparent 34%);
}

.about-page .legal-hero::before,
.policy-page .legal-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
  pointer-events: none;
}

.legal-hero h1 {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-hero p,
.legal-content p {
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content h2 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.legal-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.legal-highlights article {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 22px;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.62));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.2);
}

.legal-highlights h2 {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.legal-highlights p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-panel,
.contact-routes {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-panel {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

.contact-card,
.contact-guidance,
.contact-form,
.contact-routes article {
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.74));
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.22);
}

.contact-card-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.contact-card h2,
.contact-guidance h2,
.contact-form h2,
.contact-routes h2 {
  margin: 0;
}

.contact-card p,
.contact-guidance p,
.contact-routes p,
.contact-form-note {
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-email,
.contact-secondary-link,
.contact-routes a,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  color: #06111f;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.contact-email:hover,
.contact-secondary-link:hover,
.contact-routes a:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
}

.contact-card small {
  color: rgba(226, 232, 240, 0.72);
}

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.contact-highlights div {
  min-height: 92px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(2, 6, 23, 0.28);
}

.contact-highlights strong,
.contact-highlights span {
  display: block;
}

.contact-highlights strong {
  color: var(--accent);
  font-size: 1rem;
}

.contact-highlights span {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-guidance {
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.contact-guidance ul {
  display: grid;
  gap: 0.8rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-guidance li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.55;
}

.contact-guidance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.13);
}

.contact-secondary-link {
  margin-top: 0.25rem;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  background: rgba(2, 6, 23, 0.48);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

.contact-routes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-routes article {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-routes article:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .social-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-card {
    min-height: 210px;
  }

  .side-stack .mini-card {
    min-height: 230px;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .popular-section {
    position: static;
  }

  .article-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    padding-top: 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .company-profile,
  .company-deep-dive,
  .company-news-grid,
  .contact-panel,
  .contact-routes {
    grid-template-columns: 1fr;
  }

  .contact-highlights {
    grid-template-columns: 1fr;
  }

  .legal-highlights {
    grid-template-columns: 1fr;
  }

  .company-internal-links {
    grid-column: auto;
  }

}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 24px, 1440px);
  }

  .topbar {
    min-height: 68px;
    grid-template-columns: 1fr auto auto;
    justify-content: space-between;
    gap: 10px;
  }

  .brand-logo {
    width: 176px;
  }

  .search {
    justify-self: end;
  }

  .search.is-open {
    width: 100%;
  }

  .nav-row {
    width: var(--content);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .adblock-notice {
    align-items: flex-start;
    flex-direction: column;
  }
.theme-control {
    margin-left: 6px;
    padding-left: 12px;
  }

  .menu-toggle {
    display: grid;
  }

  .category-nav {
    position: fixed;
    top: 128px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .category-nav a {
    color: var(--text);
    padding: 13px 12px;
    border-radius: 6px;
  }

  .category-nav a:hover,
  .category-nav a.is-active {
    color: var(--text);
    background: var(--surface-soft);
  }

  .category-nav a::after {
    display: none;
  }

  body.menu-open .category-nav {
    display: flex;
  }

  main {
    padding-top: 18px;
  }

  .category-hero {
    margin-top: -18px;
    margin-bottom: 28px;
  }

  .category-hero::before,
  .category-hero-inner {
    min-height: 220px;
  }

  .category-hero-inner {
    margin-top: -220px;
    padding: 34px 0;
  }

  .category-hero-meta {
    gap: 7px;
  }

  .category-hero-meta span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .lead-card {
    min-height: 430px;
  }

  .side-stack,
  .news-grid,
  .newsletter-strip {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 210px;
  }

  .side-stack .mini-card {
    min-height: 220px;
  }

  .story-overlay {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .lead-card h2 {
    font-size: 31px;
  }

  .lead-card p {
    font-size: 16px;
  }

  .news-card {
    grid-template-columns: 132px 1fr;
    grid-template-rows: auto;
  }

  .news-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-image-link {
    aspect-ratio: 1;
  }

  .news-card img {
    aspect-ratio: 1;
  }

  .article-shell,
  .search-page,
  .company-page {
    width: 100%;
  }

  .article-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .article-hero-copy > p {
    font-size: 17px;
  }

  .article-share {
    margin-top: 16px;
  }

  .share-actions a,
  .share-actions button {
    width: 42px;
    height: 42px;
  }

  .article-layout {
    margin-top: 32px;
  }

  .editorial-grid,
  .newsletter-form,
  .search-page-form,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .company-profile {
    width: min(100vw - 24px, 1040px);
    margin-top: -34px;
  }

  .company-info-card {
    margin-top: 0;
  }

  .company-news-section {
    width: min(100vw - 24px, 1040px);
  }

  .company-profile h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .search-result-image {
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    width: min(100vw - 28px, 1000px);
    padding: 32px 0 30px;
  }

  .footer-brand {
    justify-items: start;
    text-align: left;
  }

  .footer-brand img {
    width: 205px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
  }

  .brand-logo {
    width: 158px;
  }

  .lead-card {
    min-height: 390px;
  }

  .lead-card h2 {
    font-size: 27px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .popular-card h3 {
    font-size: 14px;
  }

  .news-image-link {
    aspect-ratio: 16 / 9;
  }

  .news-card img {
    aspect-ratio: 16 / 9;
  }

  .article-hero {
    padding: 20px;
  }

  .article-media figure img {
    aspect-ratio: 16 / 10;
  }

  .article-content .article-lead {
    font-size: 19px;
  }

  .article-content p {
    font-size: 16px;
  }

  .article-most-viewed,
  .article-latest {
    padding: 14px;
  }

  .most-viewed-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .search-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card,
  .story-card::before,
  .story-card img,
  .story-overlay,
  .news-card,
  .news-card h3,
  .news-card img,
  .news-image-link::before,
  .news-image-link::after,
  .news-image-link,
  .popular-card,
  .popular-image-link::after,
  .popular-image-link img,
  .related-card,
  .related-card img,
  .related-card h3,
  .share-actions a,
  .share-actions button {
    transition: none;
  }

  .story-card:hover,
  .story-card:focus-within,
  .news-card:hover,
  .news-card:focus-within,
  .story-card:hover .story-overlay,
  .story-card:focus-within .story-overlay,
  .news-card:hover h3,
  .news-card:focus-within h3,
  .popular-card:hover,
  .popular-card:focus-within,
  .popular-card:hover .popular-image-link img,
  .popular-card:focus-within .popular-image-link img,
  .related-card:hover,
  .related-card:focus-visible,
  .share-actions a:hover,
  .share-actions a:focus-visible,
  .share-actions button:hover,
  .share-actions button:focus-visible {
    transform: none;
  }
}

.empty-state {
  margin: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.empty-state a {
  color: var(--accent);
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, var(--surface-soft)), var(--bg));
}

.admin-shell {
  width: min(1500px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.admin-header {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
}

.admin-brand img {
  width: 210px;
  height: auto;
  object-fit: contain;
}

.admin-header h1 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-header p,
.admin-login p {
  margin: 0;
  color: var(--muted);
}

.admin-session {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-session button {
  min-height: 34px;
}

.admin-login,
.admin-sidebar,
.admin-editor {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-login {
  max-width: 760px;
  padding: 22px;
}

.admin-login label,
.admin-editor label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.admin-token-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 10px 0;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1fr;
  gap: 18px;
  align-items: start;
}

.admin-sidebar,
.admin-editor {
  min-height: 680px;
  padding: 18px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-stats div {
  padding: 12px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: var(--radius);
}

.admin-stats strong {
  display: block;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-create-button {
  width: 100%;
  margin-bottom: 12px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tabs button {
  min-height: 36px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft) 64%, transparent);
  border: 1px solid var(--line);
  font-size: 12px;
}

.admin-tabs button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.admin-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-news-list {
  max-height: 640px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.admin-news-item {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: color-mix(in srgb, var(--surface-soft) 44%, transparent);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.admin-news-item:hover,
.admin-news-item.is-active {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}

.admin-news-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.admin-news-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-news-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-news-category,
.admin-badge {
  width: max-content;
  padding: 3px 7px;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.admin-badge {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
}

.admin-status {
  width: max-content;
  padding: 3px 7px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.admin-status-published {
  color: #0d7a43;
  background: color-mix(in srgb, #22a767 12%, transparent);
  border-color: color-mix(in srgb, #22a767 40%, transparent);
}

.admin-status-draft,
.admin-status-needs_review {
  color: #a66300;
  background: color-mix(in srgb, #ffb020 14%, transparent);
  border-color: color-mix(in srgb, #ffb020 44%, transparent);
}

.admin-status-archived {
  color: var(--muted);
}

.admin-editor form {
  display: grid;
  gap: 14px;
}

.admin-empty {
  display: grid;
  min-height: 420px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.admin-empty h2,
.admin-editor h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.admin-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-editor-head a {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-image-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-image-result {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-image-result[data-type="success"] {
  color: #168252;
}

.admin-image-result[data-type="warn"] {
  color: #a66300;
}

.admin-image-result[data-type="error"] {
  color: #d83535;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 48%, transparent);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.admin-body textarea {
  resize: vertical;
}

#fieldContent {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.admin-seo-panel,
.admin-author-panel,
.admin-block-panel,
.admin-history,
.admin-advanced {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-soft) 54%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.admin-section-title h3 {
  margin: 0;
  font-size: 20px;
}

.admin-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-content-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.admin-content-tools button {
  min-height: 36px;
  font-size: 12px;
}

.admin-block-editor {
  display: grid;
  gap: 12px;
}

.admin-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.admin-paragraphs {
  display: grid;
  gap: 10px;
}

.admin-advanced summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.admin-history p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-history p:last-child {
  border-bottom: 0;
}

.admin-history span {
  color: var(--muted);
  font-size: 13px;
}

.admin-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-soft) 54%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-preview img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-preview h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.admin-preview h4 {
  margin: 12px 0 4px;
  font-size: 16px;
}

.admin-preview p {
  margin: 0;
  color: var(--muted);
}

.admin-preview-error {
  color: #d83535;
  font-weight: 900;
}

.admin-body button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  cursor: pointer;
  background: var(--brand);
  border: 0;
  border-radius: 7px;
  font-weight: 900;
}

.admin-body button.secondary {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
  border: 1px solid var(--line);
}

.admin-body button.danger {
  background: #d83535;
}

.admin-body button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-empty-list {
  margin: 18px 0;
  color: var(--muted);
  text-align: center;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(440px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.admin-toast[data-type="success"] {
  border-left-color: #22a767;
}

.admin-toast[data-type="error"] {
  border-left-color: #d83535;
}

@media (max-width: 980px) {
  .author-layout {
    grid-template-columns: 1fr;
  }

  .author-sidebar {
    position: static;
  }

  .author-post-grid,
  .author-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .author-page {
    width: min(100% - 28px, var(--content));
    padding-top: 28px;
  }

  .author-post-grid,
  .author-list-grid {
    grid-template-columns: 1fr;
  }

  .author-profile-card img {
    width: 132px;
    height: 132px;
  }
}

@media (max-width: 980px) {
  .admin-header,
  .admin-workspace,
  .admin-toolbar,
  .admin-grid,
  .admin-image-row,
  .admin-block-head {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-editor {
    min-height: auto;
  }

  .admin-news-list {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    width: min(100% - 24px, 1500px);
    padding-top: 18px;
  }

  .admin-header {
    padding: 16px;
  }

  .admin-token-row,
  .admin-editor-head {
    display: grid;
    grid-template-columns: 1fr;
  }
}


