/* ============================================================
   patent.css — digpatent.com EN patent detail page
   Brand: Iron Blue #192f60 | Muted Gold #c8960c | Ink #1e293b
   ============================================================ */

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    padding-top: var(--header-height, 3.5rem);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ── Loading ─────────────────────────────────────────────── */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height, 3.5rem));
    padding: 40px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top-color: #c8960c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p { color: #64748b; font-size: 1rem; font-weight: 600; }

/* ── Report container ────────────────────────────────────── */
.report-container {
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── Test panel (dev-only, auto-hidden once MySQL has EN data) */
.en-test-panel {
    background: #fef3c7;
    border-bottom: 2px solid #c8960c;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.en-test-panel select {
    font-size: 0.82rem;
    padding: 4px 10px;
    border: 1px solid #c8960c;
    border-radius: 6px;
    background: #fff;
    color: #92400e;
    cursor: pointer;
    max-width: 400px;
}

/* ── Hero section ────────────────────────────────────────── */
.hero-section {
    background: #192f60;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* IP Rank badge */
.hero-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c8960c;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 12px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(200,150,12,0.3);
}
.hero-rank-badge svg { width: 28px; height: 28px; stroke-width: 2; }

/* Rank A / B variants */
.hero-rank-a { background: #3b82f6 !important; box-shadow: 0 4px 20px rgba(59,130,246,0.3) !important; }
.hero-rank-b { background: #64748b !important; box-shadow: 0 4px 20px rgba(100,116,139,0.3) !important; }

/* Applicant type badge */
.applicant-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 20px;
    margin-left: 15px;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.30);
}
.applicant-type-badge svg { width: 24px; height: 24px; stroke-width: 2; }

/* EN: Industry tag (in hero badges row) */
.en-industry-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

/* EN: Protection remaining badge */
.en-protection-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.95);
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
}

/* Hero text */
.hero-catchcopy {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #c8960c;
    letter-spacing: -1px;
}

.hero-economic-impact {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: rgba(255,255,255,0.85);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.4;
    font-weight: 400;
}

