/* ── Pendulum Oracle Plugin ── */

#pendulum-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: sans-serif;
    color: #555;
    line-height: 1.7;
}

/* ── Headline Block ── */
.rrd-headline {
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

.rrd-headline-category {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666666;
    margin-bottom: 1.2rem;
    font-family: sans-serif;
}

.rrd-headline-title {
    font-family: Georgia, serif;
    font-size: 51.2px;
    font-weight: 700;
    color: #666666;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.rrd-headline-title em {
    font-size: 51.2px;
    font-style: italic;
    font-weight: 700;
    color: #666666;
    display: block;
}

.rrd-headline-subtitle p {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* ── Stage ── */
.pendulum-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ── Question row ── */
.pendulum-question-row {
    display: flex;
    width: 100%;
    max-width: 520px;
    gap: 0;
}

.pendulum-input {
    flex: 1;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-family: Georgia, serif;
    font-style: italic;
    border: 1px solid #4169A8;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.pendulum-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.pendulum-input:focus {
    border-color: #4169A8;
    box-shadow: 0 0 0 3px rgba(65,105,168,0.1);
}

.pendulum-btn {
    height: 44px;
    padding: 0 1.5rem;
    background: #4169A8;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s;
    white-space: nowrap;
    font-family: sans-serif;
    flex-shrink: 0;
}

.pendulum-btn:hover { background: #305090; }

.pendulum-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Pendulum frame ── */
.pendulum-frame {
    width: 100%;
    max-width: 520px;
    background: #fafbff;
    border: 1px solid #e8edf8;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

#pendulum-canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ── Answer card ── */
.pendulum-answer {
    display: none;
    width: 100%;
    max-width: 520px;
    border-left: 4px solid #4169A8;
    border-top: 1px solid #e8edf8;
    border-right: 1px solid #e8edf8;
    border-bottom: 1px solid #e8edf8;
    border-radius: 0 10px 10px 0;
    background: #fff;
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.4rem;
}

.pendulum-answer.show {
    display: flex;
}

.pendulum-answer-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4169A8;
    font-family: sans-serif;
}

.pendulum-answer-text {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #444;
    line-height: 1.4;
    margin: 0.2rem 0 0;
}

.pendulum-answer-sub {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.6;
    margin: 0.2rem 0 0;
    font-family: sans-serif;
    font-style: normal;
}

/* ── Lore grid ── */
.pendulum-lore {
    border-top: 1px solid #e8edf8;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.pendulum-lore-block strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.4rem;
}

.pendulum-lore-block p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-family: sans-serif;
}

/* ── CTA Strip ── */
.pendulum-cta-strip {
    border-left: 4px solid #4169A8;
    border-radius: 0 8px 8px 0;
    background: #f5f7fb;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pendulum-cta-main {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e8edf8;
}

.pendulum-cta-main p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-family: sans-serif;
}

.pendulum-cta-main a {
    color: #4169A8;
    text-decoration: none;
    font-weight: 500;
}

.pendulum-cta-main a:hover { text-decoration: underline; }

.pendulum-cta-free {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pendulum-free-badge {
    background: #4169A8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: sans-serif;
}

.pendulum-free-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    font-family: sans-serif;
}

.pendulum-free-text a {
    color: #4169A8;
    font-weight: 500;
    text-decoration: none;
}

.pendulum-free-text a:hover { text-decoration: underline; }

.pendulum-disclaimer {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.6;
    margin: 0;
    font-family: sans-serif;
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
    #pendulum-wrapper {
        padding: 0 20px;
    }

    .rrd-headline-title     { font-size: 2.4rem; }
    .rrd-headline-title em  { font-size: 32px; }
    .rrd-headline-subtitle p { font-size: 1rem; }

    .pendulum-question-row  { max-width: 100%; }
    .pendulum-frame         { max-width: 100%; }
    .pendulum-answer        { max-width: 100%; }
    .pendulum-lore          { grid-template-columns: 1fr; }
    .pendulum-cta-free      { flex-direction: column; align-items: flex-start; }
    .pendulum-btn           { font-size: 0.85rem; padding: 0 1rem; }
}
