/* OcOmments widget — AP News-style comments, prefixed for host pages. */

.oc-wrap {
    box-sizing: border-box;
    max-width: 740px;
    margin: 20px auto 8px;
    padding: 8px 12px 32px;
    color: #2b2b2b;
    background: transparent;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.oc-wrap *, .oc-wrap *::before, .oc-wrap *::after { box-sizing: border-box; }

.oc-review-note {
    display: none;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    color: #5a5a5a;
    font-size: 0.8rem;
    line-height: 1.45;
}
.oc-convo.is-open .oc-review-note { display: block; }
.oc-review-note p {
    margin: 0 0 0.7em;
    background: none;
    color: inherit;
    font-size: inherit;
}
.oc-review-note p:last-child { margin-bottom: 0; }

.oc-fake-banner,
.oc-flash {
    margin: 0 0 16px;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
}
.oc-fake-banner {
    background: #f3e3a8;
    color: #5a4a10;
}
.oc-flash {
    background: #e7f2ea;
    color: #2a4630;
    border: 1px solid #b7c9a8;
}

.oc-account {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 28px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e6e6e6;
}
.oc-account p { margin: 0; }
.oc-account-note { color: #6b6b6b; font-size: 0.9rem; max-width: 46ch; }
.oc-account a { color: #3d7ab5; font-weight: 600; }

.oc-convo {
    margin-bottom: 20px;
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid rgba(30, 40, 50, 0.07);
    border-radius: 22px;
    box-shadow: 0 10px 32px rgba(28, 36, 48, 0.08);
}
.oc-convo-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px 16px;
    margin-bottom: 12px;
}
.oc-signed { font-size: 0.88rem; color: #6b6b6b; margin-right: 8px; }
.oc-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.oc-inline button {
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: #3d7ab5;
    cursor: pointer;
}

.oc-composer-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.oc-composer-row .oc-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
}
.oc-guest-av {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: #cfcfcf url("guest-av.svg") center / 22px 22px no-repeat;
}
.oc-bubble {
    position: relative;
    flex: 1;
    min-width: 0;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: #fff;
}
.oc-bubble::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 14px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
    transform: rotate(45deg);
}
.oc-join {
    display: block;
    width: 100%;
    min-height: 44px;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    color: #9a9a9a;
    font: inherit;
    font-size: 0.98rem;
    cursor: text;
}
.oc-draft {
    display: none;
    width: 100%;
    min-height: 112px;
    padding: 12px 14px 8px;
    border: 0;
    resize: vertical;
    font: inherit;
    color: #2b2b2b;
    background: transparent;
}
.oc-draft:focus { outline: none; }
.oc-composer-actions {
    display: none;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px 12px;
}
.oc-composer-id {
    display: none;
    margin: 14px 0 0;
    gap: 12px;
}
.oc-composer-id.oc-id-split {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
}
.oc-id-pane {
    min-width: 0;
    padding: 12px 14px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fafafa;
}
.oc-id-pane h3 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a4a4a;
}
.oc-id-or {
    align-self: center;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9a9a;
}
.oc-composer-id[data-id-path="signin"] .oc-id-pane-guest,
.oc-composer-id[data-id-path="guest"] .oc-id-pane-in {
    opacity: 0.42;
}
.oc-composer-id label,
.oc-id-login label {
    display: grid;
    gap: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.oc-composer-id input {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    width: 100%;
    background: #fff;
}
.oc-composer-id label.oc-skill {
    margin-top: 16px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    color: #5a5a5a;
}
.oc-id-login {
    display: grid;
    gap: 10px;
}
.oc-ask-note {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #8a8a8a;
}
.oc-id-register {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e2e2;
    display: grid;
    gap: 10px;
}
.oc-id-register h4 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a4a4a;
}
.oc-register {
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    justify-self: start;
    border: 0;
    border-radius: 3px;
    padding: 8px 14px;
    background: #3d7ab5;
    color: #fff;
    cursor: pointer;
}
.oc-register:hover { background: #32679a; }
.oc-signin-link {
    color: #3d7ab5;
    font-weight: 700;
}
@media (max-width: 640px) {
    .oc-composer-id.oc-id-split {
        grid-template-columns: 1fr;
    }
    .oc-id-or { text-align: center; }
}
.oc-composer.is-open .oc-join { display: none; }
.oc-composer.is-open .oc-draft,
.oc-composer.is-open .oc-composer-actions { display: flex; }
.oc-composer.is-open .oc-draft { display: block; }
.oc-composer.is-open .oc-composer-id { display: grid; }
.oc-skill-kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 2px;
}
.oc-skill-kicker-note {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.oc-skill-prompt {
    display: block;
    margin-top: 8px;
}
.oc-cancel {
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 0;
    background: transparent;
    color: #3d7ab5;
    cursor: pointer;
    padding: 8px 10px;
}
.oc-post {
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 0;
    border-radius: 3px;
    padding: 8px 16px;
    background: #c8c8c8;
    color: #fff;
    cursor: default;
}
.oc-post:not(:disabled) {
    background: #3d7ab5;
    cursor: pointer;
}
.oc-post:not(:disabled):hover { background: #32679a; }

.oc-section {
    margin-bottom: 20px;
    padding: 18px 22px 22px;
    background: #fff;
    border: 1px solid rgba(30, 40, 50, 0.07);
    border-radius: 22px;
    box-shadow: 0 10px 32px rgba(28, 36, 48, 0.08);
}
.oc-section.oc-member {
    background: linear-gradient(165deg, #fdf4f6 0%, #fff 42%);
}
.oc-section.oc-regular {
    background: linear-gradient(165deg, #f4f8fc 0%, #fff 42%);
}
.oc-section.oc-rabble {
    background: linear-gradient(165deg, #faf6f6 0%, #fff 42%);
}
.oc-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2px 8px 12px;
    border-bottom: 1px solid rgba(30, 40, 50, 0.08);
}
.oc-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: -13px;
    border-bottom: 3px solid #3d7ab5;
}
.oc-head h2 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a4a4a;
    text-align: center;
}
.oc-count {
    display: inline-block;
    min-width: 1.6em;
    padding: 2px 8px;
    background: #e8e8e8;
    color: #5a5a5a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 3px;
    text-align: center;
}

.oc-empty, .oc-gate {
    margin: 0 0 16px;
    padding: 0;
    color: #8a8a8a;
    font-size: 0.92rem;
}

.oc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.oc-list.is-collapsed > li:nth-child(n+4) { display: none; }
.oc-item {
    display: flex;
    gap: 14px;
    padding: 22px 0 8px;
    border: 0;
    align-items: flex-start;
}
.oc-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.oc-item-main { min-width: 0; flex: 1; }
.oc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: baseline;
    margin-bottom: 6px;
}
.oc-name {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: normal;
    color: rgba(0, 0, 0, 0.6);
}
.oc-dot, .oc-meta time {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: normal;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
}
.oc-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #3a3a3a;
    font-size: 0.98rem;
    line-height: 1.55;
}

.oc-more {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 12px 16px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
    background: transparent;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    cursor: pointer;
}
.oc-more:hover { background: #f7f7f7; color: #4a4a4a; }

.oc-skill-q {
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}
.oc-skill-op {
    display: inline-block;
    font-size: 1.55em;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.08em;
    vertical-align: -0.06em;
}
.oc-skill-num {
    font-family: ui-monospace, Consolas, monospace;
}
.oc-skill-word { font-weight: 700; }
.oc-skill-pips {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    padding: 0 2px;
}
.oc-skill-pip {
    width: 0.55em;
    height: 0.55em;
    background: #111;
    flex: 0 0 auto;
}
.oc-skill-pip-circle { border-radius: 50%; }
.oc-skill-pip-square { border-radius: 1px; }
.oc-skill-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #8a8a8a;
    text-transform: none;
    letter-spacing: 0;
}
.oc-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

@media (max-width: 560px) {
    .oc-login input { width: 100%; }
    .oc-login { width: 100%; }
    .oc-avatar { flex-basis: 36px; width: 36px; height: 36px; font-size: 0.72rem; }
    .oc-composer-id { margin-left: 0; }
    .oc-id-login { grid-template-columns: 1fr; }
}
