/* ──────────────────────────────────────────────────────────
   1. ADS LABEL
   ────────────────────────────────────────────────────────── */
.ads-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;   /* neutral gray — readable on both light/dark */
    text-align: center;
    margin-bottom: 6px;
    user-select: none;
}


/* ──────────────────────────────────────────────────────────
   2. ADS CONTAINER BASE
   ────────────────────────────────────────────────────────── */
.ads-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}
.ads-container iframe,
.ads-container > script + div,
.ads-container ins {
    display: block;
    margin: 0 auto;
}


/* ──────────────────────────────────────────────────────────
   3. SLOT HEADER — 728×90
   ────────────────────────────────────────────────────────── */
.ads-slot-header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 16px 14px;
    margin-bottom: 24px;
}
.ads-slot-header .ads-container {
    max-width: 740px;
    width: 100%;
}
@media (max-width: 767px) {
    .ads-slot-header { display: none; }
}


/* ──────────────────────────────────────────────────────────
   4. ADS LAYOUT — wrapper flex: main content + sidebar
   ────────────────────────────────────────────────────────── */
.ads-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    position: relative;
}
.ads-layout__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ads-layout__sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    align-self: flex-start;
    display: none;
}
@media (min-width: 1240px) {
    .ads-layout__sidebar { display: block; }
}
/* Light-page sidebar container */
.ads-layout__sidebar .ads-container {
    width: 300px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ads-layout__sidebar .ads-label {
    margin-bottom: 8px;
}


/* ──────────────────────────────────────────────────────────
   5. SLOT RESULT — 300×250 / 728×90 after tool output
   ────────────────────────────────────────────────────────── */
.ads-slot-result {
    width: 100%;
    max-width: 728px;
    margin: 28px auto 0;
    display: flex;
    justify-content: center;
}
/* Light-page result container */
.ads-slot-result .ads-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 2px solid #16a34a;   /* accent top border */
    border-radius: 14px;
    padding: 14px 16px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}


/* ──────────────────────────────────────────────────────────
   6. SLOT NATIVE — native banner below result
   ────────────────────────────────────────────────────────── */
.ads-slot-native {
    width: 100%;
    max-width: 728px;
    margin: 12px auto 0;
    display: flex;
    justify-content: center;
}
.ads-slot-native .ads-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
}


/* ──────────────────────────────────────────────────────────
   7. RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .ads-slot-result,
    .ads-slot-native {
        max-width: 100%;
        padding: 0 8px;
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 639px) {
    .ads-slot-result .ads-container,
    .ads-slot-native .ads-container {
        border-radius: 10px;
        padding: 10px 8px;
    }
}


/* ──────────────────────────────────────────────────────────
   8. PRINT — hide all ads
   ────────────────────────────────────────────────────────── */
@media print {
    .ads-slot-header,
    .ads-layout__sidebar,
    .ads-slot-result,
    .ads-slot-native {
        display: none !important;
    }
}