@font-face {
  font-family: "Inter Web";
  src: url("/fonts/card/inter-latin.74f954a51a64.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Secondary text uses --muted, which keeps at least 4.5:1 on every card surface. */
/* Match the homepage light palette; the card uses one continuous surface. */
:root { color-scheme: light; --bg: #fbf8f2; --paper: #fffdf9; --ink: #302b32; --muted: #706773; --line: #e6dfd4; --purple: #6a4fe0; --soft: #eee9fb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 "Inter Web", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:is(a, button, summary, input, textarea):focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 4px; }
button:disabled { cursor: wait; opacity: .65; }
.skip-link { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 8px 12px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.page { max-width: 568px; margin: 0 auto; padding: 30px 24px 24px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 18px; }
.page-kicker { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.5; letter-spacing: .12em; }
.language-switch { display: flex; flex-shrink: 0; align-items: center; gap: 1px; }
.language-switch button { min-width: 44px; min-height: 44px; padding: 6px; border: 0; background: none; color: var(--muted); font-size: 12px; }
.language-switch button[aria-pressed="true"] { color: var(--purple); font-weight: 650; }
main:focus { outline: none; }
.business-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.identity { position: relative; overflow: hidden; padding: 33px 34px 25px; }
/* Reserve the full ribbon sweep above the portrait and name, including its SVG overflow. */
.eyebrow { position: relative; z-index: 1; min-height: 72px; margin: 0; padding-right: 102px; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: .12em; }
html:is([lang="ko"], [lang="ja"]) :is(.page-kicker, .eyebrow) { letter-spacing: .04em; }
.identity-mark { position: absolute; width: 105px; height: auto; right: 24px; top: 12px; overflow: visible; opacity: .8; }
.identity-person { position: relative; z-index: 1; display: flex; align-items: center; gap: 19px; }
.portrait-frame { position: relative; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; border-radius: 50%; background: #f3f3f2; }
/* Keep the original 640px face crop in CSS while retaining the source alpha. */
.portrait { position: absolute; display: block; width: 171.875%; height: auto; max-width: none; left: -34.375%; top: -4.6875%; }
.identity-copy { min-width: 0; }
h1 { margin: 0; font-size: 36px; line-height: 1.25; font-weight: 650; letter-spacing: -.055em; }
.credentials { display: block; margin: 5px 0 0; color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: -.01em; white-space: nowrap; }
.other-name { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.profiles { padding: 24px 34px 0; border-top: 1px solid var(--line); }
.profile-summary + .profile-summary { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-role { margin: 0 0 4px; color: var(--ink); font-size: 19px; line-height: 28px; font-weight: 550; letter-spacing: -.025em; }
.profile-organization { margin: 0; font-size: 14px; font-weight: 550; line-height: 22px; letter-spacing: -.015em; }
.profile-department { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 22px; }
.interests { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 22px; }
.interest-label { display: block; margin-bottom: 2px; color: var(--ink); font-size: 11px; line-height: 18px; font-weight: 550; }
.profile-contacts { display: grid; gap: 4px; margin-top: 12px; }
.role-contact { display: flex; align-items: baseline; gap: 10px; min-height: 32px; padding: 5px 0; color: var(--muted); font-size: 13px; line-height: 22px; overflow-wrap: anywhere; word-break: normal; }
.role-contact:hover { color: var(--purple); }
.role-contact > span:last-child { color: var(--muted); }
.role-website { justify-content: space-between; color: var(--purple); }
.role-email-labeled { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; }
.email-kind { color: var(--ink); font-size: 11px; font-weight: 550; }
.email-value { min-width: 0; }
.contact-area { padding: 15px 34px 23px; }
/* Without script Save contact fills the row; enhanced actions form a two-by-two grid. */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; padding: 11px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 550; line-height: 1.4; }
.button-primary { grid-column: 1 / -1; background: var(--purple); color: white; }
.actions[data-ready] .button-primary { grid-column: auto; }
.contact-share-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-share-status:not(:empty) { margin-top: 10px; }
.button-primary:hover { background: #5940c8; }
.button-secondary { background: var(--paper); border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: var(--bg); }
.button svg { flex-shrink: 0; }
.profile-links { margin: 0 34px; border-top: 1px solid var(--line); padding: 4px 0 11px; }
.link-group + .link-group { border-top: 1px solid var(--line); }
.link-group-title { margin: 14px 0 0; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: .05em; }
.profile-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 0; }
.profile-link > span:first-child { min-width: 0; }
.profile-link + .profile-link, .profile-store-group, .profile-store-group + .profile-link { border-top: 1px solid var(--line); }
.link-label, .link-detail { display: block; }
.link-label { font-size: 14px; font-weight: 550; }
.link-detail { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.link-arrow { flex-shrink: 0; color: var(--muted); }
.profile-link:hover .link-label { color: var(--purple); }
.profile-store-group { padding: 12px 0; }
.profile-store-group .link-label { margin: 0 0 8px; }
.profile-store-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 6px; }
.profile-store-links a { display: grid; place-items: center; min-height: 44px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; color: var(--purple); font-size: 12px; font-weight: 550; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.profile-store-links a:hover { background: var(--soft); }
.publications { border-top: 1px solid var(--line); padding-top: 12px; }
.publications h3 { margin: 0 0 2px; font-size: 13px; font-weight: 650; }
.publications .profile-link { min-height: 50px; padding: 7px 0; }
.publications .scholar-link { min-height: 44px; border-top: 1px solid var(--line); }
.scholar-link .link-label { color: var(--purple); font-size: 12px; }
.scholar-link:hover .link-label { text-decoration: underline; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.footer-star { color: #c0a2d2; font-size: 13px; }
.sharing { max-width: 360px; margin: 16px auto 0; }
.sharing summary { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; color: var(--muted); font-size: 13px; cursor: pointer; list-style: none; }
.sharing summary::-webkit-details-marker { display: none; }
.details-chevron { margin-left: 4px; font-size: 17px; line-height: 1; }
.sharing[open] .details-chevron { transform: rotate(45deg); }
.share-content { display: flex; flex-direction: column; align-items: center; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.share-profile { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.share-content img { display: block; width: 196px; max-width: 100%; height: auto; }
.qr-hint { margin: 12px 0 15px; color: var(--muted); font-size: 13px; }
.share-content label { align-self: flex-start; margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.share-content textarea, .contact-share-link { width: 100%; min-height: 60px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.7; resize: none; overflow-wrap: anywhere; word-break: break-all; }
.contact-share-link { display: block; margin-top: 10px; }
.text-button { align-self: stretch; min-height: 44px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 14px; }
.text-button:hover { background: var(--bg); }
.share-content > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--purple); font-size: 14px; }
.share-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.share-status:not(:empty) { margin-top: 12px; }
.qr-dialog { width: min(360px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 16px; background: white; color: var(--ink); box-shadow: 0 24px 80px #2a1f3a40; }
.qr-dialog::backdrop { background: #2a2230a8; }
/* The body fills the dialog, so a click whose target is the dialog itself landed on the backdrop. */
.qr-dialog-body { position: relative; padding: 46px 24px 20px; }
.qr-dialog .share-content { padding: 0; border: 0; border-radius: 0; }
.qr-dialog .share-profile { color: var(--ink); font-size: 15px; font-weight: 550; }
.qr-dialog .share-content img { width: 240px; }
.dialog-close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.dialog-close:hover { background: var(--soft); color: var(--purple); }
.page-note { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
html[lang="ko"] h1 { letter-spacing: -.04em; }
/* Japanese fonts come first so kanji and kana share one typeface instead of mixing in Korean hanja glyphs. */
html[lang="ja"] body { font-family: "Inter Web", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; word-break: normal; line-break: strict; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .page { padding: 17px 16px 22px; }
  .masthead { gap: 6px; margin-bottom: 12px; }
  .page-kicker { letter-spacing: .08em; }
  .identity { padding: 28px 25px 22px; }
  .identity-mark { right: 18px; width: 90px; }
  .eyebrow { min-height: 64px; padding-right: 84px; letter-spacing: .08em; }
  .identity-person { gap: 15px; }
  .portrait-frame { flex-basis: 72px; width: 72px; height: 72px; }
  h1 { font-size: 30px; }
  .credentials { font-size: 12px; }
  .other-name { font-size: 13px; }
  .profiles { padding: 22px 25px 0; }
  .contact-area { padding: 13px 25px 20px; }
  .button { padding-inline: 10px; gap: 7px; }
  .profile-links { margin-inline: 25px; }
  .card-footer { padding-inline: 25px; }
  .qr-dialog-body { padding-inline: 20px; }
}
@media (max-width: 350px) {
  .identity, .profiles, .contact-area { padding-inline: 21px; }
  .profile-links { margin-inline: 21px; }
  .identity-person { gap: 12px; }
  .portrait-frame { flex-basis: 64px; width: 64px; height: 64px; }
  h1 { font-size: 26px; }
  .identity-mark { width: 84px; }
  .profile-role { font-size: 18px; }
  .button { font-size: 13px; padding-inline: 3px; gap: 4px; }
  .button svg { width: 16px; }
  .card-footer { padding-inline: 21px; }
}
@media print {
  body { background: white; }
  .page { max-width: 520px; padding: 0; }
  .business-card { box-shadow: none; break-inside: avoid; }
  .masthead, .actions, .sharing, .qr-dialog, .page-note { display: none !important; }
  .identity { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
