/* Results page — extracted from style.css (PLN-017 Phase B Step 1) */

/* Results hero */
.results-hero {
    text-align: center;
    padding: 2rem 0 1rem;
}
.results-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}
.attribution {
    color: #666;
    font-size: 0.95rem;
}

/* Term links (glossary hover + link) */
.term-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    cursor: help;
}
.term-link:hover {
    border-bottom-color: var(--color-link);
    color: var(--color-link);
}

/* Pronunciation hover tooltip */
.pron-tooltip-wrap {
    position: relative;
    display: inline-block;
}
.pron-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #eee;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    font-size: 0.875rem;
    font-weight: normal;
    line-height: 1.7;
    text-align: left;
}
.pron-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}
.pron-tooltip-wrap:hover .pron-tooltip {
    display: block;
}
.pron-option:hover .pron-tooltip {
    display: block;
}
.pron-tooltip-line {
    display: block;
}
.pron-tooltip-line strong {
    color: #fff;
}

/* Translation frame */
.translation-frame {
    text-align: center;
    padding: 0.5rem 0 1.5rem;
    font-size: 1.1rem;
}
.variant-hint {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}
.variant-hint a { color: #1a1a1a; }

/* Famous people */
.famous-people {
    padding: 0;
    color: #333;
    line-height: 1.7;
}
.famous-people p { margin-bottom: 0; }
.famous-people a { color: #1a1a1a; }

/* Design cards — StockKanji-style framed cards */
.design-cards-section {
    padding: 0 0 1.5rem;
}
.designs-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}
.design-card {
    border: 1px solid #999;
    text-align: center;
    width: 185px;
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 0;
}
.design-card-image {
    background: var(--color-bg-warm) url('/static/images/bg-header-japanese-paper.jpg') center / cover no-repeat;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.design-card-image img {
    max-width: 100%;
    height: auto;
}
.design-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid #ccc;
    flex: 1;
}
.design-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
}
.design-desc {
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.4;
}
.design-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.15rem;
}
.demo-link {
    text-align: center;
    margin: 1rem 0 0.5rem;
    font-size: 0.95em;
}
.demo-link a {
    color: #2a5d8a;
    font-weight: 600;
    text-decoration: none;
}
.demo-link a:hover {
    text-decoration: underline;
}
.order-note {
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
}
.generation-error {
    text-align: center;
    color: #666;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}
/* Verify section */
.verify-section {
    padding: 2rem 0;
    border-top: 1px solid #eee;
}
.verify-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.verify-box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
    position: relative;
}
.verify-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-right: 4rem;
}
.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    background: linear-gradient(to bottom, #333, #1a1a1a);
    color: #fff;
    border: 1px solid #111;
    border-bottom: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.copy-btn:hover {
    background: linear-gradient(to bottom, #444, #222);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.share-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #999;
}
.share-note a { color: #666; }

/* Search again */
.search-again {
    text-align: center;
    padding: 1.5rem 0;
}
.search-again-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #ddd;
    padding-bottom: 2px;
}
.search-again-link:hover { border-color: #1a1a1a; }

/* Layer divider */
.layer-divider {
    border: none;
    border-top: 2px solid #eee;
    margin: 1rem 0 0;
}
.layer2-header {
    text-align: center;
    padding: 2rem 0 1rem;
}
.layer2-header h2 {
    margin-bottom: 0.5rem;
}
.layer2-header p {
    color: #666;
    font-size: 0.95rem;
}
/* Name introduction (Kaggle) */
.name-intro {
    padding: 0 0 1.5rem;
    color: #333;
}

/* Etymology section */
.etymology-section {
    padding: 1rem 0 1.5rem;
    border-top: 1px solid #eee;
}
.etymology-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.etymology-section p {
    margin-bottom: 0.75rem;
    color: #333;
}

/* Pronunciations section */
.pronunciations-section {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}
.pronunciations-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.lang-group-header {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.25rem;
    color: #444;
}
.pronunciation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.pronunciation-table tr { border-bottom: 1px solid #f0f0f0; }
.pronunciation-table td { padding: 0.4rem 0.5rem; }
.pron-col { color: #555; white-space: nowrap; }
.arrow-col { color: #ccc; text-align: center; width: 2rem; }
.romaji-col { font-weight: 500; }
.romaji-col a { color: #1a1a1a; text-decoration: underline; }
.badge-col { text-align: right; }
.badge {
    display: inline-block;
    font-size: 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.current-variant { background: #f8f8f8; }

/* Pronunciation overflow toggle (CSS-only) */
.toggle-input { display: none; }
.toggle-content { display: none; }
.toggle-input:checked ~ .toggle-content { display: block; }
.toggle-input:checked ~ .toggle-label { display: none; }
.toggle-label {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.toggle-label:hover { background: #f5f5f5; }

/* Create My Name CTA */
.create-cta {
    padding: 2rem 0;
    border-top: 1px solid #eee;
    text-align: center;
}
.create-cta h3 {
    margin-bottom: 0.5rem;
}
.create-cta p {
    color: #555;
    margin-bottom: 1rem;
}
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(to bottom, #333, #1a1a1a);
    color: #fff;
    text-decoration: none;
    border: 1px solid #111;
    border-bottom: 3px solid #000;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.06),
                inset 0 1px 0 rgba(255,255,255,0.15);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.cta-button:hover {
    background: linear-gradient(to bottom, #444, #222);
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.22), 0 6px 12px rgba(0,0,0,0.08),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.cta-button:active {
    background: linear-gradient(to bottom, #111, #000);
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: 0 0 2px rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.15);
}

/* Archetype E: Create My Name primary */
.create-primary {
    text-align: center;
    padding: 2rem 0;
}
.create-primary p {
    margin-bottom: 1rem;
    color: #333;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Hero Showcase (4-card preview grid)                                       */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Trust block */
.trust-block {
    text-align: center;
    margin: 1rem auto 1.25rem;
    padding: 0.75rem 1rem;
    max-width: 420px;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.trust-block p {
    margin: 0.15rem 0;
}
.trust-block p:first-child {
    font-weight: 700;
    color: #222;
}

.hero-showcase {
    text-align: center;
    padding: 0.5rem 0 1rem;
}
.hero-showcase h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.hero-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.hero-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.hero-card-image {
    background: var(--color-bg-warm) url('/static/images/bg-header-japanese-paper.jpg') center / cover no-repeat;
    padding: 1rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-card-image img {
    max-width: 100%;
    height: auto;
}
.hero-card-label {
    display: block;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    border-top: 1px solid #ddd;
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Section intro text + Kana section                                         */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-intro {
    color: #444;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}
.kana-section {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}
.kana-section h2 {
    margin-bottom: 0.75rem;
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Pronunciation selector (inline horizontal)                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

.pronunciation-selector {
    margin: 1rem 0;
}
.pron-explanation {
    text-align: left;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.pron-buttons-bar {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem 1.5rem;
    overflow: visible;
}
.pron-option {
    display: inline-block;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.22);
    border-bottom: 3px solid rgba(0,0,0,0.30);
    border-radius: 6px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
}
.pron-option:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.25));
    border-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 3px 6px rgba(0,0,0,0.22), 0 6px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}
.pron-option:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: 0 0 2px rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.15);
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
}
.pron-option-active {
    background: linear-gradient(to bottom, #900, var(--color-accent));
    color: #fff;
    border-color: #500;
    border-bottom: 3px solid #300;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.pron-option-active:hover {
    background: linear-gradient(to bottom, #900, var(--color-accent));
    color: #fff;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Name info bar (gender buttons + Kaggle rank)                              */
/* ═══════════════════════════════════════════════════════════════════════════ */

.name-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.2rem 0;
    gap: 0.3rem;
}
.name-info-left {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.gender-buttons-bar {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}
.info-bar-search {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.gender-option {
    display: inline-block;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(0,0,0,0.22);
    border-bottom: 2px solid rgba(0,0,0,0.30);
    border-radius: 4px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
}
.gender-option:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.25));
    border-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 3px 6px rgba(0,0,0,0.22), 0 6px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}
.gender-option:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: 0 0 2px rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.15);
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
}
.gender-option-active {
    background: linear-gradient(to bottom, #900, var(--color-accent));
    color: #fff;
    border-color: #500;
    border-bottom: 2px solid #300;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.gender-option-active:hover {
    background: linear-gradient(to bottom, #900, var(--color-accent));
    color: #fff;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.info-bar-input {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(0,0,0,0.22);
    border-radius: 4px;
    width: 10rem;
    outline: none;
}
.info-bar-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(153,0,0,0.15);
}
.kaggle-rank {
    font-size: 0.85rem;
    color: var(--color-muted);
}
.ref-links {
    display: inline-flex;
    gap: 0.2rem;
    margin-left: 0.3rem;
}
.ref-link {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.15);
    transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.ref-link-disabled {
    color: #aaa;
    background: #f0f0f0;
    border-color: #ddd;
    pointer-events: none;
    opacity: 0.5;
}
.ref-link-active {
    color: var(--color-link);
    background: #fff;
    border-color: var(--color-link);
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}
.ref-link-active:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Meaning selector (kanji meaning switching — same visual pattern as pron)  */
/* ═══════════════════════════════════════════════════════════════════════════ */

.meaning-selector {
    text-align: center;
    margin-bottom: 1.2rem;
}
.meaning-buttons-bar {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem 1.5rem;
}
.meaning-option {
    display: inline-block;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.22);
    border-bottom: 3px solid rgba(0,0,0,0.30);
    border-radius: 6px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
}
.meaning-option:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.25));
    border-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 3px 6px rgba(0,0,0,0.22), 0 6px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}
.meaning-option:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: 0 0 2px rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.15);
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
}
.meaning-option-active {
    background: linear-gradient(to bottom, #900, var(--color-accent));
    color: #fff;
    border-color: #500;
    border-bottom: 3px solid #300;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.meaning-option-active:hover {
    background: linear-gradient(to bottom, #900, var(--color-accent));
    color: #fff;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.meaning-selector-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0.3rem 0 0;
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Specialty section (phrase compositions)                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.specialty-section {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}
.specialty-section h2 {
    margin-bottom: 0.75rem;
}
.specialty-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.specialty-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}
.specialty-6 .design-card {
    width: auto;
    min-width: 0;
}
.specialty-4 .design-card {
    width: 185px;
}

/* Word/kanji design cards — same 6-across grid as specialty-6 */
.word-showcase {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}
.word-showcase .design-card {
    width: auto;
    min-width: 0;
}

/* Unified 4-line card labels: name / pronunciation / kana / description */
.card-label-4line {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.3;
    gap: 0;
}
.card-name {
    font-weight: 700;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.card-pron {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0;
}
.card-variant-code {
    font-size: 0.7rem;
    opacity: 0.6;
}
.card-kana {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
}
.card-romaji {
    font-weight: 400;
    font-size: 0.78rem;
    font-style: italic;
    color: #999;
    margin: 0;
}
.card-desc {
    font-weight: 400;
    font-size: 0.8rem;
    color: #444;
    margin-top: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Meaning section                                                           */
/* ═══════════════════════════════════════════════════════════════════════════ */

.meaning-section {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}
.meaning-section h2 {
    margin-bottom: 0.75rem;
}
.meaning-section h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.meaning-section p {
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.65;
}
.meaning-teaching {
    font-style: italic;
    color: #555;
}

/* Complete picture — 3-beat summary */
.complete-picture {
    background: #f8f7f5;
    border-left: 3px solid var(--color-accent);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    border-radius: 0 4px 4px 0;
}
.complete-picture p {
    margin-bottom: 0.4rem;
    color: #333;
}
.complete-picture p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

/* Alternative kanji options */
.alt-kanji {
    margin: 1rem 0;
}
.alt-kanji-heading {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}
.alt-kanji ul {
    margin: 0.5rem 0 0 1.5rem;
}
.alt-kanji li {
    margin-bottom: 0.35rem;
    color: #333;
}

/* Related designs — 4-column meaning cards, centered to match kana/hero width */
.related-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0.75rem auto 0;
    max-width: 812px;
}
.related-showcase .design-card {
    width: auto;
    min-width: 0;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .name-info-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }
    .results-hero h1 {
        font-size: 2rem;
    }
    .design-card {
        width: 45%;
    }
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .verify-box p {
        padding-right: 0;
    }
    .copy-btn {
        position: static;
        display: block;
        margin-top: 0.75rem;
        width: 100%;
    }
    .pronunciation-table {
        font-size: 0.85rem;
    }
    /* Hero grid → 2×2 */
    .hero-showcase h1 {
        font-size: 2rem;
    }
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Specialty cards → 2 per row on mobile */
    .specialty-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .specialty-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .specialty-4 .design-card {
        width: auto;
    }
    /* Meaning cards → 3 per row on mobile (already works, keep as is) */
    .word-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Related designs → 2×2 */
    .related-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}
