:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --paper: #f7f7f7;
  --paper-2: #ffffff;
  --line: #e8e8e8;
  --btc: #f2b435;
  --btc-deep: #d49a1f;
  --navy: #111111;
  --ct-black: #0e0e0e;
  --ct-yellow: #f2b435;
  --shell: min(1200px, calc(100% - 2rem));
  --font-display: "DM Sans", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: #f5f5f5;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Cointelegraph-style header —— */
.ct-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.ct-header__top {
  background: var(--ct-black);
  color: #fff;
}

.ct-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.ct-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ct-brand__mark {
  display: inline-flex;
  flex: 0 0 auto;
}

.ct-brand__text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.ct-brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ct-yellow);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.ct-brand__tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
}

.ct-brand--footer .ct-brand__name {
  color: var(--ct-yellow);
}

.ct-header__utils {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ct-eco,
.ct-lang {
  position: relative;
}

.ct-eco summary,
.ct-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.ct-eco summary::-webkit-details-marker,
.ct-lang summary::-webkit-details-marker {
  display: none;
}

.ct-eco__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ct-yellow);
}

.ct-eco__menu,
.ct-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 160px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.35rem;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ct-eco__menu a,
.ct-lang__menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.88rem;
}

.ct-eco__menu a:hover,
.ct-lang__menu a:hover,
.ct-lang__menu a.is-active {
  background: rgba(242, 180, 53, 0.18);
  color: var(--ct-yellow);
}

.ct-social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ct-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
}

.ct-social__link:hover {
  color: var(--ct-yellow);
}

.ct-header__nav {
  background: var(--ct-yellow);
}

.ct-header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
}

.ct-nav {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.ct-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.ct-nav a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.ct-search {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ct-search input {
  width: 0;
  opacity: 0;
  border: 0;
  background: transparent;
  transition: width 0.2s ease, opacity 0.2s ease;
  font: inherit;
  color: #111;
}

.ct-search:focus-within input,
.ct-search input:not(:placeholder-shown) {
  width: 140px;
  opacity: 1;
  outline: none;
}

.ct-search button {
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  padding: 0.35rem;
}

/* —— Cointelegraph-style footer —— */
.ct-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2rem;
}

.ct-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.ct-footer a:hover {
  color: var(--ct-yellow);
}

.ct-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
}

