/*
Theme Name: P2P Investitor News V14
Description: Dotclear news theme matching p2pinvestitor.eu
Version: 2.1.48
Author: P2P Investitor
*/

:root {
  --p2p-navy: #101b24;
  --p2p-navy-2: #172a33;
  --p2p-green: #176f58;
  --p2p-green-2: #31856c;
  --p2p-lime: #b8e36d;
  --p2p-paper: #f5f7f6;
  --p2p-card: #ffffff;
  --p2p-line: #dce4e1;
  --p2p-muted: #65747a;
  --p2p-text: #13242d;
  --p2p-danger: #ae3434;
  --p2p-radius: 16px;
  --p2p-radius-sm: 10px;
  --p2p-shadow: 0 14px 40px rgba(16, 27, 36, 0.08);
  --p2p-shadow-hover: 0 18px 46px rgba(16, 27, 36, 0.14);
  --p2p-content: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--p2p-text);
  background: var(--p2p-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--p2p-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--p2p-green-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(184, 227, 109, 0.72);
  outline-offset: 3px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  padding-inline: max(20px, calc((100vw - var(--p2p-content)) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 82% -30%, rgba(49, 133, 108, 0.42), transparent 42%),
    var(--p2p-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 227, 109, 0.7), transparent);
}

.banner {
  width: auto;
  min-height: 82px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-title {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.site-title::before {
  width: 11px;
  height: 11px;
  margin-right: 10px;
  flex: 0 0 auto;
  content: "";
  background: var(--p2p-lime);
  border-radius: 3px;
  box-shadow: #0f8a68 8px 8px 0;
  transform: translateY(-4px);
}

.site-title a,
.site-title a:visited {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.site-title a::before {
  content: "p2p";
  margin-right: 0.34em;
  color: var(--p2p-lime);
  font-weight: 900;
  letter-spacing: -0.065em;
  text-transform: lowercase;
}

.site-title a::after {
  display: none;
  content: none;
}

.site-baseline {
  display: none;
}

.simple-menu-navigation {
  min-width: 0;
}

.simple-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
}

.simple-menu li {
  margin: 0;
}

.simple-menu a,
.simple-menu a:visited {
  display: inline-flex;
  min-height: 42px;
  padding: 0.65rem 0.78rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.simple-menu a:hover,
.simple-menu .active a,
.simple-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.simple-menu li:last-child a {
  margin-left: 0.35rem;
  padding-inline: 1rem;
  color: var(--p2p-navy);
  background: var(--p2p-lime);
}

.simple-menu li:last-child a:hover {
  background: #c8ee83;
}

.wrapper {
  width: min(calc(100% - 40px), var(--p2p-content));
  margin: 0 auto;
  padding: 46px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  flex: 1 0 auto;
}

/* Dotclear can render an empty sidebar. Do not reserve a blank column for it. */
.sidebar:empty {
  display: none;
}

.wrapper:has(.sidebar:empty) {
  grid-template-columns: minmax(0, 1fr);
}

/* Whitespace can prevent :empty from matching Dotclear's empty sidebar. */
.sidebar:not(:has(.widget)) {
  display: none;
}

.wrapper:not(:has(.sidebar .widget)) {
  grid-template-columns: minmax(0, 1fr);
}

.main,
.content,
.content-inner {
  min-width: 0;
}

/* Berlin's off-canvas control is not needed: this theme keeps the menu visible. */
#offcanvas-on,
#offcanvas-off {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.content-info,
.content-inner > h2:first-child,
.content-inner > h3:first-child {
  margin: 0 0 25px;
}

.content-info h2,
.content-info h3,
.content-inner > h2:first-child,
.content-inner > h3:first-child {
  margin: 0;
  color: var(--p2p-text);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.content-info p {
  max-width: 720px;
  margin: 0.7rem 0 0;
  color: var(--p2p-muted);
}

.dc-home .content,
.dc-category .content,
.dc-tag .content,
.dc-search .content,
.dc-archive-month .content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Category pages use the full content width instead of trapping posts in
   the second column next to the category heading. */
.dc-category .content {
  display: block;
}

.dc-category .content-info {
  width: 100%;
  margin-bottom: 26px;
}

.dc-category .content-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.dc-category .content-inner > .post {
  width: 100%;
}

/* Monthly archive: keep the list and every news card at full content width. */
.dc-archive-month .content {
  grid-template-columns: minmax(0, 1fr);
}

.dc-archive-month .content-info,
.dc-archive-month .content-inner,
.dc-archive-month .navlinks {
  width: 100%;
}

.dc-archive-month .content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.dc-archive-month .content-inner > .post {
  width: 100%;
}

/* A finished-looking landing state before the first article is published. */
.dc-home .content:not(:has(.news-lead)):not(:has(.post)):not(:has(.p2p-home-intro)) {
  min-height: 480px;
  padding: clamp(34px, 7vw, 76px);
  place-content: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(184, 227, 109, 0.2), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(49, 133, 108, 0.3), transparent 38%),
    linear-gradient(135deg, var(--p2p-navy), #183a3b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: var(--p2p-shadow);
  text-align: center;
}

.post {
  position: relative;
  margin: 0 0 24px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  background: var(--p2p-card);
  border: 1px solid var(--p2p-line);
  border-radius: var(--p2p-radius);
  box-shadow: 0 3px 14px rgba(16, 27, 36, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dc-home .post,
.dc-category .post,
.dc-tag .post,
.dc-search .post,
.dc-archive-month .post {
  margin: 0;
}

.dc-home .post:hover,
.dc-category .post:hover,
.dc-tag .post:hover,
.dc-search .post:hover {
  transform: translateY(-4px);
  border-color: #c8d8d2;
  box-shadow: var(--p2p-shadow-hover);
}

.dc-home .content > .post:first-of-type {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 227, 109, 0.17), transparent 34%),
    linear-gradient(135deg, var(--p2p-navy), #183a3b);
  border-color: transparent;
}

/* Compact editorial introduction shown above the latest posts. */
.p2p-home-intro {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d4e2dd;
  border-top: 5px solid var(--p2p-green);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(16, 27, 36, 0.07);
}

.p2p-home-intro::before {
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 230px;
  height: 230px;
  content: "";
  border: 36px solid rgba(184, 227, 109, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.p2p-home-intro__copy,
.p2p-home-focus {
  position: relative;
  z-index: 1;
}

.p2p-home-intro__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #eef2f0;
  border-bottom: 1px solid #d4e2dd;
}

.p2p-home-intro__image {
  display: block;
  width: 100%;
  height: auto;
}

.p2p-home-intro__copy {
  padding: clamp(24px, 3.2vw, 38px);
}

.p2p-home-intro__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--p2p-green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.p2p-home-intro h2 {
  max-width: 980px;
  margin: 0;
  color: var(--p2p-text);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 880;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.p2p-home-intro__lead {
  max-width: 980px;
  margin: 1rem 0 0;
  color: #50636a;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.65;
}

.p2p-home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.35rem;
}

.p2p-home-intro__primary,
.p2p-home-intro__secondary {
  display: inline-flex;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 820;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.p2p-home-intro__primary,
.p2p-home-intro__primary:visited {
  color: #fff;
  background: var(--p2p-green);
}

.p2p-home-intro__secondary,
.p2p-home-intro__secondary:visited {
  color: var(--p2p-text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c9d8d3;
}

.p2p-home-intro__primary:hover,
.p2p-home-intro__secondary:hover {
  transform: translateY(-2px);
}

.p2p-home-intro__primary:hover {
  color: #fff;
  background: var(--p2p-green-2);
}

.p2p-home-intro__secondary:hover {
  color: var(--p2p-green);
  background: #fff;
  border-color: #aac2ba;
}

.p2p-home-focus {
  align-self: center;
  padding: 22px 24px;
  color: var(--p2p-text);
  background: #eef5f2;
  border: 1px solid #d7e5e0;
  border-radius: 14px;
}

.p2p-home-focus__label {
  margin: 0 0 0.65rem;
  color: var(--p2p-green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.p2p-home-focus ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p2p-home-focus li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: #31484f;
  border-bottom: 1px solid #dce8e4;
  font-size: 0.86rem;
  font-weight: 720;
}

.p2p-home-focus li::before {
  position: absolute;
  top: 0.92rem;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--p2p-green-2);
  border-radius: 2px;
}

.p2p-home-latest {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  padding: 8px 0 2px;
  border-bottom: 1px solid var(--p2p-line);
}

.p2p-home-latest h2 {
  margin: 0;
  color: var(--p2p-text);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 880;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.p2p-home-latest a {
  color: var(--p2p-green);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

/* Clearly disclosed affiliate banner between the featured and recent posts. */
.news-banner {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  padding: 12px 16px 16px;
  align-items: center;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--p2p-line);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(16, 27, 36, 0.035);
}

.news-banner__label {
  margin-bottom: 7px;
  color: var(--p2p-muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.news-banner__slot {
  width: min(100%, 640px);
}

.news-banner__slot .widget {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-banner__slot .widget-title,
.news-banner__slot .widget > h2,
.news-banner__slot .widget > h3 {
  display: none;
}

.news-banner__slot p {
  margin: 0;
}

.news-banner a {
  display: block;
  width: 100%;
  line-height: 0;
}

.news-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.dc-home .content > .post:first-of-type .post-title a,
.dc-home .content > .post:first-of-type .post-title a:visited {
  color: #fff;
}

.dc-home .content > .post:first-of-type .post-meta,
.dc-home .content > .post:first-of-type .post-excerpt,
.dc-home .content > .post:first-of-type .post-content {
  color: rgba(255, 255, 255, 0.75);
}

.dc-home .content > .post:first-of-type .read-it a,
.dc-home .content > .post:first-of-type .post-read-it a {
  color: var(--p2p-navy);
  background: var(--p2p-lime);
}

.post-title {
  margin: 0 0 0.68rem;
  font-size: clamp(1.28rem, 2.5vw, 1.72rem);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.post-title a,
.post-title a:visited {
  color: var(--p2p-text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--p2p-green);
}

.post-meta {
  margin: 0 0 1.1rem;
  color: var(--p2p-muted);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.post-meta a {
  color: inherit;
}

.post-excerpt,
.post-content {
  color: #35484f;
}

.post-excerpt > :first-child,
.post-content > :first-child {
  margin-top: 0;
}

.post-excerpt > :last-child,
.post-content > :last-child {
  margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--p2p-text);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.3rem;
  color: #29483e;
  background: #edf5f1;
  border-left: 4px solid var(--p2p-green-2);
  border-radius: 0 var(--p2p-radius-sm) var(--p2p-radius-sm) 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--p2p-line);
  border-radius: var(--p2p-radius-sm);
}

.post-content th,
.post-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--p2p-line);
}

.post-content th {
  color: var(--p2p-text);
  background: #edf2f0;
}

.read-it,
.post-read-it {
  margin: 1.35rem 0 0;
}

.read-it a,
.read-it a:visited,
.post-read-it a,
.post-read-it a:visited,
.button,
button,
input[type="submit"] {
  display: inline-flex;
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--p2p-green);
  border: 0;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.read-it a:hover,
.post-read-it a:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  color: #fff;
  background: var(--p2p-green-2);
  transform: translateY(-1px);
}

.post.short .post-icon {
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: clamp(16px, 3vw, 26px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f7faf8;
  border-radius: 12px;
}

.dc-home .content > .post:first-of-type .post-icon {
  max-height: 320px;
  aspect-ratio: 2.2 / 1;
}

/* Listing pages: keep logos and first images as compact thumbnails. */
:is(.dc-archive-month, .dc-category, .dc-tag, .dc-search) .post.short .post-content:has(.post-icon) {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

:is(.dc-archive-month, .dc-category, .dc-tag, .dc-search) .post.short .post-icon {
  width: 180px;
  height: 110px;
  margin: 0;
  padding: 14px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f7faf8;
  border: 1px solid var(--p2p-line);
  border-radius: 8px;
}

.post-tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.post-tags a,
.tags a {
  display: inline-flex;
  padding: 0.3rem 0.58rem;
  color: #315449;
  background: #eaf3ef;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.sidebar {
  min-width: 0;
}

.widgets {
  position: sticky;
  top: 22px;
}

.widget {
  margin: 0 0 18px;
  padding: 22px;
  background: var(--p2p-card);
  border: 1px solid var(--p2p-line);
  border-radius: var(--p2p-radius);
  box-shadow: 0 3px 14px rgba(16, 27, 36, 0.03);
}

.widget h2,
.widget h3,
.widget-title {
  margin: 0 0 0.9rem;
  color: var(--p2p-text);
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-transform: none;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #edf1ef;
}

.widget a {
  color: #34484f;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.widget a:hover {
  color: var(--p2p-green);
}

.widget form,
.search form {
  display: flex;
  gap: 8px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  color: var(--p2p-text);
  background: #fff;
  border: 1px solid #ccd8d4;
  border-radius: 9px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.langs ul,
.languages ul {
  display: flex;
  gap: 8px;
}

.langs li + li,
.languages li + li {
  margin: 0;
  padding: 0;
  border: 0;
}

.langs a,
.languages a {
  display: inline-flex;
  min-width: 44px;
  padding: 0.45rem 0.65rem;
  justify-content: center;
  border: 1px solid var(--p2p-line);
  border-radius: 8px;
  text-transform: uppercase;
}

.archive-year,
.archive-month,
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.archive-year > li,
.archive-month > li,
.archive-list > li {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--p2p-line);
  border-radius: 12px;
}

.archive-year > li + li,
.archive-month > li + li,
.archive-list > li + li {
  margin-top: 10px;
}

.pagination {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--p2p-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  list-style: none;
}

.pagination > a {
  display: inline-flex;
  min-width: 150px;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
  color: var(--p2p-text);
  background: #fff;
  border: 1px solid var(--p2p-line);
  border-radius: 9px;
  text-decoration: none;
}

.pagination a:hover {
  color: #fff;
  background: var(--p2p-green);
  border-color: var(--p2p-green);
}

.pagination > .pagination-separator-before,
.pagination > .pagination-separator-after {
  display: none !important;
}

.pagination a > span {
  margin: 0;
  padding: 0;
  display: inline;
  min-width: 0;
  min-height: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.comments,
.comment-form,
#comments,
#comment-form {
  margin-top: 26px;
  padding: clamp(22px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--p2p-line);
  border-radius: var(--p2p-radius);
}

.message,
.info,
.success,
.warning,
.error {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 9px;
}

.message,
.info {
  color: #244b3e;
  background: #e7f2ed;
}

.error {
  color: #742525;
  background: #f8e8e8;
}

.footer {
  margin-top: auto;
  padding: 30px 0 16px;
  color: rgba(255, 255, 255, 0.76);
  background: #06111d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-inner,
.footer > div,
.footer > p {
  width: min(calc(100% - 40px), var(--p2p-content));
  margin-right: auto;
  margin-left: auto;
}

.footer a {
  color: #aebdca;
}

.footer > .p2p-footer-wrap {
  width: min(calc(100% - 40px), var(--p2p-content));
  padding: 0;
}

.p2p-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.44fr) repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.p2p-footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #fff !important;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.p2p-footer-wordmark::before {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  flex: 0 0 auto;
  content: "";
  background: var(--p2p-lime);
  border-radius: 3px;
  box-shadow: #0f8a68 6px 6px 0;
  transform: translateY(-3px);
}

.p2p-footer-wordmark .brand-p2p {
  color: var(--p2p-lime);
}

.p2p-footer-brand p {
  max-width: 390px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.p2p-footer-textlink {
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.p2p-footer-column h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.p2p-footer-column a {
  display: block;
  width: fit-content;
  margin: 0 0 6px;
  color: #aebdca;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.p2p-footer a:hover,
.p2p-footer a:focus-visible {
  color: var(--p2p-lime);
}

.p2p-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 13px;
  color: #8798a8;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  line-height: 1.45;
}

.p2p-footer-bottom a {
  color: #aebdca;
  text-decoration: none;
}

.poweredby {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  color: rgba(255, 255, 255, 0.44);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

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

.skip-links:focus-within {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px;
  overflow: visible;
  clip: auto;
  color: var(--p2p-navy);
  background: var(--p2p-lime);
  border-radius: 8px;
}

/* Editorial layout for individual news articles. */
.post-permalink {
  display: none !important;
}

.dc-post .content {
  display: block;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.dc-post .navlinks {
  display: flex;
  margin: 18px 0;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--p2p-muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--p2p-line);
  border-radius: 11px;
  font-size: 0.8rem;
}

.dc-post .navlinks a {
  color: var(--p2p-green);
  font-weight: 750;
  text-decoration: none;
}

.dc-post .post.simple {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(184, 227, 109, 0.17), transparent 32%),
    linear-gradient(135deg, var(--p2p-navy), #173b3a);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(16, 27, 36, 0.14);
}

.dc-post .post.simple > header {
  padding: clamp(34px, 4.2vw, 52px) clamp(28px, 4.5vw, 56px) 18px;
}

.dc-post .post.simple .post-title {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 4.1vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.dc-post .post.simple .post-meta {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.dc-post .post.simple .post-info {
  margin: 0;
}

.dc-post .post-author {
  display: inline;
}

.dc-post .post-cat a {
  display: inline-flex;
  margin-left: 0.55rem;
  padding: 0.28rem 0.58rem;
  color: var(--p2p-navy);
  background: var(--p2p-lime);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  text-decoration: none;
}

.dc-post .post-excerpt {
  padding: 0 clamp(28px, 4.5vw, 56px) clamp(32px, 4.2vw, 48px);
  color: rgba(255, 255, 255, 0.82);
}

.dc-post .post-excerpt > p:first-child {
  max-width: 880px;
  margin-top: 0;
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.dc-post .post-excerpt h2,
.dc-post .post-excerpt h3 {
  margin: 1.55rem 0 0.55rem;
  color: var(--p2p-lime);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.dc-post .post-excerpt p {
  max-width: 1080px;
}

.dc-post .post-content {
  padding: clamp(34px, 4.5vw, 56px);
  color: #30444c;
  background: #fff;
  border-radius: 24px 24px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.dc-post .post-content > :first-child {
  margin-top: 0;
}

.dc-post .post-content > h2,
.dc-post .post-content > h3 {
  max-width: 900px;
  margin: 2.7rem 0 1rem;
  padding-top: 1.15rem;
  color: var(--p2p-text);
  border-top: 1px solid var(--p2p-line);
  font-size: clamp(1.35rem, 2vw, 1.62rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

/* Platform logos inserted by Dotclear inside a section heading.
   Neutralize the editor's legacy media-left float and keep every logo tidy. */
.dc-post .post-content > :is(h2, h3):has(> img.media:first-child) {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
}

.dc-post .post-content > :is(h2, h3) > img.media:first-child {
  width: min(180px, 34%) !important;
  height: auto !important;
  max-height: 76px;
  flex: 0 0 auto;
  float: none !important;
  margin: 0 !important;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e0e9e5;
  border-radius: 10px;
}

.dc-post .post-content > p,
.dc-post .post-content > ul,
.dc-post .post-content > ol,
.dc-post .post-content > blockquote {
  max-width: 900px;
}

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

.news-update-box {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  color: #30444c;
  background: #f6f9f8;
  border: 1px solid #d8e5e0;
  border-radius: 16px;
}

.news-update-box h2,
.news-update-box h3 {
  margin: 0 0 0.65rem;
  color: var(--p2p-text);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.3;
}

.dc-post .post-content .news-update-box h2,
.dc-post .post-content .news-update-box h3 {
  padding-top: 0;
  border-top: 0;
}

.news-update-box p:last-child,
.news-update-box ul:last-child {
  margin-bottom: 0;
}

.news-update-box ul {
  padding-left: 1.2rem;
}

.news-risk-note {
  margin: 2rem 0;
  padding: 1.15rem 1.3rem;
  color: #30483f;
  background: #f2f7e9;
  border: 1px solid #dbe9bd;
  border-left: 5px solid var(--p2p-green-2);
  border-radius: 0 12px 12px 0;
}

.news-source-row {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  color: #39524a;
  background: #edf5f2;
  border: 1px solid #d6e6e0;
  border-radius: 11px;
}

.news-source-row a {
  font-weight: 720;
}

.news-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.news-feed-actions .btn-secondary {
  display: inline-flex;
  min-height: 44px;
  padding: 0.68rem 0.95rem;
  align-items: center;
  justify-content: center;
  color: var(--p2p-green);
  background: #fff;
  border: 1px solid #b9cec7;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 820;
  text-decoration: none;
}

.news-feed-actions .btn-secondary:hover {
  color: #fff;
  background: var(--p2p-green);
  border-color: var(--p2p-green);
}

.dc-post .comments,
.dc-post .comment-form,
.dc-post #comments,
.dc-post #comment-form {
  margin-top: 26px;
  box-shadow: 0 10px 30px rgba(16, 27, 36, 0.06);
}

@media (max-width: 960px) {
  .header {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    padding-inline: 20px;
  }

  .banner {
    width: 100%;
    min-height: auto;
    padding: 18px 0 14px;
  }

  .simple-menu-navigation {
    width: 100%;
    padding-bottom: 12px;
    overflow: hidden;
  }

  .simple-menu {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .simple-menu a {
    white-space: nowrap;
  }

  .wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .widget {
    margin: 0;
  }

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

  .p2p-footer-brand {
    grid-column: 1 / -1;
  }

  .p2p-home-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-update-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .wrapper,
  .footer-inner,
  .footer > div,
  .footer > p {
    width: min(calc(100% - 28px), var(--p2p-content));
  }

  .banner {
    width: 100%;
    gap: 16px;
  }

  .header {
    padding-inline: 14px;
  }

  .simple-menu-navigation {
    padding-bottom: 14px;
  }

  .simple-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .simple-menu li {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
  }

  .simple-menu a,
  .simple-menu a:visited {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.35rem;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  .footer > .p2p-footer-wrap {
    width: min(calc(100% - 28px), var(--p2p-content));
  }

  .p2p-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

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

  .wrapper {
    padding: 30px 0 52px;
  }

  .dc-home .content,
  .dc-category .content,
  .dc-tag .content,
  .dc-search .content,
  .dc-archive-month .content,
  .widgets,
  .archive-year {
    grid-template-columns: minmax(0, 1fr);
  }

  .dc-home .content > .post:first-of-type {
    grid-column: auto;
  }

  .dc-home .content:not(:has(.news-lead)):not(:has(.post)):not(:has(.p2p-home-intro)) {
    min-height: 390px;
    padding: 32px 20px;
    border-radius: 18px;
  }

  .post {
    border-radius: 14px;
  }

  .simple-menu li:last-child a {
    margin-left: 0;
  }

  .pagination {
    flex-direction: column;
    gap: 10px;
  }

  .pagination > a {
    width: min(100%, 270px);
  }

  .p2p-home-intro {
    padding: 0;
    border-radius: 18px;
  }

  .p2p-home-intro h2 {
    font-size: clamp(1.6rem, 8vw, 2.15rem);
  }

  .p2p-home-intro__image {
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .p2p-home-intro__copy {
    padding: 22px 20px 24px;
  }

  .p2p-home-intro__actions,
  .p2p-home-latest {
    align-items: stretch;
    flex-direction: column;
  }

  .p2p-home-intro__primary,
  .p2p-home-intro__secondary {
    width: 100%;
  }

  .p2p-home-latest a {
    text-align: left;
  }

  .news-banner {
    padding: 10px;
    border-radius: 12px;
  }

  .dc-post .navlinks {
    align-items: flex-start;
    flex-direction: column;
  }

  .dc-post .post.simple {
    border-radius: 18px;
  }

  .dc-post .post.simple > header {
    padding: 28px 22px 16px;
  }

  .dc-post .post.simple .post-title {
    font-size: clamp(1.9rem, 9.4vw, 2.65rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .dc-post .post-excerpt {
    padding: 0 22px 27px;
  }

  .dc-post .post-content {
    padding: 28px 22px 36px;
    border-radius: 18px 18px 0 0;
  }

  .dc-post .post-content > h2,
  .dc-post .post-content > h3 {
    margin-top: 2.25rem;
    padding-top: 1rem;
  }

  .dc-post .post-content > :is(h2, h3):has(> img.media:first-child) {
    display: grid;
    gap: 12px;
  }

  .dc-post .post-content > :is(h2, h3) > img.media:first-child {
    width: min(180px, 100%) !important;
  }

  :is(.dc-archive-month, .dc-category, .dc-tag, .dc-search) .post.short .post-content:has(.post-icon) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  :is(.dc-archive-month, .dc-category, .dc-tag, .dc-search) .post.short .post-icon {
    width: min(180px, 100%);
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Широк редакционен банер под водещата публикация на началната страница. */
.p2p-home-banner {
  grid-column: 1 / -1;
  width: 100%;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(15, 45, 78, 0.1);
  border-radius: 16px;
  background: #eef4f8;
  box-shadow: 0 10px 26px rgba(12, 38, 66, 0.1);
}

.p2p-home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .p2p-home-banner img {
    height: 120px;
    object-fit: cover;
    object-position: left center;
  }
}

/* 2.1.22 editorial homepage */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dc-home-first .wrapper {
  padding-top: 0;
}

.dc-home-first .content {
  display: block;
}

.dc-home-first,
.dc-home-first .wrapper,
.dc-home-first .main,
.dc-home-first .content {
  background: #f4f7f5;
}

.news-lead {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e0dd;
  border-radius: 3px;
  box-shadow: 0 18px 48px rgba(16, 27, 36, 0.08);
}

.news-lead__featured {
  position: relative;
  min-height: clamp(420px, 43vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 20%, rgba(184, 227, 109, 0.3), transparent 32%),
    linear-gradient(135deg, #f4f8f6, #e6efeb 68%);
}

/* Do not reserve an empty hero-image area when the lead post has no image. */
.news-lead__featured:not(:has(.news-lead__image)) {
  min-height: 0;
  align-items: stretch;
}

.news-lead__featured:not(:has(.news-lead__image)) .news-lead__media,
.news-lead__featured:not(:has(.news-lead__image)) .news-lead__shade {
  display: none;
}

.news-lead__featured:not(:has(.news-lead__image)) .news-lead__content {
  padding-top: clamp(30px, 3.5vw, 42px);
  padding-bottom: clamp(30px, 3.5vw, 42px);
}

.news-lead__media,
.news-lead__shade {
  position: absolute;
  inset: 0;
}

.news-lead__media {
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(226, 240, 233, 0.58), rgba(245, 249, 247, 0.2)),
    #e5efea;
}

.news-lead__media:not(:has(img))::before {
  color: rgba(23, 111, 88, 0.14);
}

.news-lead__media:not(:has(img))::before,
.news-lead__secondary-media:not(:has(img))::before,
.latest-card__media:not(:has(img))::before {
  position: absolute;
  inset: 0;
  content: "P2P";
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.news-lead__image {
  width: 100%;
  height: 100%;
  padding: clamp(30px, 6vw, 78px);
  object-fit: contain;
  background: #f4f8f6;
}

.news-lead__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(245, 249, 247, 0.96) 0%, rgba(245, 249, 247, 0.76) 52%, rgba(245, 249, 247, 0.12) 86%),
    linear-gradient(0deg, rgba(239, 246, 242, 0.78) 0%, transparent 58%);
}

.news-lead__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(30px, 4.5vw, 56px);
  color: var(--p2p-text);
  background: rgba(250, 252, 251, 0.97);
  border-top: 1px solid rgba(191, 211, 202, 0.82);
  border-bottom: 1px solid rgba(191, 211, 202, 0.82);
  border-radius: 0;
  box-shadow: none;
}

.news-kicker,
.section-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--p2p-green);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-kicker {
  color: var(--p2p-green);
}

.news-lead__content .news-category {
  color: var(--p2p-green);
}

.news-category {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--p2p-lime);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-lead__content h2 {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 880;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.news-lead__content h2 a,
.news-lead__content h2 a:visited {
  color: var(--p2p-text);
  text-decoration: none;
}

.news-lead__deck {
  width: 100%;
  max-width: none;
  margin: 1rem 0 0;
  color: var(--p2p-muted);
  font-size: clamp(0.92rem, 1.35vw, 1.04rem);
  line-height: 1.6;
}

.news-lead__deck > :first-child,
.news-lead__deck > :last-child {
  margin: 0;
}

.news-date {
  margin: 1.15rem 0 0;
  color: var(--p2p-muted);
  font-size: 0.77rem;
  font-weight: 720;
}

.news-lead__secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid #d7e0dd;
}

.news-lead__secondary {
  min-height: 160px;
  display: grid;
  grid-template-columns: minmax(140px, 0.62fr) minmax(0, 1fr);
  align-items: stretch;
  background: #fff;
}

.news-lead__secondary + .news-lead__secondary {
  border-left: 1px solid #d7e0dd;
}

.news-lead__secondary-media {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p2p-green), var(--p2p-navy));
}

.news-lead__secondary-media:not(:has(img))::before {
  font-size: 3rem;
}

.news-lead__secondary-image {
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3vw, 30px);
  object-fit: contain;
  background: #fff;
}

/* The very wide TWINO wordmark needs a little more breathing room than other logos. */
.news-lead__secondary-image[src*="twino" i] {
  padding-inline: clamp(38px, 4.5vw, 52px);
}

/* Platform logos remain fully visible in every homepage card. */
.news-lead__secondary-media,
.latest-card__media {
  background: #fff;
}

.news-lead__secondary-content {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  align-self: center;
}

.news-lead__secondary-content .news-category {
  margin-bottom: 0.45rem;
  color: var(--p2p-green);
  font-size: 0.63rem;
}

.news-lead__secondary h3 {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.news-lead__secondary h3 a,
.news-lead__secondary h3 a:visited {
  color: var(--p2p-text);
  text-decoration: none;
}

.news-lead__secondary time {
  display: block;
  margin-top: 0.75rem;
  color: var(--p2p-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.home-section {
  margin-top: clamp(36px, 4.5vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
}

.section-heading h2,
.rss-section h2 {
  margin: 0;
  color: var(--p2p-text);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 880;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-heading__line {
  height: 1px;
  margin-bottom: 0.24rem;
  flex: 1;
  background: var(--p2p-line);
}

.title-mobile {
  display: none;
}

.signal-list {
  border-top: 2px solid var(--p2p-text);
}

.signal-list a {
  display: grid;
  min-height: 62px;
  padding: 0.8rem 0.4rem;
  grid-template-columns: 100px 150px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 18px;
  color: var(--p2p-text);
  border-bottom: 1px solid var(--p2p-line);
  text-decoration: none;
}

.signal-list a:hover {
  color: var(--p2p-green);
  background: #edf3f0;
}

.signal-list time,
.signal-list span {
  color: var(--p2p-muted);
  font-size: 0.81rem;
}

.signal-list strong {
  font-size: 0.88rem;
}

.signal-list b {
  font-size: 1.2rem;
  text-align: right;
}

.latest-news__list {
  border-top: 2px solid var(--p2p-text);
}

.latest-card {
  display: grid;
  min-height: 176px;
  padding: 20px 4px;
  grid-template-columns: 220px minmax(0, 1fr) 42px;
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  border-bottom: 1px solid var(--p2p-line);
}

.latest-card__media {
  position: relative;
  height: 136px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p2p-navy), var(--p2p-green));
}

.latest-card__media:not(:has(img))::before {
  font-size: 3.2rem;
}

.latest-card__image {
  width: 100%;
  height: 100%;
  padding: clamp(16px, 2.5vw, 24px);
  object-fit: contain;
  background: #fff;
  transition: transform 240ms ease;
}

.latest-card:hover .latest-card__image {
  transform: scale(1.025);
}

.latest-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.82rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.latest-card h3 a,
.latest-card h3 a:visited {
  color: var(--p2p-text);
  text-decoration: none;
}

.latest-card__summary {
  max-width: 800px;
  margin: 0.6rem 0 0;
  color: var(--p2p-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.latest-card__summary > :first-child,
.latest-card__summary > :last-child {
  margin: 0;
}

.latest-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0.85rem 0 0;
  color: var(--p2p-muted);
  font-size: 0.63rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-card__meta a,
.latest-card__meta a:visited {
  color: var(--p2p-green);
  text-decoration: none;
}

.latest-card__arrow,
.latest-card__arrow:visited {
  color: var(--p2p-text);
  font-size: 1.4rem;
  text-align: center;
  text-decoration: none;
}

.section-action {
  margin: 28px 0 0;
  text-align: center;
}

.section-action a,
.section-action a:visited {
  display: inline-flex;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  background: var(--p2p-navy);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
}

.market-watch {
  padding: clamp(34px, 5vw, 58px);
  color: var(--p2p-text);
  background:
    radial-gradient(circle at 88% 10%, rgba(184, 227, 109, 0.2), transparent 30%),
    #eaf2ee;
  border: 1px solid #d3e0da;
}

.section-heading--light h2 {
  color: var(--p2p-text);
}

.section-heading--light .section-eyebrow {
  color: var(--p2p-green);
}

.section-heading--light .section-heading__line {
  background: #cbd9d3;
}

.platform-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-cloud a,
.platform-cloud a:visited {
  padding: 0.55rem 0.78rem;
  color: #31544a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c8d9d2;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.platform-cloud a:hover {
  color: var(--p2p-navy);
  background: var(--p2p-lime);
  border-color: var(--p2p-lime);
}

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

.editorial-card,
.editorial-card:visited {
  min-height: 330px;
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--p2p-text);
  overflow: hidden;
  text-decoration: none;
}

.editorial-card span {
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.editorial-card h3 {
  margin: auto 0 1.4rem;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.editorial-card b {
  font-size: 0.73rem;
}

.editorial-card--dark {
  background: #eef2f1;
  border: 1px solid #d6e0dc;
}

.editorial-card--green {
  background: #e4f0eb;
  border: 1px solid #cbded6;
}

.editorial-card--paper,
.editorial-card--paper:visited {
  color: var(--p2p-text);
  background: #f8faf9;
  border: 1px solid #d2deda;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--p2p-text);
  border-bottom: 1px solid var(--p2p-line);
}

.verify-grid > a,
.verify-grid > a:visited {
  min-height: 190px;
  padding: 28px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  color: var(--p2p-text);
  text-decoration: none;
}

.verify-grid > a + a {
  border-left: 1px solid var(--p2p-line);
}

.verify-grid__number {
  color: var(--p2p-green);
  font-size: 0.66rem;
  font-weight: 850;
}

.verify-grid h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.verify-grid p {
  margin: 0.55rem 0 0;
  color: var(--p2p-muted);
  font-size: 0.81rem;
  line-height: 1.5;
}

.verify-grid b {
  font-size: 1.15rem;
}

.rss-section {
  margin-top: clamp(36px, 4.5vw, 56px);
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #dfeae5;
  border-left: 5px solid var(--p2p-green);
}

.rss-section p:last-child {
  margin: 0.65rem 0 0;
  color: var(--p2p-muted);
  font-size: 0.88rem;
}

.rss-section > a,
.rss-section > a:visited {
  display: inline-flex;
  min-height: 48px;
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  color: #fff;
  background: var(--p2p-green);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .news-lead__secondary {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .latest-card {
    grid-template-columns: 190px minmax(0, 1fr) 36px;
  }
}

@media (max-width: 760px) {
  .dc-home-first .wrapper {
    width: 100%;
    padding-top: 0;
  }

  .dc-home-first .main {
    width: 100%;
  }

  .news-lead {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .news-lead__featured {
    min-height: 0;
    display: block;
    overflow: visible;
    background: #fff;
  }

  .news-lead__media {
    position: relative;
    inset: auto;
    z-index: auto;
    height: 58vw;
    min-height: 220px;
    max-height: 370px;
    display: block;
  }

  .news-lead__shade {
    display: none;
  }

  .news-lead__content {
    width: 100%;
    margin: 0;
    padding: 24px 20px 30px;
    color: var(--p2p-text);
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .news-kicker {
    display: none;
  }

  .news-lead__content .news-category {
    margin-bottom: 0.55rem;
    color: var(--p2p-green);
  }

  .news-lead__content h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .news-lead__content h2 a,
  .news-lead__content h2 a:visited {
    color: var(--p2p-text);
  }

  .news-lead__deck {
    margin-top: 0.85rem;
    color: var(--p2p-muted);
    font-size: 0.9rem;
  }

  .news-date {
    margin-top: 0.9rem;
    color: var(--p2p-muted);
  }

  .news-lead__secondary-grid {
    display: block;
    margin: 0 20px;
    border-top: 2px solid var(--p2p-text);
  }

  .news-lead__secondary {
    min-height: 0;
    display: block;
    border-bottom: 1px solid var(--p2p-line);
  }

  .news-lead__secondary + .news-lead__secondary {
    border-left: 0;
  }

  .news-lead__secondary-media {
    display: none;
  }

  .news-lead__secondary-content {
    position: relative;
    padding: 17px 28px 17px 0;
  }

  .news-lead__secondary-content::after {
    position: absolute;
    top: 50%;
    right: 2px;
    content: "→";
    transform: translateY(-50%);
  }

  .news-lead__secondary-content .news-category,
  .news-lead__secondary time {
    display: none;
  }

  .news-lead__secondary h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .news-lead__secondary h3 a::after {
    position: absolute;
    inset: 0;
    content: "";
  }

  .home-section {
    margin: 34px 20px 0;
  }

  .section-heading {
    margin-bottom: 17px;
  }

  .section-heading h2,
  .rss-section h2 {
    font-size: 1.35rem;
  }

  .title-desktop {
    display: none;
  }

  .title-mobile {
    display: inline;
  }

  .section-heading__line,
  .section-eyebrow {
    display: none;
  }

  .signal-list {
    border-top-width: 1px;
  }

  .signal-list a {
    min-height: 48px;
    padding: 0.55rem 0;
    grid-template-columns: 52px 86px minmax(0, 1fr);
    gap: 8px;
  }

  .signal-list time,
  .signal-list span,
  .signal-list strong {
    font-size: 0.7rem;
  }

  .signal-list b {
    display: none;
  }

  .latest-news__list {
    border-top-width: 1px;
  }

  .latest-card {
    min-height: 92px;
    padding: 12px 0;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .latest-card:nth-child(n+4) {
    display: none;
  }

  .latest-card__media {
    height: 68px;
  }

  .latest-card__media:not(:has(img))::before {
    font-size: 1.5rem;
  }

  .latest-card h3 {
    font-size: 0.93rem;
    line-height: 1.2;
  }

  .latest-card__summary,
  .latest-card__meta span,
  .latest-card__arrow {
    display: none;
  }

  .latest-card__meta {
    margin-top: 0.42rem;
    gap: 0.35rem;
    font-size: 0.57rem;
  }

  .section-action {
    display: none;
  }

  .market-watch {
    margin-inline: 0;
    padding: 24px 0;
    overflow: hidden;
  }

  .market-watch .section-heading {
    display: flex;
    margin-bottom: 18px;
    padding: 0 20px;
  }

  .platform-cloud {
    padding: 0 20px;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .platform-cloud::-webkit-scrollbar {
    display: none;
  }

  .platform-cloud::before {
    content: "←";
    padding-right: 4px;
    flex: 0 0 auto;
    align-self: center;
    color: var(--p2p-green);
  }

  .platform-cloud::after {
    content: "→";
    padding-left: 4px;
    flex: 0 0 auto;
    align-self: center;
    color: var(--p2p-green);
  }

  .platform-cloud a {
    padding: 0.52rem 0.76rem;
    flex: 0 0 auto;
    color: #31544a;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #c8d9d2;
    border-radius: 999px;
    line-height: 1.2;
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .editorial-card {
    min-height: 245px;
  }

  .editorial-card:nth-child(3) {
    display: none;
  }

  .verify-grid {
    display: block;
    border-top-width: 1px;
  }

  .verify-grid > a {
    min-height: 0;
    padding: 17px 0;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
  }

  .verify-grid > a + a {
    border-top: 1px solid var(--p2p-line);
    border-left: 0;
  }

  .verify-grid h3 {
    font-size: 1rem;
    text-transform: uppercase;
  }

  .verify-grid p {
    display: none;
  }

  .rss-section {
    margin: 34px 20px 0;
    padding: 24px 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .rss-section > a {
    justify-content: center;
  }

  .dc-home-first .footer {
    margin-top: 52px;
  }
}

/* 2.1.25 homepage structure: latest news with editorial sidebar. */
.dc-home-first .wrapper {
  grid-template-columns: minmax(0, 1fr);
}

.dc-home-first .wrapper > .sidebar {
  display: none;
}

.latest-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(34px, 5vw, 64px);
}

.latest-with-sidebar__main {
  min-width: 0;
}

.latest-with-sidebar .latest-card {
  min-height: 132px;
  padding-block: 14px;
  grid-template-columns: 176px minmax(0, 1fr) 34px;
  gap: clamp(16px, 2.4vw, 26px);
}

.latest-with-sidebar .latest-card__media {
  height: 96px;
}

.latest-with-sidebar .latest-card h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.48rem);
}

.latest-with-sidebar .latest-card__summary {
  font-size: 0.82rem;
}

.home-news-sidebar {
  position: sticky;
  top: 24px;
  border-top: 2px solid var(--p2p-text);
}

.home-news-sidebar__widgets .widgets,
.home-news-sidebar__widgets {
  display: block;
}

.home-news-sidebar__widgets .widget {
  margin: 0;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--p2p-line);
  border-radius: 0;
  box-shadow: none;
}

.home-news-sidebar .search form {
  display: block;
}

.home-news-sidebar .search form p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
}

.home-news-sidebar .search input[type="search"] {
  min-height: 44px;
}

.home-news-sidebar .search input[type="submit"] {
  min-width: 92px;
  padding-left: 2.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.home-news-sidebar__block:not(:has(.home-popular-item)):not(:has(.home-follow-list)),
.home-news-sidebar__widgets .widget[hidden] {
  display: none;
}

.home-news-sidebar__widgets .widget-title,
.home-news-sidebar__widgets .widget > h2,
.home-news-sidebar__widgets .widget > h3 {
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-news-sidebar__block {
  padding: 24px 0;
  border-bottom: 1px solid var(--p2p-line);
}

.home-news-sidebar__label {
  margin: 0 0 14px;
  color: var(--p2p-text);
  font-size: 0.7rem;
  font-weight: 880;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-popular-item {
  padding: 12px 0;
}

.home-popular-item + .home-popular-item {
  border-top: 1px solid var(--p2p-line);
}

.home-popular-item h3 {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.home-popular-item h3 a,
.home-popular-item h3 a:visited {
  color: var(--p2p-text);
  text-decoration: none;
}

.home-popular-item time {
  display: block;
  margin-top: 0.45rem;
  color: var(--p2p-muted);
  font-size: 0.65rem;
}

.home-follow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-follow-list a,
.home-follow-list a:visited {
  padding: 0.35rem 0.55rem;
  color: var(--p2p-text);
  background: #e9f0ed;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 760;
  text-decoration: none;
}

.home-score-card,
.home-score-card:visited {
  margin-top: 22px;
  padding: 26px;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  color: #fff;
  background: var(--p2p-navy);
  text-decoration: none;
}

.home-score-card span {
  color: var(--p2p-lime);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-score-card strong {
  margin-top: 0.1rem;
  font-size: 2.35rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-score-card b {
  margin-top: auto;
  font-size: 0.72rem;
}

.platform-directory {
  padding: clamp(32px, 5vw, 54px);
  background: #e8eeeb;
  border-top: 4px solid var(--p2p-green);
}

.platform-directory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #bfcec8;
  border-left: 1px solid #bfcec8;
}

.platform-directory__grid a,
.platform-directory__grid a:visited {
  min-height: 64px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--p2p-text);
  background: rgba(255, 255, 255, 0.36);
  border-right: 1px solid #bfcec8;
  border-bottom: 1px solid #bfcec8;
  font-size: 0.85rem;
  font-weight: 820;
  text-decoration: none;
}

.platform-directory__grid a::after {
  content: "→";
  color: var(--p2p-green);
}

.platform-directory__grid a:hover {
  color: #fff;
  background: var(--p2p-green);
}

.platform-directory__grid a:hover::after {
  color: var(--p2p-lime);
}

@media (max-width: 980px) {
  .latest-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }

  .latest-with-sidebar .latest-card {
    grid-template-columns: 140px minmax(0, 1fr) 28px;
  }

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

@media (max-width: 760px) {
  .latest-with-sidebar {
    margin-inline: 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .latest-with-sidebar .latest-card,
  .latest-with-sidebar .latest-card:nth-child(n+4) {
    display: grid;
    min-height: 92px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .latest-with-sidebar .latest-card__media {
    height: 68px;
  }

  .home-news-sidebar {
    position: static;
  }

  .platform-directory {
    margin-inline: 0;
    padding: 30px 20px;
  }

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

  .platform-directory__grid a {
    min-height: 56px;
    padding: 0.65rem 0.75rem;
    font-size: 0.76rem;
  }
}
