/* Same equal-width, underlined category tabs as the service guide. */
html body #page-venture.certification-page {
    height: auto !important;
    min-height: 100svh !important;
    padding-bottom: 64px;
}
#page-venture .certification-tabs {
    display: flex;
    width: 100%;
    margin-inline: auto;
    gap: 0;
    border-bottom: 1px solid rgba(252,252,252,.14);
}
body.light-mode #page-venture .certification-tabs { border-color: rgba(11,11,11,.12); }
html body #page-venture .certification-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 70px;
    box-sizing: border-box;
    padding: 18px 12px 22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #b5b5b5;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}
html body.light-mode #page-venture .certification-tab { color: #606066; }
#page-venture .certification-tab::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: #ff6e2e;
    opacity: 0;
    transition: opacity .25s ease;
}
html body #page-venture .certification-tab:is(:hover,:focus-visible,.active) { color: #ff6e2e; }
html body #page-venture .certification-tab.active { font-weight: 600; }
#page-venture .certification-tab.active::after { opacity: 1; }
#page-venture .certification-tab:focus-visible { outline: 2px solid #ff6e2e; outline-offset: -5px; }
#page-venture .certification-panels { width: 100%; min-width: 0; }
#page-venture .certification-panel[hidden] { display: none !important; }
#page-venture .certification-panel.is-entering { animation: certificationPanelIn .85s cubic-bezier(.22,1,.36,1) both; }
#page-venture .certification-panel.is-entering.is-tab-transition {
    animation-duration: 1.1s;
    animation-timing-function: cubic-bezier(.25,.65,.3,1);
}
html.certification-motion #page-venture[data-entrance="title"] .certification-tabs,
html.certification-motion #page-venture:is([data-entrance="title"],[data-entrance="tabs"]) .certification-panels {
    opacity: 0; visibility: hidden; pointer-events: none;
}
#page-venture[data-entrance="tabs"] .certification-tabs {
    animation: certificationTabsIn .65s cubic-bezier(.22,1,.36,1) both;
}
@keyframes certificationTabsIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
#page-venture .certification-panel .certificate-content { max-width: none; }
@keyframes certificationPanelIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Both certificate tabs use the same body scale and paragraph rhythm. */
html body #page-venture .certificate-description {
    font-size: clamp(15px,1.08vw,17px);
    line-height: 1.78;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
html body #page-venture .certificate-description :is(p,span,strong) {
    font-size: inherit;
    line-height: inherit;
}
html body #page-venture :is(.venture-paragraph-title,.certificate-tech-item > strong) {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ff6e2e !important;
    -webkit-text-fill-color: currentColor !important;
}
#page-venture .certificate-tech-list { gap: 18px; margin: 18px 0; }
@media (max-width:640px) {
    html body #page-venture .certificate-description {font-size:14px;line-height:1.78;}
    #page-venture .certificate-heading br {display:none;}
}
@media (max-width:1100px) {
    html body #page-venture .certification-tab { font-size: 17px; min-height: 64px; padding-inline: 10px; }
}
@media (max-width:700px) {
    html body #page-venture .certification-tab { font-size: 15px; min-height: 56px; padding: 16px 8px 18px; }
    #page-venture .certification-panel .certificate-description br { display: none; }
}
@media (prefers-reduced-motion:reduce) {
    #page-venture .certification-panel.is-entering,
    #page-venture[data-entrance="tabs"] .certification-tabs { animation: none; }
    html.certification-motion #page-venture :is(.certification-tabs,.certification-panels) {
        opacity: 1; visibility: visible; pointer-events: auto;
    }
}

@media(max-width:360px) {html body #page-venture .certification-tab {font-size:12px;padding-inline:4px}}

/* Two partner identities with a restrained collaboration mark. */
#page-venture .cooperation-partnership-visual {
    position:relative;width:min(320px,27vw);max-width:100%;aspect-ratio:595 / 786;
    border-radius:clamp(8px,1vw,12px);background:#1f1f1f;
    container-type:inline-size;overflow:hidden;
    display:block;
}
#page-venture .cooperation-university {
    position:absolute;left:0;right:0;top:24%;
    color:#fcfcfc;text-align:center;font-size:clamp(24px,2.7vw,32px);font-size:10cqi;font-weight:600;letter-spacing:.035em;
}
#page-venture .cooperation-university-name {display:flex;flex-direction:column;align-items:center;gap:.12em;line-height:1.15;}
#page-venture .cooperation-university-subtitle {font-size:.74em;letter-spacing:.035em;}
#page-venture .cooperation-company {position:absolute;left:23.5%;bottom:22%;width:53%;}
#page-venture .cooperation-company img {display:block;width:100%;height:auto;object-fit:contain;}
#page-venture .cooperation-cross {position:absolute;left:45.5%;top:46.6%;display:block;width:9%;aspect-ratio:1;color:#ff6e2e !important;}
#page-venture .cooperation-cross::before,
#page-venture .cooperation-cross::after {content:"";position:absolute;left:0;top:calc(50% - 1px);width:100%;height:2px;background:#ff6e2e !important;border-radius:2px;transform:rotate(45deg);}
#page-venture .cooperation-cross::after {transform:rotate(-45deg);}
#page-venture .cooperation-company .cooperation-logo-light {display:none;}
body.light-mode #page-venture .cooperation-partnership-visual {background:#f5f5f5;}
body.light-mode #page-venture .cooperation-university {color:#ff6e2e;}
body.light-mode #page-venture .cooperation-company .cooperation-logo-dark {display:none;}
body.light-mode #page-venture .cooperation-company .cooperation-logo-light {display:block;}
@media(max-width:768px) {
    #page-venture .cooperation-partnership-visual {width:min(250px,68vw);}
}

/* Preserve the requested sentence breaks on mobile as well. */
#page-venture .certification-panel .certificate-description br.cooperation-copy-break {display:block;}
