/* EFBA Pharma (JP) - base, typography, shell and components. Layout skeletons (hero, page head, sections): jp-theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--head-h) + 16px);
    color-scheme: only light;
}
html.jp-lock { overflow: hidden; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--txt);
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    line-break: strict;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    word-break: auto-phrase;
    font-feature-settings: "palt";
    letter-spacing: .04em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--acc); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--acc-h); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
em, i, address, cite { font-style: normal; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute; left: 16px; top: -64px; z-index: 200;
    padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--rad); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 28px;
    font: 700 15px/1.4 var(--f-body); letter-spacing: .04em;
    border: 1.5px solid var(--acc); border-radius: var(--rad);
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-h); border-color: var(--acc-h); color: #fff; }
.btn-secondary { background: #fff; color: var(--acc); }
.btn-secondary:hover { background: var(--tint); color: var(--acc-h); }

/* ---- site header + drawer ---- */
.jp-head { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.jp-head-in {
    max-width: var(--max); margin: 0 auto; height: var(--head-h);
    padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.jp-logo {
    display: inline-flex; align-items: center; gap: 12px; flex: none;
    font: 700 19px/1 var(--f-head); letter-spacing: .02em; color: var(--ink); text-decoration: none;
}
.jp-logo:hover { color: var(--ink); }
.jp-logo img { width: 32px; height: 32px; }
.jp-nav { display: none; margin-left: auto; }
.jp-nav ul { list-style: none; display: flex; gap: 34px; }
.jp-nav a {
    display: inline-block; padding: 6px 0; font-size: 15px; line-height: 1.5; color: var(--txt); text-decoration: none;
    box-shadow: inset 0 -2px 0 transparent;
}
.jp-nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--seiji-d); }
.jp-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.jp-cta { display: none; min-height: 44px; padding: 0 22px; }
.jp-menu-btn {
    min-height: 40px; padding: 0 14px; font: 500 14px/1 var(--f-body); letter-spacing: .04em;
    color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--rad); cursor: pointer;
}
.jp-menu-btn:hover { background: var(--tint); }
@media (min-width: 1100px) {
    .jp-logo { font-size: 21px; }
    .jp-nav { display: block; }
    .jp-cta { display: inline-flex; }
    .jp-menu-btn, .jp-drawer { display: none !important; }
}
.jp-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
    width: min(88vw, 360px); padding: 0 24px 32px; overflow-y: auto;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: 0 0 0 100vmax rgba(29, 33, 31, .45);
}
.jp-drawer-head { display: flex; justify-content: flex-end; align-items: center; height: var(--head-h); }
.jp-drawer-close {
    min-height: 40px; padding: 0 14px; font: 500 14px/1 var(--f-body); letter-spacing: .04em;
    color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--rad); cursor: pointer;
}
.jp-drawer-close:hover { background: var(--tint); }
.jp-drawer ul { list-style: none; margin: 8px 0 28px; }
.jp-drawer li + li { border-top: 1px solid var(--line); }
.jp-drawer li a {
    display: block; padding: 16px 0 16px 14px; font: 700 18px/1.5 var(--f-head); letter-spacing: .04em;
    color: var(--ink); text-decoration: none; border-left: 3px solid transparent;
}
.jp-drawer li a[aria-current="page"] { border-left-color: var(--acc); }
.jp-drawer .btn { width: 100%; }

