/* The mark describes authorship, not an external certification. Its larger
   transparent hit area keeps the compact label usable with touch/keyboard. */
:root{--authorship-wash:#f1ff75;--authorship-ink:#22250c;--authorship-secondary:#454b25;--authorship-border:#cad65b;--authorship-inset:#e3ef69}
.authorship-trigger{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#0a0a0a;cursor:pointer;vertical-align:middle}
.authorship-badge{display:block;white-space:nowrap;border-radius:6px;background:var(--authorship-wash);padding:7px 14px;font-size:14px;line-height:18px;font-weight:700;letter-spacing:.8px;transition:box-shadow 140ms ease}
.authorship-trigger:hover .authorship-badge,.authorship-trigger[aria-expanded=true] .authorship-badge{box-shadow:inset 0 0 0 1px var(--authorship-border)}
.authorship-trigger:focus-visible,.authorship-more:focus-visible,.authorship-close:focus-visible,.authorship-done:focus-visible{outline:2px solid #0a0a0a;outline-offset:4px;border-radius:6px}
.authorship-close:focus-visible{outline:0;border-radius:50%}
.authorship-close:focus-visible::before{outline:2px solid var(--authorship-ink);outline-offset:3px}
.author-identity{display:flex;align-items:center;gap:16px;flex-shrink:0;min-width:0}
.essay-title-group{display:flex;align-items:flex-start;gap:20px;min-width:0}
.essay-title-group>h1,.essay-title-group>h2{flex:1;min-width:0}
.essay-row .essay-title-group .authorship-trigger{margin-top:-2px}
.essay-row .authorship-badge{padding:5px 10px;border-radius:4px;font-size:11px;line-height:16px;letter-spacing:.6px}
.essay-hero .essay-title-group{margin-bottom:24px}
.essay-detail .essay-hero .essay-title-group>h1{margin:0}
.essay-hero .essay-title-group .authorship-trigger{margin-top:3px}
.essay-row .timeline-content .authorship-translation,.essay-hero .authorship-translation{margin:0;color:var(--muted);font-size:12px;line-height:20px;letter-spacing:0;font-weight:400}
.essay-row .timeline-content .authorship-translation{margin-top:-12px}
.essay-hero .authorship-translation{margin-top:-12px;margin-bottom:24px}
.site-footer,.biography-shell .site-footer{flex-wrap:wrap}
.authorship-more{display:block;text-align:start;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;line-height:18px;cursor:pointer}
.authorship-more:hover{text-decoration:underline;text-underline-offset:3px}
.authorship-panel{position:fixed;z-index:200;display:flex;flex-direction:column;gap:18px;width:382px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:16px 24px 24px;margin:0;background:var(--authorship-wash);color:var(--authorship-ink);border:1px solid var(--authorship-border);border-radius:16px;box-shadow:0 16px 40px #1c0f301f;text-align:start;font-size:14px;line-height:22px;animation:authorship-enter 140ms ease-out}
.authorship-panel[hidden]{display:none}
.authorship-panel p{margin:0}
.authorship-panel .authorship-eyebrow{display:flex;align-items:center;min-height:44px;padding-inline-end:52px;font-size:10px;line-height:16px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--authorship-secondary)}
.authorship-panel h2{max-inline-size:220px;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.02em;margin:0}
.authorship-translation-note{padding:12px 14px;border-radius:10px;background:var(--authorship-inset);color:var(--authorship-secondary);font-size:14px;line-height:22px}
.authorship-translation-note p{margin:0}
.authorship-translation-note .authorship-translation-title{margin-bottom:6px;color:var(--authorship-ink);font-size:12px;line-height:18px;font-weight:600}
.authorship-close{position:absolute;inset-block-start:16px;inset-inline-end:24px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:50%;color:inherit;cursor:pointer}
/* A smaller visible control keeps the existing 44px touch target. */
.authorship-close::before{content:"";position:absolute;inset:10px;border-radius:50%;background:var(--authorship-inset);pointer-events:none;transition:background-color 140ms ease}
.authorship-close svg{position:relative;width:16px;height:16px;pointer-events:none}
.authorship-close:hover::before{background:#d5e15d}
.authorship-done{display:none}
.authorship-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:560px;max-height:calc(100dvh - 24px);margin:0 auto;padding:0;border:0;border-radius:24px 24px 0 0;background:var(--authorship-wash);color:var(--authorship-ink);overflow:auto;overscroll-behavior:contain}
.authorship-sheet::backdrop{background:#1410183d}
.authorship-sheet .authorship-panel{position:relative;inset:auto!important;width:100%;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;padding:20px 24px calc(24px + env(safe-area-inset-bottom));font-size:16px;line-height:24px}
.authorship-sheet .authorship-panel h2{font-size:24px;line-height:30px}
.authorship-sheet .authorship-close{inset-block-start:20px}
.authorship-sheet .authorship-done{display:block;width:100%;min-height:48px;margin:0;border:0;border-radius:8px;background:var(--authorship-ink);color:#fff;font:inherit;font-size:14px;line-height:20px;font-weight:600;cursor:pointer}
.authorship-sheet .authorship-done:hover{background:#363c13}
html.authorship-sheet-open{overflow:hidden}
.authorship-noscript{max-width:680px;margin:24px auto;padding:24px;font-size:14px;line-height:22px}
@keyframes authorship-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:900px) and (max-width:1099px){
  .author-identity{gap:10px}
  .header-main{gap:18px}
  .publication-shell .author-name{font-size:20px;line-height:28px}
  .main-navigation{gap:14px}
}
@media(max-width:760px){
  .author-identity{gap:10px}
  .author-identity .authorship-badge{padding:5px 10px;border-radius:4px;font-size:11px;line-height:16px;letter-spacing:.6px}
  .author-identity .author-name,.publication-shell .author-identity .author-name,.site-header.is-condensed .author-identity .author-name{font-size:16px;line-height:24px}
  .author-identity .author-portrait{width:32px;height:32px}
  .essay-title-group{gap:12px}
  .essay-row .essay-title-group .authorship-trigger{margin-top:-6px}
  .essay-hero .essay-title-group{flex-direction:column;gap:8px;margin-bottom:20px}
  .essay-hero .essay-title-group .authorship-trigger{order:-1;margin:0}
  .essay-hero .authorship-translation{margin-bottom:20px}
}
@media(max-width:380px){
  .header-main{column-gap:8px}
  .author-identity{gap:6px}
  .author-identity .author-profile{gap:6px}
  .author-identity .author-portrait,.site-header.is-condensed .author-identity .author-portrait{width:28px;height:28px}
  .author-identity .author-name,.publication-shell .author-identity .author-name,.site-header.is-condensed .author-identity .author-name{font-size:14px;line-height:22px}
  .authorship-panel{font-size:14px;line-height:21px}
}
@media(prefers-reduced-motion:reduce){.authorship-panel{animation:none}.authorship-badge,.authorship-close::before{transition:none}}
