/* AdSense emulation — pcsml smart-list + igs-15 display (from adsence blocks/) */
.pcsml-el {
  --pcheading-cl: #313131;
  --pcbg-cl: #fff;
  --pcborder-cl: #dedede;
  --pchead-font: 'DM Sans', Arial, sans-serif;
  --pcaccent-cl: #c31826;
  margin: 0 0 24px;
  font-family: var(--pchead-font);
  color: var(--pcheading-cl);
}
.adsense-unit-label {
  text-align: center;
  color: #9e9ea6;
  font-size: 11px;
  margin: 0 0 4px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}
.pcsml-el .pcsml-item { position: relative; }
.pcsml-el .post-entry { margin-bottom: 0; }
.pcsml-el .pcsml-ad { clear: both; text-align: center; }
.pcsml-el .pcsml-ad img { margin: 0; width: 100%; height: auto; display: block; }
.pcsml-el .pcsml-ad .adsbygoogle { display: none !important; }
.pcsml-title-wrapper { width: 100%; }
.pcsml-title-wrapper h3 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 700; }
.pcsml-item-number span {
  display: block;
  background-color: var(--pcheading-cl);
  font-weight: 700;
  text-align: center;
  color: var(--pcbg-cl);
}
.pcsml-item-title { font-weight: 700; }
.pcsml-item-title a { color: inherit; text-decoration: none; }
.pcsml-item-title a:hover { color: var(--pcaccent-cl); }
.pcsml-figure img { display: inline-block; vertical-align: top; max-width: 100%; height: auto; }
.pcsml-caption {
  font-style: italic;
  font-size: 12px;
  line-height: 18px;
  margin-top: 5px;
  margin-bottom: 20px;
}
.pcsml-desc { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: #555; }

/* Style 1 — numbered headline list */
.pcsml_style_1 .pcsml-item-number,
.pcsml_style_1 .pcsml-item-title { display: table-cell; }
.pcsml_style_1 .pcsml-item-title { vertical-align: middle; }
.pcsml_style_1 .pcsml-item { margin-bottom: 36px; }
.pcsml_style_1 .pcsml-title-wrapper { margin-bottom: 16px; position: relative; }
.pcsml_style_1 .pcsml-item-number span {
  padding: 0 5px;
  font-size: 20px;
  line-height: 34px;
  min-width: 34px;
}
.pcsml_style_1 .pcsml-item-title {
  width: 100%;
  padding-left: 14px;
  font-size: 20px;
  line-height: 1.35;
}

/* Style 2 — text + thumbnail row */
.pcsml_style_2 .pcsml-info { overflow: hidden; }
.pcsml_style_2 .pcsml-item-number,
.pcsml_style_2 .pcsml-item-title { display: table-cell; }
.pcsml_style_2 .pcsml-item-title { vertical-align: middle; }
.pcsml_style_2 .pcsml-item {
  width: 100%;
  padding: 24px 0;
  border-bottom: 1px solid var(--pcborder-cl);
}
.pcsml_style_2 .pcsml-item:first-child { padding-top: 0; }
.pcsml_style_2 .pcsml-item:last-of-type { border-bottom: none; }
.pcsml_style_2 .pcsml-item-number span {
  font-size: 16px;
  min-width: 30px;
  min-height: 30px;
  line-height: 30px;
}
.pcsml_style_2 .pcsml-item-title { font-size: 17px; line-height: 1.35; padding-left: 12px; }
.pcsml_style_2 .pcsml-figure { vertical-align: top; width: 170px; flex-shrink: 0; }
.pcsml_style_2 .pcsml-desc { margin-top: 10px; font-size: 14px; }
@media (min-width: 768px) {
  .pcsml_style_2 .pcsml-item { display: flex; gap: 20px; align-items: flex-start; }
  .pcsml_style_2 .pcsml-info { flex: 1; }
}

/* Style 3 — image with gradient caption */
.pcsml_style_3 .pcsml-item { margin-bottom: 36px; }
.pcsml_style_3 .pcsml-figure { position: relative; overflow: hidden; }
.pcsml_style_3 .pcsml-figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.pcsml_style_3 .pcsml-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  color: #fff;
  margin: 0;
  padding: 12px 16px;
  z-index: 1;
  font-style: normal;
  font-size: 14px;
}
.pcsml_style_3 .pcsml-item-number { position: absolute; top: 0; left: 0; z-index: 2; }
.pcsml_style_3 .pcsml-item-number span {
  background-color: rgba(0,0,0,.8);
  min-width: 40px;
  min-height: 40px;
  font-size: 22px;
  line-height: 40px;
}
.pcsml_style_3 .pcsml-title-wrapper { margin: 16px 0 0; }
.pcsml_style_3 .pcsml-item-title { font-size: 20px; line-height: 1.3; }

/* Style 4 — stacked units / grid */
.pcsml_style_4 .pcsml-item { margin-bottom: 20px; }
.pcsml_style_4 .pcsml-item-number,
.pcsml_style_4 .pcsml-item-title { display: table-cell; }
.pcsml_style_4 .pcsml-item-title { vertical-align: middle; padding-left: 12px; font-size: 17px; }
.pcsml_style_4 .pcsml-item-number span { min-width: 32px; line-height: 32px; font-size: 16px; }
.pcsml_style_4 .pcsml-ad-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .pcsml_style_4 .pcsml-ad-grid { grid-template-columns: 1fr 1fr; }
}

