/*
 * sinsosu-result.css
 *
 * Styles for #ssrb-container and its children.
 * Scoped to .ssrb-* — no global overrides.
 *
 * Eric's global rules enforced:
 *   Body text     ≥ 20px
 *   Headlines     ≥ 32px
 *   Captions/meta ≥ 16px
 *
 * Palette drawn from sinsosu.com child theme:
 *   Primary action  #007acc
 *   Text            #333333
 *   Background      #f1f1f1 / white
 */

/* ── Wrapper ────────────────────────────────────────────────────────────────── */

#ssrb-container {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 16px 60px;
    font-family: 'Ysabeau', 'Noto Sans JP', sans-serif;
    color: #333;
}

.ssrb-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Block shell ────────────────────────────────────────────────────────────── */

.ssrb-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ssrb-block-title {
    font-size: 22px;
    font-weight: 700;
    color: #007acc;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f4fd;
}

/* ── Block 1: Header ────────────────────────────────────────────────────────── */

.ssrb-block--header {
    background: linear-gradient(135deg, #007acc 0%, #005f99 100%);
    text-align: center;
    padding: 36px 28px;
}

.ssrb-headline {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
}

.ssrb-code,
.ssrb-ra {
    font-size: 36px;
    font-weight: 800;
    color: #ffe066;
    letter-spacing: 2px;
}

/* ── Block 2: People grid ───────────────────────────────────────────────────── */

.ssrb-people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .ssrb-people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .ssrb-people-grid {
        grid-template-columns: 1fr;
    }
}

.ssrb-person {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    background: #f7fbff;
    border: 1px solid #d0e8f8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.ssrb-person:hover {
    background: #e8f4fd;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.ssrb-person-name {
    font-size: 20px;
    font-weight: 700;
    color: #007acc;
    line-height: 1.3;
}

.ssrb-person-occ {
    font-size: 16px;
    color: #555;
}

.ssrb-person-year {
    font-size: 16px;
    color: #888;
}

/* ── Stubs ──────────────────────────────────────────────────────────────────── */

/*
 * Stubs are intentionally hidden in production (display:none) until their
 * content is ready.  Remove display:none when each block ships.
 */
.ssrb-block--stub {
    display: none;
}

/* ── Loading / error states ─────────────────────────────────────────────────── */

.ssrb-loading {
    text-align: center;
    font-size: 20px;
    color: #888;
    padding: 32px 0;
    animation: ssrb-pulse 1.4s ease-in-out infinite;
}

@keyframes ssrb-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.ssrb-error,
.ssrb-notice {
    font-size: 20px;
    color: #888;
    text-align: center;
    padding: 16px 0;
    margin: 0;
}

.ssrb-error {
    color: #c0392b;
}
