/* AB-730: teal primary with amber accent */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #00695c;
  --md-primary-fg-color--light: #00897b;
  --md-primary-fg-color--dark: #004d40;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
  --md-accent-fg-color: #c2410c;
  --md-accent-fg-color--transparent: rgba(194, 65, 12, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] {
  --md-hue: 175;
  --md-accent-fg-color: #fbbf24;
  --md-accent-fg-color--transparent: rgba(251, 191, 36, 0.1);
}

/* Mobile-only 250×250 AdFit unit, placed after the Material footer. */
.kakao-adfit-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .kakao-adfit-mobile {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--md-default-fg-color--lighter);
  }
}

/* Desktop-only AdFit rail, positioned to the right of the table of contents. */
.kakao-adfit-rail {
  display: none;
}

@media screen and (min-width: 100em) {
  .md-main__inner {
    position: relative;
  }

  .kakao-adfit-rail {
    display: block;
    position: absolute;
    top: 0;
    left: calc(100% + 1.5rem);
    width: 160px;
  }
}
