/* =========================================================================
   IWT Lab - internal hub. Toss-inspired design system.
   Edit tokens below to retheme the whole site.
   ========================================================================= */

:root {
  /* brand */
  --blue:        #3182F6;
  --blue-dark:   #1B64DA;
  --blue-soft:   #E8F1FE;
  --blue-tint:   #F4F8FF;

  /* ink + gray scale (Toss-like) */
  --ink:         #191F28;
  --gray-800:    #333D4B;
  --gray-700:    #4E5968;
  --gray-600:    #6B7684;
  --gray-500:    #8B95A1;
  --gray-300:    #D1D6DB;
  --gray-200:    #E5E8EB;
  --gray-100:    #F2F4F6;
  --gray-50:     #F9FAFB;
  --white:       #FFFFFF;

  /* tier accents (contribution ladder) */
  --tier-found:  #F2F4F6;
  --tier-applied:#E5E8EB;
  --tier-intel:  #DEEBFF;
  --tier-lead:   #C5DCFF;

  --radius-xl:   24px;
  --radius-lg:   20px;
  --radius-md:   14px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:   0 2px 8px rgba(0,0,0,.05), 0 12px 32px rgba(17,24,39,.06);

  --maxw:        1080px;
  --maxw-read:   720px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--gray-50); }

.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: var(--blue);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  margin: 0 0 16px;
}
.section .lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--gray-700);
  max-width: var(--maxw-read);
  margin: 0 0 8px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.nav__mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 15px; font-weight: 600; color: var(--gray-700);
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--gray-100); color: var(--ink); }
.nav__cta {
  background: var(--blue) !important; color: #fff !important;
}
.nav__cta:hover { background: var(--blue-dark) !important; }
.nav__toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; background:
  radial-gradient(1200px 400px at 80% -10%, var(--blue-tint), transparent 70%); }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
  margin: 0 0 20px; max-width: 880px;
}
.hero h1 .accent { color: var(--blue); }
.hero p {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--gray-700); max-width: 640px; margin: 0 0 32px;
}
.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 8px 14px; border-radius: var(--radius-pill);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700;
  padding: 14px 22px; border-radius: var(--radius-md);
  cursor: pointer; border: 1px solid transparent;
  transition: transform .06s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--gray-200); }
