:root{
  --paper-width: 980px;
  --sidebar-width: 220px;
  --rule: #000;
  --rule-light: #bdbdbd;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:#fff;
  color:#000;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.55;
}

.layout{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width: var(--sidebar-width);
  border-right: 1px solid var(--rule-light);
  padding: 18px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__brand{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-bottom: 18px;
}

.sidebar__monogram{
  width:44px; height:44px;
  border:1px solid #000;
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
}

.sidebar__name{ font-weight:700; }
.sidebar__meta{ font-size: 0.95rem; }

.sidebar__nav{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-top: 10px;
}

.navitem{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration:none;
  color:#000;
  border: 1px solid transparent;
}

.navitem:hover{
  border-color: var(--rule-light);
}

.navitem.is-active{
  border-color:#000;
}

.navitem__icon{
  width:18px;
  height:18px;
}

.sidebar__footer{
  position:absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-size: 0.95rem;
  color:#111;
}

.content{
  flex:1;
  padding: 28px 28px 34px 28px;
}

.paper-header{
  max-width: var(--paper-width);
  margin: 0 auto 18px auto;
  text-align:center;
}

.paper-title{
  font-size: 2.6rem;
  margin: 6px 0 4px 0;
  font-weight: 700;
}

.paper-subtitle{
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.paper-abstract{
  max-width: 760px;
  margin: 14px auto;
}

.rule{
  border:0;
  border-top: 1px solid var(--rule);
  margin: 14px 0;
}

.rule--light{
  border-top-color: var(--rule-light);
}

.paper-section{
  max-width: var(--paper-width);
  margin: 0 auto 24px auto;
}

.experience-layout{
  display:flex;
  gap: 24px;
  align-items: stretch;
}

.experience-main{
  flex:1;
  min-width: 0;
}

.experience-timeline{
  flex: 0 0 360px;
  display: flex;
  align-self: stretch;
}

.timeline-panel{
  position: static;
  border: 1px solid var(--rule-light);
  padding: 10px 12px 12px 12px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.timeline-panel summary{
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.timeline-panel summary::-webkit-details-marker{
  display: none;
}

.timeline{
  margin-top: 10px;
  font-family: "Courier New", Courier, monospace;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.timeline__range{
  display:flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #333;
}

.timeline__track{
  position: relative;
  height: var(--timeline-height, 320px);
  border-left: 2px solid #000;
  margin-top: 10px;
  padding-left: 18px;
}

.timeline__dot{
  position: absolute;
  left: -5px;
  top: calc(var(--pos) * 1px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c8c8c;
  transform: translateY(-50%);
}

.timeline__dot--year{
  width: 10px;
  height: 10px;
  background: #000;
}

.timeline__dot-label{
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #000;
}

.timeline__segment{
  position: absolute;
  left: calc(6px + var(--seg-offset, 0px) + var(--lane-offset, 0px));
  right: 0;
  top: calc(var(--start) * 1px);
  height: calc(var(--span) * 1px);
  min-height: 14px;
}

.timeline__segment-line{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 3px;
  background: var(--seg-color);
}

.timeline__segment-label{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(calc(-50% + var(--label-offset, 0px)));
  font-size: 0.78rem;
  line-height: 1.15;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline__segment-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seg-color);
  display: inline-block;
}

@media (max-width: 900px){
  .experience-layout{
    flex-direction: column;
  }

  .experience-timeline{
    flex: 1 1 auto;
    width: 100%;
  }

  .timeline-panel{
    position: static;
    height: auto;
  }
}

.paper-section h2{
  font-size: 1.7rem;
  margin: 10px 0 8px 0;
}

.paper-item{
  display:grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items:start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
}

.paper-item:last-child{ border-bottom: 0; }

.paper-item h3{
  font-size: 1.25rem;
  margin: 0 0 6px 0;
}

.paper-item__media img{
  width: 100%;
  border: 1px solid var(--rule-light);
}

.paper-actions{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.btn{
  display:inline-block;
  padding: 8px 12px;
  border: 1px solid #000;
  text-decoration:none;
  color:#000;
  background:#fff;
}

.btn:hover{
  background:#f5f5f5;
}

.paper-entry{
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-light);
}
.paper-entry:last-child{ border-bottom:0; }
.paper-entry__meta{ font-size: 1.0rem; color:#111; }

.skillgrid{ margin-top: 10px; }
.skillrow{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule-light);
}
.skillrow:last-child{ border-bottom:0; }

.paper-footer{
  max-width: var(--paper-width);
  margin: 24px auto 0 auto;
  text-align:center;
}

.fineprint{ font-size: 0.95rem; }

.quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #111;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