.ct-footer__blurb {
  margin: 0.9rem 0 1rem;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.ct-social--footer .ct-social__link {
  width: auto;
  height: auto;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.ct-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ct-footer__col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.ct-footer__col h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.ct-footer__col a {
  font-size: 0.88rem;
}

.ct-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-footer__bottom-inner {
  padding: 0.9rem 0 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.ct-footer__bottom-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .ct-footer__inner {
    grid-template-columns: 1fr;
  }

  .ct-header__top-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0;
  }

  .ct-brand__name {
    max-width: 70vw;
  }

  .ct-nav a {
    padding: 0.65rem 0.55rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .ct-social {
    display: none;
  }

  .ct-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .ct-search input {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: clamp(150px, 24vh, 210px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(20, 28, 36, 0.72) 8%, rgba(20, 28, 36, 0.28) 46%, rgba(224, 135, 0, 0.18) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1' d='M0 80h160M80 0v160'/%3E%3C/svg%3E"),
    radial-gradient(circle at 70% 40%, #2a4d66 0%, #141c24 62%);
  transform: scale(1.02);
  animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 1.15rem 0 1rem;
  color: #f7f3ea;
  max-width: 46rem;
  animation: hero-rise 0.9s ease both;
}

.hero__brand {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(247, 243, 234, 0.88);
}

.hero__lead {
  margin: 0 0 0.65rem;
  color: rgba(247, 243, 234, 0.78);
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.hero__note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(247, 243, 234, 0.62);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.95rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--btc);
  color: #1a1205;
}

.btn--primary:hover {
  background: #f0a12a;
}

.btn--ghost {
  border: 1px solid rgba(247, 243, 234, 0.4);
  color: #f7f3ea;
}

.data-sections,
.posts-section,
.content-pad {
  padding: 3rem 0 4rem;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.notice {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.post-list {
  display: grid;
  gap: 0;
}

.post-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.post-row__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.post-row__title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.post-row__title a {
  text-decoration: none;
  color: inherit;
}

.post-row__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-row__link {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--btc-deep);
}

.single-post__header {
  margin-bottom: 1.5rem;
}

.single-post__meta {
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.single-post__thumb {
  margin: 0 0 1.25rem;
}

.single-post__thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.btc-ct-attr {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #5c6b78;
}

/* —— Cointelegraph Markets category listing —— */
.ct-markets-page {
  padding-bottom: 3rem;
}

.ct-markets__head {
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.ct-markets__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #13181e;
}

.ct-markets__desc {
  margin: 0;
  color: #5c6b78;
  font-size: 1.05rem;
  line-height: 1.5;
}

.ct-markets__feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.ct-markets__hero {
  margin: 0;
  min-height: 420px;
  background: #13181e;
  overflow: hidden;
}

.ct-markets__hero-link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 420px;
  color: #fff;
  text-decoration: none;
}

.ct-markets__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-markets__hero-img--fallback {
  background:
    linear-gradient(145deg, #1a2330 0%, #0d1218 55%, #243447 100%);
}

.ct-markets__hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 20, 0.88) 45%, rgba(10, 14, 20, 0.96) 100%);
}

.ct-markets__hero-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ct-markets__hero-excerpt {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ct-markets__meta {
  font-size: 0.8rem;
  color: #8a98a8;
}

.ct-markets__hero-overlay .ct-markets__meta {
  color: rgba(255, 255, 255, 0.7);
}

.ct-markets__side {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e6ebf0;
}

.ct-markets__side-item {
  border-bottom: 1px solid #e6ebf0;
}

.ct-markets__side-item a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}

.ct-markets__side-item.has-thumb a {
  grid-template-columns: 120px 1fr;
  align-items: start;
}

.ct-markets__side-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.ct-markets__side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-markets__side-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #13181e;
}

.ct-markets__side-item a:hover .ct-markets__side-title {
  color: #c9971a;
}

.ct-markets__side-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ct-markets__latest-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #13181e;
}

.ct-markets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.ct-markets__card {
  margin: 0;
}

.ct-markets__card a {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.ct-markets__card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.ct-markets__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ct-markets__card a:hover .ct-markets__card-thumb img {
  transform: scale(1.04);
}

.ct-markets__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #13181e;
}

.ct-markets__card a:hover .ct-markets__card-title {
  color: #c9971a;
}

.ct-markets__card-excerpt {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5c6b78;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ct-markets__more {
  margin: 2rem 0 0;
  text-align: center;
}

.ct-markets__more-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid #13181e;
  background: #fff;
  color: #13181e;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ct-markets__more-btn:hover {
  background: #13181e;
  color: #fff;
}

/* —— Cointelegraph-style article —— */
.ct-article {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.ct-article__header {
  margin-bottom: 1.5rem;
}

.ct-article__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9971a;
}

.ct-article__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #13181e;
}

.ct-article__meta {
  margin: 0;
  color: #5c6b78;
  font-size: 0.92rem;
}

.ct-article__cover {
  margin: 0 0 1.75rem;
}

.ct-article__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.ct-article__content {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #1c2430;
}

.ct-article__content p {
  margin: 0 0 1.15rem;
}

.ct-article__content img {
  max-width: 100%;
  height: auto;
}

.ct-article__content h2,
.ct-article__content h3 {
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: #13181e;
}

@media (max-width: 900px) {
  .ct-markets__feature {
    grid-template-columns: 1fr;
  }

  .ct-markets__hero,
  .ct-markets__hero-link {
    min-height: 320px;
  }

  .ct-markets__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ct-markets__grid {
    grid-template-columns: 1fr;
  }

  .ct-markets__side-item.has-thumb a {
    grid-template-columns: 96px 1fr;
  }
}

.entry-content > *:first-child {
  margin-top: 0;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .post-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero__content {
    padding: 0.95rem 0 0.85rem;
  }
}
