/* SMARTME Articles page */
.smartme-articles-page {
  position: relative;
  overflow: hidden;
}

.smartme-articles-page .articles-hero {
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: 56px;
  background:
    radial-gradient(circle at 18% 10%, rgba(var(--accent-rgb), 0.18), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(var(--accent-2-rgb), 0.18), transparent 30%);
}

body.theme-light .smartme-articles-page .articles-hero {
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(14, 165, 233, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0));
}

.smartme-articles-page .articles-list-section {
  padding-top: 48px;
}

.smartme-articles-page .articles-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px -48px rgba(var(--accent-rgb), 0.55);
}

body.theme-light .smartme-articles-page .articles-featured-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px -52px rgba(15, 23, 42, 0.34);
}

.smartme-articles-page .articles-featured-media,
.smartme-articles-page .articles-thumb {
  display: block;
  position: relative;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-2-rgb), 0.1)),
    var(--surface-2);
  overflow: hidden;
}

.smartme-articles-page .articles-featured-media img,
.smartme-articles-page .articles-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.smartme-articles-page .articles-featured-media {
  min-height: 390px;
}

.smartme-articles-page .articles-featured-card:hover img,
.smartme-articles-page .articles-card:hover img {
  transform: scale(1.035);
}

.smartme-articles-page .articles-featured-body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.smartme-articles-page .articles-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.smartme-articles-page .articles-featured-body h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.smartme-articles-page .articles-featured-body h2 a,
.smartme-articles-page .post-title a {
  color: var(--text);
  text-decoration: none;
}

.smartme-articles-page .articles-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.smartme-articles-page .articles-meta span {
  color: var(--accent-2);
}

.smartme-articles-page .articles-excerpt,
.smartme-articles-page .post-excerpt {
  color: var(--text-muted);
}

.smartme-articles-page .articles-excerpt {
  font-size: 1.02rem;
  line-height: 1.75;
}

.smartme-articles-page .articles-read-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.smartme-articles-page .articles-read-link::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.2 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 1 1-1.4-1.4l4.3-4.3H4a1 1 0 1 1 0-2h13.5l-4.3-4.3a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.2 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 1 1-1.4-1.4l4.3-4.3H4a1 1 0 1 1 0-2h13.5l-4.3-4.3a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}

.smartme-articles-page .articles-read-link:hover::after {
  transform: translateX(4px);
}

.smartme-articles-page .articles-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(44px, 7vw, 76px) 0 26px;
}

.smartme-articles-page .articles-section-head .eyebrow {
  margin: 0;
}

.smartme-articles-page .articles-section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.smartme-articles-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.smartme-articles-page .articles-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.smartme-articles-page .articles-thumb {
  aspect-ratio: 16 / 10;
}

.smartme-articles-page .articles-card .post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.smartme-articles-page .articles-card .articles-read-link {
  margin-top: auto;
  padding-top: 18px;
}

.smartme-articles-page .articles-placeholder {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--accent);
}

.smartme-articles-page .articles-placeholder svg {
  width: 58px;
  height: 58px;
  opacity: 0.9;
}

.smartme-articles-page .articles-generated-cover,
.smartme-article-single .articles-generated-cover {
  position: relative;
  display: flex;
  min-height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 111, 49, 0.28), transparent 26%),
    radial-gradient(circle at 78% 24%, rgba(43, 116, 255, 0.38), transparent 32%),
    linear-gradient(135deg, #08111f, #13294a 52%, #0d1728);
}

body.theme-light .smartme-articles-page .articles-generated-cover,
body.theme-light .smartme-article-single .articles-generated-cover {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 111, 49, 0.2), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(43, 116, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #eef5ff, #ffffff 52%, #e8f4ff);
}

.smartme-articles-page .cover-grid,
.smartme-article-single .cover-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

body.theme-light .smartme-articles-page .cover-grid,
body.theme-light .smartme-article-single .cover-grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(37,99,235,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.12) 1px, transparent 1px);
}

.smartme-articles-page .cover-orb,
.smartme-article-single .cover-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
}

.smartme-articles-page .cover-orb-one,
.smartme-article-single .cover-orb-one {
  width: 120px;
  height: 120px;
  left: 12%;
  top: 16%;
  background: rgba(43, 116, 255, 0.58);
}

.smartme-articles-page .cover-orb-two,
.smartme-article-single .cover-orb-two {
  width: 150px;
  height: 150px;
  right: 10%;
  bottom: 8%;
  background: rgba(255, 111, 49, 0.42);
}

.smartme-articles-page .cover-device,
.smartme-article-single .cover-device {
  position: relative;
  width: min(48%, 220px);
  aspect-ratio: 1.28;
  margin-right: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 24px 60px rgba(2, 8, 23, 0.25);
}

