/* Submission form — shares the federation plugin's visual language: white cards, #e4e7ec
   borders, 10–14px radii, the teal accent, and the same inputs / buttons / pills. */

.murmpub {
    --murmpub-accent: #2b7a78;
    max-width: 700px;
    margin: 1.75rem auto 2.5rem;
    color: #344054;
    font-size: 1rem;
    line-height: 1.6;
}

.murmpub * {
    box-sizing: border-box;
}

/* --- Card ------------------------------------------------------------------ */

.murmpub-form {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 1.6rem 1.6rem 1.75rem;
    margin: 0 0 1.25rem;
}

@media (max-width: 600px) {
    .murmpub-form {
        padding: 1.15rem 1.1rem 1.3rem;
    }
}

/* Lead paragraph (the unclassed intro in the email-request view). */
.murmpub-form > p:not([class]) {
    margin-top: 0;
    color: #475467;
}

/* --- Fields ---------------------------------------------------------------- */

.murmpub-field {
    margin: 0 0 1.1rem;
}

.murmpub-field > label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #344054;
    margin-bottom: 0.35rem;
}

.murmpub-form input[type="text"],
.murmpub-form input[type="url"],
.murmpub-form input[type="email"],
.murmpub-form input[type="tel"],
.murmpub-form input[type="number"],
.murmpub-form input[type="search"],
.murmpub-form select,
.murmpub-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #101828;
    font-size: 0.95rem;
    line-height: 1.4;
}

.murmpub-form textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.murmpub-form input:focus,
.murmpub-form select:focus,
.murmpub-form textarea:focus {
    outline: none;
    border-color: var(--murmpub-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--murmpub-accent), transparent 82%);
}

.murmpub-help {
    font-size: 0.85rem;
    color: #667085;
    margin: 0.35rem 0 0;
}

/* --- Checkboxes / multi-select --------------------------------------------- */

.murmpub-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.92rem;
    color: #344054;
    margin: 0.25rem 0;
    cursor: pointer;
}

.murmpub-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 0.18rem;
    accent-color: var(--murmpub-accent);
    cursor: pointer;
}

/* A multi-select field: its own label spans the row, the options flow in tidy columns. */
.murmpub-field--enum_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.25rem 0.9rem;
    align-items: start;
}

.murmpub-field--enum_list > label:not(.murmpub-check) {
    grid-column: 1 / -1;
    margin-bottom: 0.1rem;
}

/* The "also list me on the wider network" opt-in — a soft callout so it reads as a choice. */
.murmpub-federate {
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* --- Optional section ------------------------------------------------------ */

.murmpub-optional {
    margin: 1.25rem 0;
    border-top: 1px solid #eaecf0;
    padding-top: 1.1rem;
}

.murmpub-optional > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--murmpub-accent);
    list-style: none;
}

.murmpub-optional > summary::-webkit-details-marker {
    display: none;
}

.murmpub-optional > summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.15s ease;
}

.murmpub-optional[open] > summary::before {
    transform: rotate(180deg);
}

.murmpub-optional > .murmpub-field:first-of-type {
    margin-top: 1rem;
}

/* Sub-section headings inside the optional area — the federation's eyebrow style. */
.murmpub-section {
    margin: 1.6rem 0 0.9rem;
    padding-top: 1.15rem;
    border-top: 1px solid #eaecf0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--murmpub-accent);
}

.murmpub-optional > .murmpub-section:first-of-type {
    margin-top: 1rem;
    padding-top: 0;
    border-top: 0;
}

/* --- Social media: a labelled URL field per supported platform ------------- */

.murmpub-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.murmpub-social-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.murmpub-social-label {
    flex: 0 0 5.5rem;
    font-size: 0.9rem;
    color: #475467;
}

.murmpub-form .murmpub-social-row input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}

/* --- Repeater (links etc.) ------------------------------------------------- */

.murmpub-repeater {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.murmpub-repeater-row {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.murmpub-form .murmpub-repeater-row input {
    width: auto;
    max-width: none;
}

.murmpub-form .murmpub-repeater-row input:nth-of-type(1) {
    flex: 1 1 35%;
}

.murmpub-form .murmpub-repeater-row input:nth-of-type(2) {
    flex: 2 1 60%;
}

.murmpub-repeater-remove {
    flex: none;
    width: 2.4rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #667085;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.murmpub-repeater-remove:hover {
    border-color: #f04438;
    color: #f04438;
}

.murmpub-repeater-add {
    align-self: flex-start;
    margin: 0.5rem 0 0;
    padding: 0.45rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.murmpub-repeater-add:hover {
    border-color: var(--murmpub-accent);
    color: var(--murmpub-accent);
}

/* --- Map picker ------------------------------------------------------------ */

.murmpub-map {
    height: 300px;
    margin: 0.5rem 0 0;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}

/* --- Primary submit buttons ------------------------------------------------ */

.murmpub-form > button[type="submit"] {
    margin-top: 0.6rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--murmpub-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.murmpub-form > button[type="submit"]:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--murmpub-accent), transparent 72%);
}

/* --- "Your profiles" panel ------------------------------------------------- */

.murmpub-profiles {
    margin: 0 0 1.25rem;
}

.murmpub-profiles h3 {
    margin: 0 0 0.7rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #101828;
}

.murmpub-profile {
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 0 0 0.6rem;
}

.murmpub-profile > strong {
    color: #101828;
}

.murmpub-status {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.16rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--murmpub-accent);
    background: color-mix(in srgb, var(--murmpub-accent), #fff 86%);
    border-radius: 6px;
    vertical-align: middle;
}

.murmpub-verified {
    margin: 0.5rem 0 0;
    color: #067647;
    font-size: 0.9rem;
}

/* --- Domain-verification disclosure ---------------------------------------- */

.murmpub-verify {
    margin-top: 0.6rem;
    font-size: 0.92rem;
}

.murmpub-verify > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--murmpub-accent);
}

.murmpub-verify ol {
    margin: 0.6rem 0;
    padding-left: 1.1rem;
}

.murmpub-verify li {
    margin: 0.35rem 0;
}

.murmpub-verify code {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    background: #f2f4f7;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    font-size: 0.85em;
    word-break: break-all;
}

.murmpub-verify button {
    margin-top: 0.4rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.murmpub-verify button:hover {
    border-color: var(--murmpub-accent);
    color: var(--murmpub-accent);
}

/* --- Signed-in line -------------------------------------------------------- */

.murmpub-signed-in {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    color: #667085;
}

/* --- Notices / errors ------------------------------------------------------ */

.murmpub-notice {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    background: color-mix(in srgb, var(--murmpub-accent), #fff 90%);
    border: 1px solid color-mix(in srgb, var(--murmpub-accent), #fff 75%);
    border-left: 4px solid var(--murmpub-accent);
    border-radius: 10px;
    color: #344054;
}

.murmpub-error {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    background: #fef3f2;
    border: 1px solid #fee4e2;
    border-left: 4px solid #f04438;
    border-radius: 10px;
    color: #b42318;
}

.murmpub-field--error > label {
    color: #b42318;
}

.murmpub-field--error input,
.murmpub-field--error select,
.murmpub-field--error textarea {
    border-color: #f04438;
}