/* Related searches (RSU) inside pcsml shell */
.pcsml-el .sa-related {
  margin: 0;
  border: 1px solid var(--pcborder-cl);
  border-radius: 0;
  overflow: hidden;
  background: var(--pcbg-cl);
}
.pcsml-el .sa-related-title {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5f6368;
  background: #f1f3f4;
  border-bottom: 1px solid var(--pcborder-cl);
}
.pcsml-el .sa-related-item:hover { background: #f8f9fa; }

/* Sponsored text ads (search results page) — button, not purple link on red */
.pcsml-el .sa-textad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 18px;
  background: var(--cta, #c31826);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 4px;
  font-family: 'DM Sans', Arial, sans-serif;
  transition: background 0.2s;
}
.pcsml-el .sa-textad-cta:hover {
  background: var(--cta-h, #9a1220);
  color: #fff !important;
}
.pcsml-el .sa-textad-url { font-size: 13px; color: #006621; margin: 4px 0; word-break: break-all; }

/* igs-15 display banner (promotion_h) — parity with adsence blocks/ examples */
.igs-15-blok__advertising {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: #9e9ea6;
}
.igs-15-blok__button {
  display: flex;
  position: absolute;
  right: 0;
  top: 0;
  cursor: default;
  margin: 1px 1px 0 0;
  z-index: 3;
  gap: 0;
}
.igs-15-button__info,
.igs-15-button__closed { cursor: pointer; line-height: 0; }
.igs-15-cross__icon { stroke: #00aecd; fill: #00aecd; background: #fff; width: 15px; height: 15px; }
.igs-15-info__icon { fill: #00aecd; background: #fff; width: 15px; height: 15px; }
.igs-15-advertising__link { display: block; line-height: 0; }
.igs-15-advertising__img { display: block; width: 100%; height: auto; max-height: 90vh; user-select: none; }
.igs-15-active { display: none !important; }
.igs-15-google__img { width: 72px; opacity: 0.4; height: auto; vertical-align: middle; }
.igs-15-menu__advertising,
.igs-15-menu__why {
  position: relative;
  text-align: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  min-height: 120px;
}
.igs-15-closed {
  text-align: center;
  padding: 26px 12px;
  background: #fff;
  box-sizing: border-box;
}
.igs-15-menu__why {
  height: 100%;
}
.igs-15-blok__advertising.igs-15-is-closed {
  background: #fff;
  border: 1px solid #dadce0;
}
.igs-15-blok__advertising.igs-15-is-closed .igs-15-advertising__link,
.igs-15-blok__advertising.igs-15-is-closed .igs-15-blok__button,
.igs-15-blok__advertising.igs-15-is-closed .igs-15-menu__advertising,
.igs-15-blok__advertising.igs-15-is-closed .igs-15-menu__why {
  display: none !important;
}
.igs-15-blok__advertising.igs-15-is-closed .igs-15-closed {
  border: none;
  padding: 26px 12px;
}
.igs-15-button__arrow { position: absolute; top: 8px; left: 8px; cursor: pointer; z-index: 2; }
.igs-15-arrow__icon { width: 15px; height: 15px; opacity: 0.4; fill: currentColor; }
.igs-15-title__menu,
.igs-15-blok__closed { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.igs-15-title__text { font-size: 20px; margin: 0 4px 0 0; font-weight: 400; color: #9e9ea6; }
.igs-15-title__closed {
  font-size: 20px;
  margin: 0 4px 0 0;
  font-weight: 400;
  color: #9e9ea6;
  font-family: Arial, Helvetica, sans-serif;
}
.igs-15-menu-elements__buttons { max-width: 280px; margin: 0 auto; }
.igs-15-button__stop {
  display: block;
  margin: 0 0 10px;
  padding: 10px;
  background: #4285f5;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}
.igs-15-button__why {
  display: block;
  padding: 10px;
  background: #fff;
  box-shadow: 0 0 2px rgb(0 0 0 / 12%), 0 1px 3px rgb(0 0 0 / 26%);
  color: #9e9ea6;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
}
.igs-15-menu-block__button {
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
  width: 150px;
  margin: 0 auto;
}
.igs-15-button__causes:first-child {
  margin-top: 0;
}
.igs-15-button__causes {
  box-shadow: 0 0 2px rgb(0 0 0 / 12%), 0 1px 3px rgb(0 0 0 / 26%) !important;
  border: none;
  background: #fff;
  padding: 8px 10px;
  margin: 10px 0 0;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}
.igs-15-button__causes:hover {
  background: #dddddd4b;
}
.igs-15-button-causes__text { color: #4285f4; font-size: 12px; }
.igs-15-why-icon__info { width: 1em; height: 1em; opacity: .4; vertical-align: middle; }

.adsense-managed-slot .adsbygoogle-content { text-align: left; max-width: 100%; }

/* Ad slots */
.ad-slot { margin: 0; clear: both; }
.ad-slot-article-under-title {
  margin: 16px 0 22px;
  max-width: 100%;
}
.ad-slot-article-under-title .igs-15-blok__advertising,
.ad-slot-article-under-title .pcsml-el {
  width: 100%;
  max-width: 100%;
}
.ad-slot-article-under-title .igs-15-advertising__img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
}
.ad-slot-sidebar { margin-bottom: 20px; }
.ad-slot-sidebar .igs-15-advertising__img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}
.ad-device-desktop { display: block; }

@media (max-width: 1024px) {
  .ad-device-desktop { display: none !important; }
  .ad-slot-sidebar { display: none; }
}