body.theme-light .smartme-articles-page .cover-device,
body.theme-light .smartme-article-single .cover-device {
  border-color: rgba(37,99,235,0.18);
  background: rgba(255,255,255,0.72);
}

.smartme-articles-page .cover-device-bar,
.smartme-articles-page .cover-device-line,
.smartme-articles-page .cover-device-bubble,
.smartme-article-single .cover-device-bar,
.smartme-article-single .cover-device-line,
.smartme-article-single .cover-device-bubble {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.smartme-articles-page .cover-device-bar,
.smartme-article-single .cover-device-bar {
  width: 58%;
  height: 12%;
  left: 14%;
  top: 18%;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
}

.smartme-articles-page .cover-device-line,
.smartme-article-single .cover-device-line {
  width: 72%;
  height: 8%;
  left: 14%;
  top: 46%;
  background: rgba(148, 163, 184, 0.42);
}

.smartme-articles-page .cover-device-line.short,
.smartme-article-single .cover-device-line.short {
  width: 46%;
  top: 63%;
}

.smartme-articles-page .cover-device-bubble,
.smartme-article-single .cover-device-bubble {
  width: 28%;
  aspect-ratio: 1;
  right: 10%;
  bottom: 10%;
  background: linear-gradient(135deg, #ff6f31, #fbbf24);
}

.smartme-articles-page .cover-text,
.smartme-article-single .cover-text {
  display: grid;
  gap: 6px;
  color: #fff;
  text-align: left;
}

body.theme-light .smartme-articles-page .cover-text,
body.theme-light .smartme-article-single .cover-text {
  color: #0f172a;
}

.smartme-articles-page .cover-text strong,
.smartme-article-single .cover-text strong {
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.smartme-articles-page .cover-text em,
.smartme-article-single .cover-text em {
  color: #67e8f9;
  font-style: normal;
  font-weight: 800;
}

body.theme-light .smartme-articles-page .cover-text em,
body.theme-light .smartme-article-single .cover-text em {
  color: #2563eb;
}

/* Single article templates */
.smartme-article-single {
  overflow: hidden;
}

.smartme-article-hero {
  padding-top: calc(var(--header-h) + 84px);
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--accent-rgb), 0.16), transparent 32%),
    radial-gradient(circle at 78% 0%, rgba(var(--accent-2-rgb), 0.12), transparent 34%);
}

body.theme-light .smartme-article-hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 78% 0%, rgba(14, 165, 233, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0));
}

.smartme-article-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.smartme-article-title {
  margin: 16px 0 14px;
  color: var(--text);
  font-size: clamp(2.4rem, 5.4vw, 5.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.smartme-article-meta {
  color: var(--text-dim);
  font-size: 0.94rem;
  font-weight: 800;
}

.smartme-article-lead {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.smartme-article-media-wrap {
  margin-top: 12px;
}

.smartme-article-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 34px 90px -62px rgba(var(--accent-rgb), 0.65);
}

body.theme-light .smartme-article-media {
  box-shadow: 0 34px 90px -66px rgba(15, 23, 42, 0.34);
}

.smartme-article-media img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.smartme-article-media .articles-generated-cover {
  min-height: min(54vw, 560px);
}

.smartme-article-content-section {
  padding-top: 44px;
}

.smartme-article-shell {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255,255,255,0.035);
}

body.theme-light .smartme-article-shell {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 26px 70px -58px rgba(15, 23, 42, 0.3);
}

.smartme-article-shell--classic {
  padding: clamp(28px, 5vw, 58px);
}

.smartme-article-shell--editorial {
  padding: clamp(32px, 5vw, 68px);
}

.smartme-article-shell--report {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(28px, 4vw, 54px);
}

.smartme-article-shell--spotlight,
.smartme-article-shell--editorial {
  display: grid;
  align-items: start;
  gap: clamp(28px, 4vw, 58px);
}

.smartme-article-shell--editorial {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
}

.smartme-article-shell--spotlight {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent 28%),
    rgba(255,255,255,0.035);
}

body.theme-light .smartme-article-shell--spotlight {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 30%),
    rgba(255,255,255,0.92);
}

.smartme-article-feature-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.smartme-article-aside-note {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent 42%),
    rgba(255,255,255,0.045);
  color: var(--text-muted);
  box-shadow: 0 22px 52px -44px rgba(0, 0, 0, 0.55);
}

body.theme-light .smartme-article-aside-note {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 44%),
    rgba(255,255,255,0.92);
  box-shadow: 0 20px 48px -38px rgba(15, 23, 42, 0.28);
}

.smartme-article-aside-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.smartme-article-aside-note span::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.smartme-article-aside-note p {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.72;
}

