/* The proof pages: credentials, the profile, the knowledge card, mentions,
   verified answers, honor evidence and search. Same world as the home page:
   lacquer, gold, Cormorant and Hanken, iOS grouped lists and cards, spring
   motion on arrival. Loaded after tokens.css. Content is untouched; this file
   only dresses the markup these pages already share. */

body { background: var(--lacquer); }

/* ---------- the bar: a back chevron, the name, tabs, the resume ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-chrome); display: flex; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: var(--lacquer); border-bottom: 1px solid var(--edge); }
@media (min-width: 760px) { .nav { padding-left: 32px; padding-right: 32px; } }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); flex: none; padding: 6px 10px 6px 4px; border-radius: 999px; transition: background-color .2s, transform .3s var(--spring); }
.nav__brand::before { content: ""; width: 9px; height: 9px; border-left: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(45deg); margin: 0 2px 0 6px; }
.nav__brand:hover { background: var(--panel); }
.nav__brand:active { transform: scale(.96); }
.nav__monogram { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--edge); font: italic 500 18px/1 var(--serif); color: var(--gold-2); }
.nav__name { font: 500 17px/1 var(--serif); letter-spacing: .01em; }
@media (max-width: 520px) { .nav__name { display: none; } }
.nav__links { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__link { flex: none; font: 500 13px/1 var(--sans); color: var(--link); text-decoration: none; padding: 9px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav__link:hover, .nav__link:focus-visible { background: var(--panel); color: var(--ivory); outline: none; }
.nav__link[aria-current="page"] { background: var(--panel-2); color: var(--ivory); }
.social-link--nav { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--link); }
.social-link--nav:hover { background: var(--panel); color: var(--ivory); }
.social-link__icon { width: 16px; height: 16px; fill: currentColor; }
.nav .btn { flex: none; min-height: 36px; padding: 8px 16px; font-size: 11px; background: var(--gold); border-color: var(--gold); color: var(--lacquer); font-weight: 600; }
.nav .btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
@media (max-width: 760px) { .nav { flex-wrap: wrap; row-gap: 8px; } .nav__links { order: 3; flex-basis: 100%; justify-content: flex-start; padding: 0 8px; margin: 0 -8px; } }

/* ---------- the page ---------- */
.detail-page { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: clamp(32px, 6vh, 72px) 16px 96px; }
@media (min-width: 760px) { .detail-page { padding-left: 32px; padding-right: 32px; } }
.section { margin-top: clamp(48px, 8vh, 88px); }
.section:first-child, .detail-hero { margin-top: 0; }
.section__head { margin-bottom: 18px; }
.section__numeral { display: none; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
.detail-hero .section__title { font-size: clamp(44px, 7.4vw, 88px); }
.section__title em { font-style: italic; color: var(--gold); }
.detail-lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--link); max-width: 62ch; }
.detail-hero .detail-lede { color: var(--ivory); font-size: clamp(17px, 1.9vw, 21px); }

/* links under a lede: a grouped list, two columns on wide screens */
.detail-links { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-ios); overflow: hidden; max-width: 760px; }
@media (min-width: 760px) { .detail-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-links .credentials__textlink:nth-child(2n) { border-left: 1px solid var(--edge); } }
.detail-links .credentials__textlink { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--edge); margin: -1px 0 0; color: var(--ivory); font: 500 15px/1.3 var(--sans); text-decoration: none; transition: background-color .2s; }
.detail-links .credentials__textlink::after { content: ""; width: 8px; height: 8px; flex: none; border-top: 1.5px solid var(--dim); border-right: 1.5px solid var(--dim); transform: rotate(45deg); transition: border-color .2s, transform .3s var(--spring); }
.detail-links .credentials__textlink:hover, .detail-links .credentials__textlink:focus-visible { background: var(--panel-2); outline: none; }
.detail-links .credentials__textlink:hover::after { border-color: var(--gold); transform: translateX(3px) rotate(45deg); }
.detail-links .credentials__textlink:active { background: var(--edge); }
.credentials__textlink { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(201, 166, 66, .45); text-underline-offset: 4px; }

/* verified answers: cards, two columns on wide screens */
.answers__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .answers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.answer { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-ios); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .4s var(--spring); }
.answer:hover { border-color: var(--edge-2); transform: translateY(-2px); }
.answer h3 { font: 600 17px/1.3 var(--sans); letter-spacing: 0; color: var(--ivory); }
.answer p { font-size: 15px; line-height: 1.6; color: var(--link); }
.label--accent { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-2); border: 1px solid rgba(201, 166, 66, .3); }

/* coursework: pills */
.credentials__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.credentials__list span { font: 500 13px/1 var(--sans); color: var(--ivory); padding: 10px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); }

/* education: two cards */
.edu__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .edu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.edu__card { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-ios); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.edu__card h3 { font-size: clamp(24px, 3vw, 30px); }
.edu__card p { color: var(--link); font-size: 15px; line-height: 1.55; }
.edu__school { font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.edu__school a { text-decoration: none; color: var(--link); }
.edu__honors { color: var(--gold-2) !important; font-weight: 500; }
.edu__proof { align-self: flex-start; margin-top: 4px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--lacquer); background: var(--gold); padding: 11px 16px; border-radius: 999px; transition: transform .3s var(--spring), background-color .2s; }
.edu__proof:hover { background: var(--gold-2); } .edu__proof:active { transform: scale(.95); }

/* search */
.search-panel { margin-top: 28px; display: grid; gap: 10px; max-width: 640px; }
.search-panel__row { display: flex; gap: 8px; }
.search-panel input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 999px; padding: 14px 20px; font: 15px var(--sans); color: var(--ivory); caret-color: var(--gold); }
.search-panel input:focus { outline: none; border-color: var(--gold); }
.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--lacquer); font-weight: 600; }
mark { background: var(--gold-wash); color: var(--gold-2); border-radius: 4px; padding: 0 2px; }

/* arrival: the hero rises, cards follow in order */
@keyframes proofUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.detail-hero > * { animation: proofUp .8s var(--spring-soft) both; }
.detail-hero > :nth-child(2) { animation-delay: .08s; } .detail-hero > :nth-child(3) { animation-delay: .16s; } .detail-hero > :nth-child(4) { animation-delay: .24s; }
.answers__grid > *, .edu__grid > *, .credentials__list > * { animation: proofUp .7s var(--spring-soft) both; }
.answers__grid > :nth-child(1) { animation-delay: .2s; } .answers__grid > :nth-child(2) { animation-delay: .26s; } .answers__grid > :nth-child(3) { animation-delay: .32s; } .answers__grid > :nth-child(4) { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) { .detail-hero > *, .answers__grid > *, .edu__grid > *, .credentials__list > * { animation: none; } }