.btn--ghost:hover { background: var(--gray-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
.card p { color: var(--gray-700); margin: 0 0 16px; font-size: 15.5px; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue-dark);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}

/* ---------- badges / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.badge--live   { background: #E7F8EF; color: #138A5E; }
.badge--soon   { background: var(--blue-soft); color: var(--blue-dark); }
.badge--writing{ background: #FFF3E0; color: #B26A00; }
.badge--data   { background: #F3EEFF; color: #6B40C7; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--gray-700);
  background: var(--gray-100); padding: 5px 10px; border-radius: var(--radius-pill);
}
.tag--found   { background: var(--tier-found);   color: var(--gray-700); }
.tag--applied { background: var(--tier-applied); color: var(--gray-800); }
.tag--intel   { background: var(--tier-intel);   color: var(--blue-dark); }
.tag--lead    { background: var(--tier-lead);    color: var(--blue-dark); }

/* ---------- project list ---------- */
.project { display: flex; flex-direction: column; height: 100%; }
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.project__roles { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.project__roles .label { font-size: 12.5px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }

/* ---------- contribution ladder ---------- */
.ladder {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  align-items: end; margin-top: 36px;
}
.rung {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px 18px;
}
.rung[data-tier="1"] { background: var(--tier-found); }
.rung[data-tier="2"] { background: var(--tier-applied); }
.rung[data-tier="3"] { background: var(--tier-intel);  border-color: #BBD4FF; min-height: 220px; }
.rung[data-tier="4"] { background: var(--tier-lead);   border-color: #A9C9FF; min-height: 260px; }
.rung[data-tier="1"] { min-height: 150px; }
.rung[data-tier="2"] { min-height: 185px; }
.rung__name { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.rung[data-tier="3"] .rung__name, .rung[data-tier="4"] .rung__name { color: var(--blue-dark); }
.rung__desc { font-size: 13.5px; color: var(--gray-700); margin: 0; }
.ladder__axis {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--gray-500);
}
.ladder__regions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.region { border-radius: var(--radius-md); padding: 16px 18px; }
.region--ack  { background: var(--gray-50);  border: 1px solid var(--gray-200); }
.region--auth { background: var(--blue-tint); border: 1px solid #CFE0FF; }
.region b { display: block; font-size: 14px; letter-spacing: .02em; margin-bottom: 2px; }
.region--ack b { color: var(--gray-700); }
.region--auth b { color: var(--blue-dark); }
.region span { font-size: 13.5px; color: var(--gray-600); }

/* ---------- reading page (authorship) ---------- */
.doc { max-width: var(--maxw-read); margin: 0 auto; padding: 56px 24px 96px; }
.doc__back { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 28px; display: inline-block; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 8px; }
.doc__sub { color: var(--gray-600); font-size: 15px; margin: 0 0 12px; }
.doc h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 84px;
}
.doc h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.doc p { color: var(--gray-800); font-size: 16.5px; margin: 0 0 16px; }
.doc ul { color: var(--gray-800); font-size: 16.5px; padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 0 0 9px; }
.doc a.link { color: var(--blue); font-weight: 600; border-bottom: 1px solid rgba(49,130,246,.3); }
.doc a.link:hover { border-bottom-color: var(--blue); }
.callout {
  background: var(--blue-tint); border: 1px solid #D6E6FF;
  border-radius: var(--radius-md); padding: 20px 22px; margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }
.refbox {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 18px 22px; margin: 18px 0 0;
}
.refbox .label { font-size: 12.5px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.refbox ul { margin: 0; padding-left: 20px; font-size: 15px; }
.refbox li { margin-bottom: 7px; }

/* venue lists */
.venue { padding: 14px 0; border-top: 1px solid var(--gray-100); }
.venue:first-child { border-top: 0; }
.venue b { font-weight: 700; }
.venue .meta { color: var(--gray-600); font-size: 15px; }
.venue .link { font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { background: var(--gray-50); border-top: 1px solid var(--gray-100); padding: 48px 0; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer p { color: var(--gray-600); font-size: 14px; margin: 0; }
.footer a { color: var(--gray-700); font-weight: 600; }

/* ---------- access gate ---------- */
body.locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% -10%, var(--blue-tint), var(--white) 70%);
  transition: opacity .25s ease;
}
.gate--gone { opacity: 0; pointer-events: none; visibility: hidden; }
.gate--shake .gate__card { animation: gateShake .35s; }
@keyframes gateShake {
  0%,100%{ transform: translateX(0); } 20%{ transform: translateX(-7px); }
  40%{ transform: translateX(6px); } 60%{ transform: translateX(-4px); } 80%{ transform: translateX(3px); }
}
.gate__card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 40px 32px;
  box-shadow: var(--shadow-md);
}
.gate__mark {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 15px;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em;
}
.gate__card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.gate__card > p { color: var(--gray-600); font-size: 15px; margin: 0 0 22px; }
.gate__input {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--gray-300); border-radius: var(--radius-md);
  margin-bottom: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.gate__input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.gate__btn { width: 100%; justify-content: center; }
.gate__err { color: #D64545; font-size: 14px; font-weight: 600; margin: 14px 0 0; }

/* ---------- live sync badge ---------- */
.sync {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill);
}
.sync[data-mode="live"]  { background: #E7F8EF; color: #138A5E; }
.sync[data-mode="local"] { background: var(--gray-100); color: var(--gray-600); }

/* ---------- open roles (claim) ---------- */
.project__todos { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.project__todos .label, .project__roles .label {
  font-size: 12.5px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.rolelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.role {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
}
.role__tier { white-space: nowrap; }
.role__label { font-size: 14px; color: var(--gray-800); line-height: 1.4; }
.role__btn {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--blue); color: #fff; border: 1px solid transparent;
  transition: background .15s, transform .06s; white-space: nowrap;
}
.role__btn:hover { background: var(--blue-dark); }
.role__btn:active { transform: translateY(1px); }
.role__btn--taken {
  background: var(--blue-soft); color: var(--blue-dark);
  display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 6px 13px;
}
.role__btn--taken .role__who { font-weight: 800; }
.role__btn--taken .role__x { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.role__btn--taken:hover { background: #DCEAFF; }
.role__btn--taken:hover .role__x { color: #D64545; }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--gray-800); }
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 19px; height: 19px; margin: 1px 0 0; border-radius: 6px;
  border: 1.5px solid var(--gray-300); background: var(--white);
  cursor: pointer; position: relative; transition: background .12s, border-color .12s;
}
.check input[type="checkbox"]:hover { border-color: var(--blue); }
.check input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check--done label { color: var(--gray-500); }
.check--done span:not(.check__by) { text-decoration: line-through; }
.check__by { color: var(--gray-500); font-size: 12.5px; text-decoration: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    padding: 12px 20px 18px; gap: 4px;
  }
  .nav__toggle { display: block; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .rung { min-height: 0 !important; }
  .ladder__regions { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .ladder { grid-template-columns: 1fr; }
}

/* =========================================================================
   Wiki article layout (index page) - added for the wiki-style rewrite.
   ========================================================================= */
.wiki { max-width: 940px; margin: 0 auto; padding: 40px 24px 88px; }
.page-head { margin-bottom: 10px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 16px; }
.page-head .lead { font-size: clamp(17px, 2.1vw, 19px); color: var(--gray-800); margin: 0; max-width: 760px; }

.wiki section { scroll-margin-top: 84px; }
.wiki h2 {
  font-size: 25px; font-weight: 800; letter-spacing: -.015em;
  margin: 46px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 84px;
}
.wiki h3.subhead { font-size: 17px; font-weight: 800; margin: 26px 0 12px; color: var(--gray-800); }
.wiki > section > p { color: var(--gray-800); font-size: 16.5px; margin: 0 0 14px; }
.wiki > section > ul { color: var(--gray-800); font-size: 16.5px; padding-left: 22px; margin: 0 0 14px; }
.wiki > section > ul > li { margin: 0 0 10px; }
.wiki ul.methods { list-style: none; padding-left: 0; }
.wiki ul.methods > li { padding: 2px 0 2px 16px; border-left: 2px solid var(--gray-200); margin-bottom: 12px; }
a.ilink { color: var(--blue); font-weight: 600; border-bottom: 1px solid rgba(49,130,246,.3); }
a.ilink:hover { border-bottom-color: var(--blue); }

/* infobox (wiki-style, floated right) */
.infobox {
  float: right; width: 290px; margin: 8px 0 24px 28px;
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 18px 20px;
}
.infobox__title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-align: center; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-200); }
.infobox dl { margin: 0; }
.infobox dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); margin-top: 12px; }
.infobox dd { margin: 2px 0 0; font-size: 14.5px; color: var(--gray-800); line-height: 1.4; }

/* table of contents */
.toc {
  display: inline-block; min-width: 240px;
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 14px 22px 16px 18px; margin: 16px 0 8px;
}
.toc b { font-size: 13px; font-weight: 800; }
.toc ol { margin: 8px 0 0; padding-left: 22px; }
.toc li { margin: 5px 0; font-size: 14.5px; }
.toc a { color: var(--blue); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* citations + references */
sup.cite { font-size: 11px; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.cite a { color: var(--blue); font-weight: 700; }
sup.cite a:hover { text-decoration: underline; }
ol.references { font-size: 14px; color: var(--gray-700); padding-left: 28px; margin: 6px 0 0; }
ol.references li { margin: 0 0 10px; line-height: 1.5; }
ol.references li:target { background: var(--blue-soft); border-radius: 6px; box-shadow: 0 0 0 6px var(--blue-soft); }
ol.references i { color: var(--gray-800); font-style: italic; }
ol.references code { background: var(--gray-100); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.refnote { font-size: 13.5px; color: var(--gray-500); margin-top: 16px; }

/* completed-projects list */
.pastlist { list-style: none; margin: 8px 0 0; padding: 0; }
.pastproj { padding: 18px 0; border-top: 1px solid var(--gray-100); }
.pastproj:first-child { border-top: 0; }
.pastproj__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pastproj b { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.pastproj p { margin: 5px 0 8px; color: var(--gray-700); font-size: 15px; }

@media (max-width: 680px) {
  .infobox { float: none; width: auto; margin: 0 0 24px; }
  .toc { display: block; }
}

/* =========================================================================
   FontAwesome usage + APA citations + interest chips (wiki rewrite v2)
   ========================================================================= */
.nav__brandicon { color: var(--blue); font-size: 18px; }
.gate__icon { color: var(--blue); font-size: 34px; margin-bottom: 14px; display: block; }
.sec-ico { color: var(--blue); font-size: .78em; margin-right: 10px; }
.infobox__title i { color: var(--blue); margin-right: 6px; }
.infobox dt { display: flex; align-items: center; }
.infobox dt i { color: var(--gray-500); width: 16px; margin-right: 7px; text-align: center; font-size: 12px; }
.toc b i { color: var(--blue); margin-right: 6px; }
.region b i { margin-right: 6px; }

/* methods list with icon tiles */
.wiki ul.methods > li { display: flex; gap: 14px; align-items: flex-start; padding: 2px 0; border-left: 0; }
.m-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft);
  color: var(--blue-dark); display: grid; place-items: center; font-size: 16px; margin-top: 2px; }
.wiki ul.methods > li > div { flex: 1; }

/* APA inline citations */
a.acite { color: var(--gray-600); font-weight: 600; white-space: nowrap; }
a.acite:hover { color: var(--blue); text-decoration: underline; }

/* APA reference list: no numbers, hanging indent */
ol.references.apa { list-style: none; padding-left: 0; }
ol.references.apa li { padding-left: 30px; text-indent: -30px; }
ol.references.apa li:target { text-indent: 0; padding: 8px 12px; }

/* interest chips */
.project__interest { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-700); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .12s, border-color .12s; }
.chip--person { background: var(--blue-soft); border-color: #CFE0FF; color: var(--blue-dark); font-weight: 700; }
.chip--person i { color: var(--gray-500); font-size: 11px; }
.chip--person:hover i { color: #D64545; }
.chip--add { color: var(--blue-dark); border-style: dashed; border-color: var(--blue); }
.chip--add:hover { background: var(--blue-soft); }

.muted-note { font-size: 14px; color: var(--gray-500); margin-top: 14px; }
.muted-note i { margin-right: 5px; }

/* publications page */
.pubs { margin-top: 8px; }
.pub-group { margin: 0 0 14px; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item { padding: 16px 0; border-top: 1px solid var(--gray-100); font-size: 16px; color: var(--gray-800); line-height: 1.55;
  padding-left: 30px; text-indent: -30px; }
.pub-item:first-child { border-top: 0; }
.pub-item .venue-name { font-style: italic; color: var(--gray-800); }
.pub-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill);
  text-indent: 0; margin-left: 6px; vertical-align: middle; }
.pub-status--review { background: #FFF3E0; color: #B26A00; }
.pub-status--prep { background: var(--gray-100); color: var(--gray-600); }
.pub-empty { color: var(--gray-500); font-size: 15px; padding: 6px 0; }

/* figures (publication process, etc.) */
.figure { margin: 24px 0; text-align: center; }
.figure img { display: inline-block; max-width: 340px; width: 100%; border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.figure figcaption { font-size: 13.5px; color: var(--gray-500); margin: 12px auto 0; max-width: 560px; line-height: 1.5; }

.axis-desc { color: var(--gray-600); font-size: 15px; margin: 0 0 14px; }

/* overflow fixes: let long in-text citations and DOIs wrap */
a.acite { white-space: normal; }
.wiki, .doc { overflow-wrap: break-word; }
ol.references.apa a.ilink, .pub-item a.ilink { overflow-wrap: anywhere; }

/* dashboard preview card (delivery system) */
.dash-card { display: block; margin: 4px 0 22px; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, transform .12s; }
.dash-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-2px); }
.dash-card img { width: 100%; display: block; border-bottom: 1px solid var(--gray-100); }
.dash-card__label { display: block; padding: 12px 16px; font-size: 14.5px; font-weight: 700; color: var(--blue-dark); }
.dash-card__label i { margin-right: 7px; color: var(--blue); }

/* callout boxes used on the independent-projects guide */
.callout .box-label { display: block; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; font-size: 14px; letter-spacing: .01em; }
.callout .box-label i { margin-right: 7px; }
.callout ul, .callout ol { margin: 8px 0 0; padding-left: 20px; font-size: 15.5px; color: var(--gray-800); }
.callout li { margin: 5px 0; }
.callout b { color: var(--ink); }
.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 8px 0 0; }
.steps > li { position: relative; padding: 4px 0 14px 44px; font-size: 16.5px; color: var(--gray-800); }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800;
  font-size: 15px; display: grid; place-items: center; }

/* research program cards */
.program__ico { color: var(--blue); margin-right: 8px; }
.program > h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.program__doing { margin-top: 16px; }
.program__doing .label, .program__open .label { font-size: 12.5px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.program__doing ul { list-style: disc; padding-left: 20px; margin: 0; font-size: 14.5px; color: var(--gray-800); }
.program__doing li { margin: 5px 0; }
.program__open { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.openlist { list-style: none; padding: 0; margin: 0; }
.openitem { padding: 10px 0; border-top: 1px solid var(--gray-100); }
.openitem:first-child { border-top: 0; padding-top: 0; }
.openitem__label { display: block; font-size: 14.5px; color: var(--gray-800); margin-bottom: 8px; }

/* paper project cards */
.paper__tag { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase;
  letter-spacing: .04em; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.paper__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 8px; }
.paper__q { font-size: 15px; color: var(--gray-800); margin: 0 0 12px; }
.paper__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0;
  border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 14px; }
.paper__meta span { font-size: 13px; color: var(--gray-600); display: flex; align-items: center; gap: 6px; }
.paper__meta i { color: var(--gray-500); }
.paper__tasks .label { font-size: 12.5px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }

/* paper sign-up slots + ordered task checklist */
.paper__signup { margin-top: 16px; }
.paper__signup .label { font-size: 12.5px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checkitem { border-top: 1px solid var(--gray-100); }
.checkitem:first-child { border-top: 0; }
.checkbtn { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; padding: 9px 0; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--gray-800); }
.checkbtn i { color: var(--gray-500); margin-top: 2px; flex: none; font-size: 15px; }
.checkbtn:hover i { color: var(--blue); }
.checkitem--done .checkbtn { color: var(--gray-500); }
.checkitem--done .checkbtn span { text-decoration: line-through; }
.checkitem--done .checkbtn i { color: #16a34a; }
.checkby { display: block; font-size: 12px; color: var(--gray-500); padding: 0 0 8px 27px; }

/* task progress bar */
.tasks__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tasks__head .label { margin-bottom: 0; }
.progress { font-size: 12px; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.progress--full { color: #16a34a; }
.pbar { height: 5px; border-radius: 999px; background: var(--gray-100); overflow: hidden; margin-bottom: 10px; }
.pbar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .25s ease; }
.pbar--full span { background: #16a34a; }