.smartme-article-single--spotlight .smartme-article-feature-media {
  order: 2;
}

.smartme-article-single--spotlight .smartme-article-body {
  order: 1;
}

.smartme-article-single--spotlight .smartme-article-title {
  max-width: 980px;
  margin-inline: auto;
}

.smartme-article-single--spotlight .smartme-article-media,
.smartme-article-single--editorial .smartme-article-media {
  box-shadow: 0 42px 90px -66px rgba(var(--accent-rgb), 0.75);
}

.smartme-article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.smartme-article-sidebar strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--text);
}

.smartme-article-body {
  color: var(--text-muted);
}

.smartme-article-body > :first-child {
  margin-top: 0;
}

.smartme-article-body h2,
.smartme-article-body h3,
.smartme-article-body h4 {
  color: var(--text);
}

.smartme-article-body h2 {
  margin-top: 2.1em;
  margin-bottom: 0.75em;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.2;
}

.smartme-article-body h3 {
  margin-top: 1.65em;
  margin-bottom: 0.6em;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
}

.smartme-article-body p,
.smartme-article-body li {
  font-size: 1.04rem;
  line-height: 1.82;
}

.smartme-article-body ul,
.smartme-article-body ol {
  padding-left: 1.3em;
}

.smartme-article-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.smartme-article-body td,
.smartme-article-body th {
  border: 1px solid var(--border);
  padding: 12px 14px;
}

body.theme-light .smartme-article-body td,
body.theme-light .smartme-article-body th {
  background: rgba(248, 250, 252, 0.66);
}

.smartme-article-single--editorial .smartme-article-media,
.smartme-article-single--report .smartme-article-media {
  max-width: 1180px;
  margin-inline: auto;
}

.smartme-article-single--editorial .smartme-article-title {
  font-size: clamp(2.8rem, 6vw, 6.4rem);
}

.smartme-article-single--report .smartme-article-hero-inner {
  max-width: 1040px;
}

@media (max-width: 900px) {
  .smartme-article-shell--report,
  .smartme-article-shell--editorial,
  .smartme-article-shell--spotlight {
    grid-template-columns: 1fr;
  }

  .smartme-article-sidebar,
  .smartme-article-feature-media {
    position: static;
  }

  .smartme-article-aside-note {
    margin-top: 14px;
    padding: 16px;
  }

  .smartme-article-single--spotlight .smartme-article-feature-media,
  .smartme-article-single--spotlight .smartme-article-body {
    order: initial;
  }
}

@media (max-width: 640px) {
  .smartme-article-hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 24px;
  }

  .smartme-article-title {
    font-size: clamp(2rem, 12vw, 3.3rem);
    line-height: 1.02;
  }

  .smartme-article-media,
  .smartme-article-shell {
    border-radius: 22px;
  }

  .smartme-article-media .articles-generated-cover {
    min-height: 260px;
  }

  .smartme-article-content-section {
    padding-top: 28px;
  }

  .smartme-article-shell--classic,
  .smartme-article-shell--editorial,
  .smartme-article-shell--report,
  .smartme-article-shell--spotlight {
    padding: 24px;
  }

  .smartme-articles-page .cover-device,
  .smartme-article-single .cover-device {
    width: 42%;
    margin-right: 12px;
  }
}

.smartme-articles-page .articles-pagination {
  margin-top: 42px;
}

.smartme-articles-page .articles-pagination ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.smartme-articles-page .articles-pagination a,
.smartme-articles-page .articles-pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.smartme-articles-page .articles-pagination .current,
.smartme-articles-page .articles-pagination a:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
}

.smartme-articles-page .articles-empty {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  align-items: center;
  gap: 18px;
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 14px;
  }

  .nav-menu .nav-link,
  .nav-menu > li > a {
    padding-inline: 11px;
  }
}

@media (max-width: 980px) {
  .smartme-articles-page .articles-featured-card,
  .smartme-articles-page .articles-grid {
    grid-template-columns: 1fr;
  }

  .smartme-articles-page .articles-featured-media {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .smartme-articles-page .articles-hero {
    padding-top: calc(var(--header-h) + 58px);
    padding-bottom: 34px;
  }

  .smartme-articles-page .articles-list-section {
    padding-top: 26px;
  }

  .smartme-articles-page .articles-featured-card {
    border-radius: 22px;
  }

  .smartme-articles-page .articles-featured-media {
    min-height: 220px;
  }

  .smartme-articles-page .articles-featured-body {
    padding: 24px;
  }

  .smartme-articles-page .articles-section-head {
    display: block;
  }

  .smartme-articles-page .articles-section-head h2 {
    margin-top: 12px;
  }
}