/* ---- site note + footer ---- */
.site-note { background: var(--tint); }
.site-note p { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); font-size: 13px; line-height: 1.85; color: var(--txt); }
.site-note-short { display: block; }
.site-note-long { display: none; }
@media (min-width: 768px) {
    .site-note-short { display: none; }
    .site-note-long { display: block; }
}
.jp-foot { background: var(--foot); color: var(--foot-txt); }
.jp-foot-in {
    max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 28px;
    display: grid; gap: 32px; font-size: 14px; line-height: 2;
}
@media (min-width: 768px) { .jp-foot-in { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.jp-foot-name { margin: 0; font: 700 21px/1.4 var(--f-head); letter-spacing: .02em; color: #fff; }
.jp-foot-tag { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--foot-mute); }
.jp-foot-h { margin: 0 0 4px; font: 700 14px/1.8 var(--f-head); letter-spacing: .08em; color: #fff; }
.jp-foot ul { list-style: none; }
.jp-foot a { color: var(--foot-txt); text-decoration: none; }
.jp-foot a:hover { color: #fff; text-decoration: underline; }
.jp-foot a:focus-visible { outline-color: #fff; }
.jp-foot-copy { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 28px; font-size: 12.5px; color: var(--foot-mute); }

/* ---- breadcrumb ---- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .5em; font-size: 13px; line-height: 1.8; color: var(--mute); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .5em; color: var(--mute); }
.breadcrumb a { color: var(--mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--acc); text-decoration: underline; }

/* ---- facts (definition rows, no cards) ---- */
.facts { margin: 0; display: grid; grid-template-columns: 1fr; }
.facts > div { display: grid; grid-template-columns: 6.8em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font: 700 15px/1.7 var(--f-head); letter-spacing: .02em; color: var(--ink); }
.facts dd { margin: 0; font-size: 14px; line-height: 1.85; }
.facts--one > div { grid-template-columns: 1fr; gap: 2px; }
.facts--one dt { font-size: 17px; }
.facts--one dd { font-size: 15px; }
@media (min-width: 768px) {
    .facts--one > div { grid-template-columns: 17em 1fr; gap: 24px; }
}
@media (min-width: 1100px) {
    .facts:not(.facts--one) { grid-template-columns: 1fr 1fr; column-gap: 56px; }
    .facts:not(.facts--one) > div { grid-template-columns: 132px 1fr; gap: 16px; padding: 18px 0; }
    .facts:not(.facts--one) dt { font-size: 16px; }
    .facts:not(.facts--one) dd { font-size: 14.5px; }
}

/* ---- flow (4 stations, crackle nodes, no numbers) ---- */
.flow { list-style: none; margin: 8px 0 0; position: relative; }
.flow li { position: relative; padding: 0 0 28px 48px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--seiji-d); }
.flow li:last-child::before { display: none; }
.flow-node {
    position: absolute; left: 0; top: 2px; width: 28px; height: 28px;
    background: url("/assets/img/jp/crackle-node.svg") center / cover no-repeat;
}
.flow h3 { margin: 0 0 4px; font-size: 17px; }
.flow p { margin: 0; font-size: 14px; line-height: 1.8; }
@media (min-width: 900px) {
    .flow { display: grid; grid-template-columns: repeat(4, 1fr); }
    .flow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 15px; height: 1px; background: var(--seiji-d); }
    .flow li { padding: 44px 28px 0 0; }
    .flow li::before { display: none; }
    .flow-node { top: 1px; }
}

/* ---- journal list (date | title | arrow) ---- */
.journal-list { list-style: none; margin: 0; }
.journal-item {
    position: relative; display: grid; grid-template-columns: 1fr 24px; column-gap: 12px; row-gap: 2px;
    padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.journal-item:last-child { border-bottom: 1px solid var(--line); }
.journal-item time { grid-column: 1 / -1; font-size: 13.5px; color: var(--mute); }
.journal-link { font: 700 16px/1.7 var(--f-head); letter-spacing: .03em; color: var(--ink); text-decoration: none; }
.journal-link::after { content: ""; position: absolute; inset: 0; }
.journal-item:hover .journal-link { color: var(--acc); text-decoration: underline; }
.journal-arrow { color: var(--acc); font-size: 18px; line-height: 1; text-align: right; }
.journal-arrow::before { content: "\2192"; }
@media (min-width: 768px) {
    .journal-item { grid-template-columns: 170px 1fr 24px; column-gap: 20px; padding: 18px 0; }
    .journal-item time { grid-column: auto; }
    .journal-link { font-size: 17px; }
}
.more-link { display: inline-block; margin-top: 20px; font-weight: 700; }
.more-link::after { content: " \2192"; }

/* ---- FAQ ---- */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
    position: relative; list-style: none; cursor: pointer; padding: 16px 40px 16px 0;
    font: 700 16px/1.7 var(--f-head); letter-spacing: .03em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > p { margin: 0; padding: 0 0 18px; font-size: 15px; }

/* ---- CTA box ---- */
.cta-box { margin-top: 36px; padding: 24px 24px 26px; background: var(--tint); border-left: 3px solid var(--acc); }
.cta-box h3 { font-size: 19px; margin: 0 0 6px; }
.cta-box p { margin: 0 0 16px; font-size: 15px; }

/* ---- lists / prose ---- */
.prose p { font-size: 15.5px; }
.prose p + .facts, .prose p + .check-list, .prose .check-list + p { margin-top: 18px; }
.check-list { list-style: none; margin: 0 0 1.2em; }
.check-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.85; }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; background: var(--seiji); border: 1px solid var(--seiji-d); }
.text-link { font-weight: 700; }
.note-box { padding: 18px 22px; background: var(--tint); border-left: 3px solid var(--acc); font-size: 14.5px; line-height: 1.9; }
.note-box p:last-child { margin-bottom: 0; }

/* ---- legal documents ---- */
.legal-doc { max-width: 760px; counter-reset: legal; }
.legal-doc .doc-date { margin: 0 0 20px; font-size: 14px; color: var(--mute); }
.legal-doc > p { font-size: 15px; }
.legal-doc section { margin-top: 36px; }
.legal-doc h2 { font-size: 20px; margin-bottom: 8px; padding-left: 12px; border-left: 3px solid var(--acc); }
.legal-doc.is-numbered h2::before { counter-increment: legal; content: counter(legal) ". "; }
.legal-doc section p, .legal-doc section li { font-size: 15px; }
.legal-doc ul { margin: 0 0 1em 1.2em; padding: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 15px; }
.legal-table th, .legal-table td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.85; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 1px solid var(--line); }
.legal-table th { width: 9em; font: 700 15px/1.85 var(--f-head); color: var(--ink); }
@media (max-width: 599px) {
    .legal-table th, .legal-table td { display: block; width: auto; padding-right: 0; }
    .legal-table th { padding-bottom: 0; border-bottom: 0; }
    .legal-table td { border-top: 0; padding-top: 2px; }
    .legal-table tr:last-child th { border-bottom: 0; }
}

/* ---- Knowledge base (content written by the KB generator; styling only) ---- */
.kb-index { margin: 0 0 40px; padding: 18px 22px; border: 1px solid var(--line); }
.kb-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.kb-index a { font-size: 14px; }
.kb-cat { margin-top: 48px; }
.kb-cat > h2 { margin-bottom: 20px; padding-left: 12px; font-size: 24px; border-left: 3px solid var(--acc); }
.kb-mol { padding: 24px 0; border-top: 1px solid var(--line); }
.kb-mol h3 { font-size: 20px; margin-bottom: 10px; }
.kb-mol h4 { margin: 18px 0 4px; font-size: 14px; color: var(--acc); letter-spacing: .08em; }
.kb-mol p { font-size: 15px; margin-bottom: .8em; }
.kb-refs { margin: 0 0 0 1.4em; font-size: 13.5px; line-height: 1.8; color: var(--mute); }
.kb-refs li { margin-bottom: 4px; }
