/* Subscribe button styled with Substack orange */
.subscribe-btn {
    line-height: 1.2;
    padding: 0.35rem 0.75rem;
    border: none;
    background-color: #ff6719;
    /* Substack orange */
    color: #ffffff !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.subscribe-btn:hover,
.subscribe-btn:focus {
    background-color: #e65c12;
    /* Slightly darker on hover */
    color: #ffffff !important;
    transform: translateY(-1px);
}

.subscribe-icon {
    display: inline-block;
    vertical-align: text-bottom;
    filter: brightness(0) invert(1);
    /* make logo white */
    width: 18px;
    height: 18px;
}

/* ===== Clean, minimal modal ===== */
#subscribeModal .modal-dialog {
    max-width: none;
}

.subscribe-modal {
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
}

.substack-embed-wrap {
    display: flex;
    justify-content: center;
    padding: 0;
}

/* Substack card container */
.substack-frame {
    position: relative;
    width: min(92vw, 496px);
    aspect-ratio: 3 / 2;
    border: 1px solid #e6e6e6;
    border-radius: 0.5rem;
    background: #ffffff;
    overflow: hidden;
}

/* Simple black “X” positioned inside top-right corner */
.subscribe-close-plain {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    background: transparent;
    border: none;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    z-index: 2;
}

.subscribe-close-plain:hover {
    opacity: 1;
}

/* Make the iframe fill the frame */
.substack-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: block;
}