/* Reader Responses: the invitation under articles, the respond page, and discussion extras. */

/* Matches the site's look: thin lines instead of a tinted box, near-black link that turns red on hover. */
.tdrr-invite {
    clear: both;
    margin: 28px 0 8px;
    padding: 14px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.tdrr-invite p { margin: 0; }
.entry .tdrr-invite a,
.tdrr-invite a { font: 700 17px/1.5 "PT Serif", Georgia, serif; color: #1a1d20; text-decoration: none; }
.entry .tdrr-invite a:hover,
.tdrr-invite a:hover { color: #d5232b; text-decoration: none; }

.tdrr-source { margin: 0 0 18px; font-style: italic; }

.tdrr-respond { padding: 16px 0 24px; }
.tdrr-title { margin: 0 0 12px; font-size: 26px; line-height: 1.3; }

.tdrr-form p { margin: 0 0 16px; }
.tdrr-form label { display: block; margin-bottom: 4px; font-weight: bold; }
.tdrr-form input[type="text"],
.tdrr-form input[type="email"],
.tdrr-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #b9b4a8;
}

.tdrr-check label { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.tdrr-check input { margin-top: 4px; }

/* Buttons match the theme's own (#33536A, darkening on hover). */
.tdrr-submit,
.tdrr-button,
.tdrr-button:visited {
    display: inline-block;
    padding: 8px 15px;
    font-family: "Merriweather", serif;
    font-size: 14px;
    color: #fff;
    background: #33536A;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}
.tdrr-submit:hover,
.tdrr-button:hover { color: #fff; background: #222; }
.tdrr-respond-cta { margin: 24px 0 8px; }

/* The theme tints every empty required field; only tint fields a reader left wrong after trying to send. */
.tdrr-form input:invalid,
.tdrr-form textarea:invalid,
.tdrr-discussion-comments #respond input:invalid,
.tdrr-discussion-comments #respond textarea:invalid { background-color: #fff; }
.tdrr-form input:user-invalid,
.tdrr-form textarea:user-invalid,
.tdrr-discussion-comments #respond input:user-invalid,
.tdrr-discussion-comments #respond textarea:user-invalid { background-color: #f0dddd; }

.tdrr-notice { padding: 12px 16px; background: #eaf5e9; border-left: 4px solid #2e7d32; }
.tdrr-error { padding: 12px 16px; background: #fdecea; border-left: 4px solid #b3261e; }

.tdrr-invite a:focus-visible,
.tdrr-button:focus-visible,
.tdrr-form :focus-visible { outline: 2px solid #885923; outline-offset: 2px; }

/* Spam trap: kept out of sight and out of the tab order. */
.tdrr-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