/* CTA button */
.cta-button {
    background: #c8960c;
    color: #ffffff;
    font-weight: 700;
    padding: 20px 44px;
    border: none;
    border-radius: 50px;
    font-size: clamp(16px, 2.5vw, 18px);
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(200,150,12,0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.cta-button .icon-outline { color: #ffffff; }
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(200,150,12,0.35);
    background: #a87a0a;
}

/* ── Advantage hero block (shared, hero section) ─────────── */
.advantage-hero-block {
    margin-top: 52px;
    width: 100%;
}
.advantage-hero-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.advantage-hero-divider::before,
.advantage-hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.22);
}
.advantage-hero-heading {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.06em;
    white-space: nowrap;
    margin: 0;
}
.advantage-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}
.advantage-hero-card {
    background: rgba(255,255,255,0.97);
    border-radius: 8px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 3px solid #c8960c;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.advantage-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.advantage-hero-card-header { display: flex; align-items: flex-start; gap: 10px; }
.advantage-hero-number {
    font-size: 0.6rem;
    font-weight: 800;
    color: #c8960c;
    border: 1.5px solid #c8960c;
    border-radius: 3px;
    padding: 2px 6px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    line-height: 1.6;
}
.advantage-hero-title { font-size: 0.875rem; font-weight: 700; color: #192f60; margin: 0; line-height: 1.45; }
.advantage-hero-detail { font-size: 0.785rem; color: #475569; line-height: 1.8; margin: 0; }

/* ── Bento Grid (12-col base) ────────────────────────────── */
.main-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    padding: 60px;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── EN Bento Grid container ─────────────────────────────── */
.en-grid {
    /* inherits .main-content 12-col grid */
}

/* ── EN grid card placements (desktop) ──────────────────── */
.en-why-now-card      { grid-column: 1 / -1; }
.en-advantages-card   { grid-column: span 8; }
.en-rank-card         { grid-column: span 4; }
.en-market-card       { grid-column: 1 / -1; }
.en-tech-card         { grid-column: span 8; }
.en-scorecard-card    { grid-column: span 4; }
.en-diff-card         { grid-column: 1 / -1; }
.en-economic-card     { grid-column: span 6; }
.en-ttm-card          { grid-column: span 6; }
.en-positioning-card  { grid-column: span 4; }
.en-business-card     { grid-column: span 8; }
.en-roadmap-wrap      { grid-column: 1 / -1; }
.en-licensing-card    { grid-column: span 6; }
.en-details-card      { grid-column: span 6; }

/* ── EN typography: slightly larger line-height ──────────── */
.en-page .card-content p,
.en-page .card-content div {
    line-height: 1.65;
}

/* ── Section card ────────────────────────────────────────── */
.section-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(25,47,96,0.06);
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 50px rgba(25,47,96,0.08);
}

/* ── Card header ─────────────────────────────────────────── */
.card-header {
    background: transparent;
    color: #192f60;
    padding: 0 0 16px 20px;
    font-weight: 900;
    font-size: clamp(18px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #c8960c;
    margin-bottom: 20px;
}
.card-content { font-size: 0.95rem; line-height: 1.65; }

/* ── Icons ───────────────────────────────────────────────── */
.icon-outline { width: 24px; height: 24px; stroke-width: 1.5; flex-shrink: 0; }
.icon-normal   { color: #192f60; }
.icon-important { color: #192f60; }

/* ── Tech tags ───────────────────────────────────────────── */
.tech-tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(200,150,12,0.07), rgba(200,150,12,0.11));
    color: #192f60;
    border: 2px solid rgba(200,150,12,0.30);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tech-tag:hover {
    background: linear-gradient(135deg, rgba(200,150,12,0.14), rgba(200,150,12,0.18));
    border-color: rgba(200,150,12,0.50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,150,12,0.18);
}

/* ── Roadmap ─────────────────────────────────────────────── */
.roadmap-title {
    color: #192f60;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    margin-bottom: 24px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #c8960c;
}
.roadmap-phases { position: relative; padding-left: 30px; }
.roadmap-phase  { position: relative; margin-bottom: 32px; padding-left: 20px; }
.roadmap-phase::before {
    content: '';
    position: absolute;
    left: -30px; top: 8px;
    width: 16px; height: 16px;
    background: #c8960c;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #c8960c;
    z-index: 2;
}
.roadmap-phase::after {
    content: '';
    position: absolute;
    left: -22px; top: 24px;
    width: 2px; height: calc(100% + 8px);
    background: #cbd5e1;
    z-index: 1;
}
.roadmap-phase:last-child::after { display: none; }
.roadmap-phase-name     { font-size: 18px; font-weight: 700; color: #192f60; margin-bottom: 8px; }
.roadmap-phase-duration {
    font-size: 14px; font-weight: 600;
    color: #c8960c;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.roadmap-phase-duration svg { width: 18px; height: 18px; }
.roadmap-phase-desc { font-size: 14px; color: #64748b; line-height: 1.7; }

/* EN roadmap wrap card */
.en-roadmap-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(25,47,96,0.06);
    padding: 32px;
}

/* ── Table (differentiation) ─────────────────────────────── */
.table-responsive-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}

/* ── Chart container ─────────────────────────────────────── */
.chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    max-height: 100%;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline-item { position: relative; padding-left: 20px; margin-bottom: 16px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 10px; height: 10px;
    background: #c8960c;
    border-radius: 50%;
    z-index: 2;
}
.timeline-dot { display: none; }

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(25,47,96,0.08);
    padding: 40px;
    text-align: center;
    max-width: 1000px;
    margin: 40px auto 20px;
}
.cta-title { color: #192f60; font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin-bottom: 24px; }
.checkbox-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 16px 24px; margin-bottom: 28px;
}
.checkbox-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.checkbox-label { font-size: 15px; color: #192f60; font-weight: 500; }

/* ── Footer ──────────────────────────────────────────────── */
.report-footer { padding: 30px 20px; max-width: 1200px; margin: 0 auto; }
.footer-content { text-align: center; font-size: 0.85rem; color: #64748b; }

/* ── EN: IP Quality card internals ──────────────────────── */
.en-score-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.en-stat-box       { border-radius: 8px; padding: 12px; text-align: center; }
.en-stat-gold      { background: #fef9ec; }
.en-stat-blue      { background: #e0f2fe; }

/* EN: Advantage number circles */
.en-advantage-num {
    width: 34px; height: 34px;
    background: #192f60; color: #c8960c;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem;
    flex-shrink: 0;
}

/* EN: Scorecard card flex column */
.en-scorecard-card .card-content { display: flex; flex-direction: column; }

/* EN: Market section */
.en-insight-box {
    font-size: 0.95rem; color: #475569; line-height: 1.8;
    margin-bottom: 24px; padding: 16px 20px;
    background: #f8fafc; border-radius: 10px;
    border-left: 3px solid #192f60;
}
.en-section-label {
    font-size: 0.75rem; font-weight: 700; color: #192f60;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 14px; padding-left: 12px;
    border-left: 3px solid #c8960c;
}
.en-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.en-market-segment {
    background: #f8fafc; border-radius: 12px; padding: 16px;
    border: 1px solid #e2e8f0; transition: box-shadow 0.2s;
}
.en-market-segment:hover { box-shadow: 0 6px 20px rgba(25,47,96,0.08); }
.en-licensee-tag {
    display: inline-block; background: #e0f2fe; color: #0369a1;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}

/* EN: Sub-headers inside cards */
.en-sub-header {
    font-size: 13px; font-weight: 700; color: #192f60;
    margin-bottom: 8px; padding-left: 10px;
    border-left: 3px solid #c8960c;
}

/* EN: Business model items */
.biz-model-item { padding: 14px 0; border-bottom: 1px solid #e2e8f0; }
.biz-model-item:last-child { border-bottom: none; }
.biz-model-content { display: flex; flex-direction: column; gap: 4px; }
.biz-model-title {
    font-size: 0.95rem; font-weight: 700; color: #192f60;
    display: flex; align-items: center; gap: 8px;
}
.biz-model-icon { font-size: 1.2rem; }
.biz-model-desc { font-size: 0.88rem; color: #475569; line-height: 1.65; }

/* EN: Pivot items */
.pivot-item { background: #fffbeb; border-radius: 8px; padding: 12px; margin-bottom: 8px; border-bottom: none; }
.pivot-industry-badge {
    display: inline-block; font-size: 0.78rem; font-weight: 700;
    color: #92400e; background: #fef3c7;
    padding: 2px 10px; border-radius: 12px; margin-bottom: 6px;
}

/* EN: Licensing status boxes */
.en-lic-status-box {
    border-radius: 10px; padding: 14px 10px;
    text-align: center; border: 1px solid transparent;
}

/* ── Basic info collapsible (PC: always visible) ─────────── */
.toggle-basic-info { display: none; }
.basic-info-collapsible { max-height: none; overflow: visible; }

/* ================================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .en-advantages-card,
    .en-rank-card,
    .en-tech-card,
    .en-scorecard-card,
    .en-economic-card,
    .en-ttm-card,
    .en-licensing-card,
    .en-details-card,
    .en-positioning-card,
    .en-business-card {
        grid-column: 1 / -1;
    }

    .advantage-hero-card { padding: 18px 16px; }
    .advantage-hero-title { font-size: 0.82rem; }
}

/* ================================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================================ */
@media screen and (max-width: 768px) {
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .report-container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .hero-section {
        padding: 24px 16px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .main-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 24px 16px !important;
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .section-card {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 24px;
    }

    .en-roadmap-wrap {
        grid-column: 1 / -1 !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 20px 16px;
    }

    .card-header { font-size: clamp(16px, 4vw, 20px); }
    .card-content { font-size: 13px; }

    .cta-section {
        padding: 24px 16px !important;
        margin: 24px auto 16px;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .checkbox-grid { flex-direction: column; align-items: center; gap: 12px; }

    .table-responsive-wrapper {
        border-radius: 8px;
        box-shadow: inset 0 0 0 1px #e2e8f0;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100%;
    }

    .en-test-panel { font-size: 0.78rem; }
    .en-test-panel select { max-width: 100%; width: 100%; }
    .en-market-grid { grid-template-columns: 1fr; }

    /* Licensing status: stack boxes */
    .en-licensing-card .card-content > div:first-child {
        grid-template-columns: 1fr;
    }

    .advantage-hero-block { margin-top: 36px; }
    .advantage-hero-heading { font-size: 0.875rem; white-space: normal; text-align: center; }
    .advantage-hero-grid { grid-template-columns: 1fr; gap: 12px; }
    .advantage-hero-card { padding: 16px 14px; border-top: none; border-left: 3px solid #c8960c; }
    .advantage-hero-title { font-size: 0.875rem; }
    .advantage-hero-detail { font-size: 0.8rem; }

    /* New elements — mobile */
    .at-a-glance { flex-wrap: wrap; border-top: none; border-bottom: none; padding: 12px 0; }
    .glance-item { flex: none; width: 50%; padding: 10px 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
    .glance-item:nth-last-child(-n+2) { border-bottom: none; }

    .ip-strategy-grid { grid-template-columns: 1fr; gap: 12px; }

    .lic-status-grid { grid-template-columns: 1fr; }

    .dark-licensing-cta { padding: 48px 20px; }
    .dark-cta-headline { font-size: clamp(1.5rem, 6vw, 2rem); }

    .patent-fields-grid { grid-template-columns: repeat(2, 1fr); }

    .scorecard-grid { grid-template-columns: 1fr; }
    .quality-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   EN PAGE — color variable override (fix JP marigold bleed)
   ================================================================ */
.en-page {
    --color-secondary: #c8960c;
}

/* ================================================================
   HERO — redesigned editorial layout
   ================================================================ */
.hero-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-industry-chip {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
}

.hero-applicant-chip {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.20);
    white-space: nowrap;
}
.hero-applicant-chip.applicant-research {
    background: rgba(200,150,12,0.25);
    border-color: rgba(200,150,12,0.5);
    color: #fef9ec;
}

.hero-rank-chip {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}
.hero-rank-s { background: #c8960c; color: #fff; }
.hero-rank-a { background: #3b82f6; color: #fff; }
.hero-rank-b { background: #64748b; color: #fff; }

.hero-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    color: #c8960c;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 auto 20px;
    max-width: 900px;
}

.hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.82);
    max-width: 740px;
    margin: 0 auto 36px;
    line-height: 1.75;
    font-weight: 400;
}

/* AT A GLANCE strip */
.at-a-glance {
    display: flex;
    justify-content: center;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 22px 0;
    margin: 0 auto 36px;
    max-width: 700px;
    flex-wrap: wrap;
}

.glance-item {
    flex: 1;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.glance-item:last-child { border-right: none; }

.glance-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.glance-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.glance-value small {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
}

.glance-available { color: #4ade80 !important; }
.glance-pending   { color: #fbbf24 !important; }

/* ================================================================
   BENTO GRID — updated column assignments
   ================================================================ */
.en-scorecard-card   { grid-column: span 5; }
.en-positioning-card { grid-column: span 7; }
.en-ip-strategy-card { grid-column: 1 / -1; }
.en-details-card     { grid-column: 1 / -1; }
.en-ttm-full         { grid-column: 1 / -1; }
.en-licensing-full   { grid-column: 1 / -1; }

/* ================================================================
   ADVANTAGE ROW — redesigned for string array (v4) and object (old)
   ================================================================ */
.advantage-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}
.advantage-row:last-child { border-bottom: none; }

.en-advantage-num {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #c8960c;
    min-width: 36px;
    line-height: 1.1;
    flex-shrink: 0;
    opacity: 0.75;
}

.advantage-body { flex: 1; }

.advantage-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.8;
    margin: 0;
}

.advantage-title {
    font-size: 1rem;
    font-weight: 700;
    color: #192f60;
    margin-bottom: 5px;
}

.advantage-detail {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

/* ================================================================
   MARKET SEGMENT — v4 format
   ================================================================ */
.market-seg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}
.market-seg-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #192f60;
    flex: 1;
}
.market-seg-tam {
    font-size: 1.05rem;
    font-weight: 800;
    color: #059669;
    white-space: nowrap;
    margin-bottom: 6px;
}
.market-seg-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}
.market-seg-licensees {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* ================================================================
   IP STRATEGY — new section (v4 only)
   ================================================================ */
.ip-strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.ip-strategy-col {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.ip-whitespace-col {
    background: #fef9ec;
    border-color: #f0d68a;
}

/* ================================================================
   ECONOMIC IMPACT
   ================================================================ */
.eco-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
    margin-bottom: 4px;
}
.eco-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 16px;
}

/* ================================================================
   TIME TO MARKET — redesigned bars
   ================================================================ */
.ttm-speedup-badge {
    display: inline-block;
    background: #fef9ec;
    border: 1px solid #c8960c;
    color: #c8960c;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.ttm-bar-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ttm-bar-label-fast { color: #c8960c; }
.ttm-bar {
    height: 22px;
    border-radius: 4px;
}
.ttm-bar-base {
    width: 100%;
    background: #94a3b8;
}
.ttm-bar-fast {
    background: linear-gradient(90deg, #c8960c, #d4a820);
    min-width: 40px;
}
.ttm-faster-badge {
    font-weight: 700;
    color: #c8960c;
    font-size: 0.7rem;
    white-space: nowrap;
}
.ttm-comment {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
    margin-top: 14px;
}

/* ================================================================
   IP QUALITY CARD — rank display
   ================================================================ */
.rank-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}
.rank-letter {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}
.rank-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
.quality-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

/* ================================================================
   SCORECARD GRID
   ================================================================ */
.scorecard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 14px;
}
.scorecard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 9px;
    background: #f8fafc;
    border-radius: 5px;
    font-size: 0.75rem;
}

/* ================================================================
   POSITIONING CHART
   ================================================================ */
.positioning-axis-label {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.5;
}

/* ================================================================
   LICENSING STATUS
   ================================================================ */
.lic-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.lic-summary-box {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.75;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #192f60;
}

/* ================================================================
   PATENT RECORD FIELDS
   ================================================================ */
.patent-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}
.patent-field-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
}
.patent-field-label {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.patent-field-value {
    font-size: 0.88rem;
    color: #192f60;
    font-weight: 700;
}
.patent-field-expiry {
    background: #fef9ec;
    border: 1px solid #f0d68a;
}
.patent-field-expiry .patent-field-label { color: #b07d0a; }
.patent-field-expiry .patent-field-value { color: #c8960c; font-size: 1rem; }

/* ================================================================
   DARK LICENSING CTA SECTION
   ================================================================ */
.dark-licensing-cta {
    background: #0c1829;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-top: 20px;
}
.dark-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}
.dark-cta-badge {
    display: inline-block;
    background: rgba(200,150,12,0.18);
    color: #c8960c;
    border: 1px solid rgba(200,150,12,0.4);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 3px;
    margin-bottom: 24px;
}
.dark-cta-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.dark-cta-lead {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin: 0 auto 32px;
    max-width: 560px;
}
.dark-cta-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 32px;
}
.dark-cta-options span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding-left: 14px;
    position: relative;
}
.dark-cta-options span::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #c8960c;
    font-weight: 900;
}
.dark-cta-button {
    display: inline-block;
    background: #c8960c;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}
.dark-cta-button:hover { background: #a87a0a; }
.dark-cta-footnote {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-top: 10px;
}

/* ================================================================
   DISCLAIMER
   ================================================================ */
.en-disclaimer {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.7;
    text-align: center;
}

/* ================================================================
   RESPONSIVE — Tablet (≤ 1024px) — new elements
   ================================================================ */
@media (max-width: 1024px) {
    .en-scorecard-card,
    .en-positioning-card,
    .en-ip-strategy-card { grid-column: 1 / -1; }

    .ip-strategy-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ================================================================
   RESPONSIVE — Small mobile (≤ 480px)
   ================================================================ */
@media screen and (max-width: 480px) {
    .hero-section {
        padding: 20px 12px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .hero-rank-badge  { font-size: 1.2rem; padding: 10px 20px; }
    .applicant-type-badge { font-size: 1rem; padding: 8px 16px; margin-left: 0; margin-top: 10px; }

    .main-content {
        padding: 20px 12px !important;
        gap: 20px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .section-card {
        padding: 20px;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .cta-section {
        padding: 20px 12px !important;
        margin: 20px auto 12px;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .checkbox-label { font-size: 14px; }
}

/* ── CTA 2ボタン構成（直接連絡=主 / 関心通知=副）2026-07-17 ── */
.dark-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dark-cta-button-secondary {
    background: transparent;
    border: 1px solid rgba(200, 150, 12, 0.55);
    color: #d9b04a;
}
.dark-cta-button-secondary:hover {
    background: rgba(200, 150, 12, 0.12);
    color: #e8c56a;
}
