/* Inline newsletter signup (Contact-style card). Loaded separately from built/screen.css. */

.gh-inline-subscribe-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gh-inline-subscribe-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 48px auto 64px;
}

.gh-topic-grid + .gh-inline-subscribe-wrap {
    margin-top: 56px;
}

.post-template .gh-inline-subscribe-wrap {
    margin-top: 40px;
    margin-bottom: 80px;
}

.gh-inline-subscribe {
    width: 100%;
    max-width: 600px;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.gh-inline-subscribe-heading {
    margin: 0 0 16px;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #111;
    text-align: center;
}

.has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-inline-subscribe-heading {
    font-family: var(--gh-font-heading, var(--font-serif));
}

.gh-inline-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.gh-inline-subscribe-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.gh-inline-subscribe-input {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #111;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
}

.gh-inline-subscribe-input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.gh-inline-subscribe-submit-wrap {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
}

.gh-inline-subscribe-submit {
    padding: 10px 16px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
    cursor: pointer;
    background: #000;
    border: 0;
    border-radius: 6px;
}

.gh-inline-subscribe-submit:hover {
    opacity: 0.88;
}

.gh-inline-subscribe-submit:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.gh-inline-subscribe-error {
    margin: 0;
    font-size: 1.3rem;
    color: #f02525;
    text-align: center;
}

.gh-inline-subscribe-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    max-width: 100%;
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.5;
    color: #111;
    cursor: pointer;
}

.gh-inline-subscribe-consent input {
    flex-shrink: 0;
    width: auto;
    margin-top: 4px;
}

.gh-inline-subscribe-consent a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-inline-subscribe-consent a:hover {
    opacity: 0.75;
}

.has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-inline-subscribe-consent {
    font-family: var(--gh-font-body, var(--font-serif));
}

.gh-inline-subscribe-footnote {
    margin: 10px 0 0;
    font-size: 1.55rem;
    line-height: 1.45;
    color: #111;
    text-align: center;
}

.gh-inline-subscribe-footnote--success {
    color: #16a34a;
}
